summaryrefslogtreecommitdiff
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn@kryo.se>2015-12-24 11:33:26 +0300
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 11:04:21 +0300
commit538dc9045251d3d6b5c0216a5c61c32bd9cedac9 (patch)
tree98e0f89855836c1db06a6dec9104fa8bad9d54c0 /include/net/mac80211.h
parent8ac3c70419176b0fbc4aeae30de661f690b2e3ae (diff)
downloadlinux-538dc9045251d3d6b5c0216a5c61c32bd9cedac9.tar.xz
mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()
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>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index df5698ed8052..566df20dc957 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2217,7 +2217,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);
}