|
@@ -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
|
|
* @hw: the &struct ieee80211_hw to set the MAC address for
|
|
* @addr: the address to set
|
|
* @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);
|
|
memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN);
|
|
}
|
|
}
|