Message ID | 20211019162816.1384077-2-kuba@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
Series | [1/2] mac80211: use eth_hw_addr_set() | expand |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 62dd8422e0dc..61c87d8e7f2a 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -5492,7 +5492,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;
netdev->dev_addr will be const soon. All callers of wdev_address() can take const already. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- CC: johannes@sipsolutions.net CC: linux-wireless@vger.kernel.org --- include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)