summaryrefslogtreecommitdiff
path: root/include/linux/ieee80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-02-08 17:56:33 +0100
committerJohannes Berg <johannes.berg@intel.com>2019-02-08 17:56:33 +0100
commit61edb116cab9bf7d623e31bf7455a82bc042c087 (patch)
treeb657018f5c96b8cd99c450766d4e2774b395e768 /include/linux/ieee80211.h
parentdb33aa7ea69da1209d755e959163f82d2176b782 (diff)
downloadlwn-61edb116cab9bf7d623e31bf7455a82bc042c087.tar.gz
lwn-61edb116cab9bf7d623e31bf7455a82bc042c087.zip
ieee80211: fix for_each_element_extid()
The data/datalen argument names cannot be used as those are also the struct element names, fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r--include/linux/ieee80211.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 8da5ba97328f..3c9dfcada45f 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -3299,8 +3299,8 @@ struct element {
for_each_element(element, data, datalen) \
if (element->id == (_id))
-#define for_each_element_extid(element, extid, data, datalen) \
- for_each_element(element, data, datalen) \
+#define for_each_element_extid(element, extid, _data, _datalen) \
+ for_each_element(element, _data, _datalen) \
if (element->id == WLAN_EID_EXTENSION && \
element->datalen > 0 && \
element->data[0] == (extid))