]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()
authorBjorn Andersson <bjorn@kryo.se>
Thu, 24 Dec 2015 08:33:26 +0000 (00:33 -0800)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Tue, 21 Jun 2016 08:02:24 +0000 (11:02 +0300)
Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save
clients from having to cast away a const qualifier.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h

index 760bc4d5a2cfe87aadd2e96a98292855cf2eb050..323237e5bf368bbe855cf18c617f4b52d711652a 100644 (file)
@@ -2157,7 +2157,7 @@ static inline void SET_IEEE80211_DEV(struct ieee80211_hw *hw, struct device *dev
  * @hw: the &struct ieee80211_hw to set the MAC address for
  * @addr: the address to set
  */
-static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr)
+static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, const u8 *addr)
 {
        memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN);
 }