Commit 10de5a59 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Johannes Berg

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: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20211019162816.1384077-2-kuba@kernel.orgSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent de1352ea
...@@ -5558,7 +5558,7 @@ struct wireless_dev { ...@@ -5558,7 +5558,7 @@ struct wireless_dev {
unsigned long unprot_beacon_reported; 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) if (wdev->netdev)
return wdev->netdev->dev_addr; return wdev->netdev->dev_addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment