ieee80211: fix for_each_element_extid()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 16:56:33 +0000 (17:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Feb 2019 16:56:33 +0000 (17:56 +0100)
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>
include/linux/ieee80211.h

index 8da5ba97328f7baa63d8f696c5d8b8d8be750470..3c9dfcada45fbadbac7c026f612c738889d55dc0 100644 (file)
@@ -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))