diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-19 18:28:16 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-10-21 16:46:58 +0200 |
commit | 10de5a599f92ef776886073a33ca7bbbe6b14d37 (patch) | |
tree | b3ce9e7aa459e7334ae8bb8a9c1754754f92c99e /include | |
parent | mac80211: use eth_hw_addr_set() (diff) | |
download | linux-10de5a599f92ef776886073a33ca7bbbe6b14d37.tar.xz linux-10de5a599f92ef776886073a33ca7bbbe6b14d37.zip |
cfg80211: prepare for const netdev->dev_addr
netdev->dev_addr will be const soon.
All callers of wdev_address() can take const already.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20211019162816.1384077-2-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index e9e313aa991f..02737dde06d9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -5558,7 +5558,7 @@ struct wireless_dev { unsigned long unprot_beacon_reported; }; -static inline u8 *wdev_address(struct wireless_dev *wdev) +static inline const u8 *wdev_address(struct wireless_dev *wdev) { if (wdev->netdev) return wdev->netdev->dev_addr; |