diff options
author | Aloka Dixit <quic_alokad@quicinc.com> | 2024-11-27 10:02:55 -0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-12-04 16:08:03 +0100 |
commit | 1b5b7f3d29dc705bdeb3d2663df1b4617276491a (patch) | |
tree | 8cb02c1867bb3a874102622de5a47e6f3ee0ebac | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) |
wifi: mac80211: fix variable used in for_each_sdata_link()
Macro for_each_sdata_link() accepts input '_local' but uses 'local'
in its processing. This currently works because all the functions
calling this macro have declared 'local' as a variable themselves.
But this results in compilation error when a new caller uses
'sdata->local' instead of declaring 'local' variable.
Use '_local' instead of 'local' in for_each_sdata_link().
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Link: https://patch.msgid.link/20241127180255.1460553-1-quic_alokad@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index a00096dd787b..534a20054151 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -1206,7 +1206,7 @@ struct ieee80211_sub_if_data *vif_to_sdata(struct ieee80211_vif *p) for (int ___link_id = 0; \ ___link_id < ARRAY_SIZE(___sdata->link); \ ___link_id++) \ - if ((_link = wiphy_dereference((local)->hw.wiphy, \ + if ((_link = wiphy_dereference((_local)->hw.wiphy, \ ___sdata->link[___link_id]))) static inline int |