Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 538dc904 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Johannes Berg
Browse files

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: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8ac3c704
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}