Commit 61edb116 authored by Johannes Berg's avatar Johannes Berg

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent db33aa7e
...@@ -3299,8 +3299,8 @@ struct element { ...@@ -3299,8 +3299,8 @@ struct element {
for_each_element(element, data, datalen) \ for_each_element(element, data, datalen) \
if (element->id == (_id)) if (element->id == (_id))
#define for_each_element_extid(element, extid, data, datalen) \ #define for_each_element_extid(element, extid, _data, _datalen) \
for_each_element(element, data, datalen) \ for_each_element(element, _data, _datalen) \
if (element->id == WLAN_EID_EXTENSION && \ if (element->id == WLAN_EID_EXTENSION && \
element->datalen > 0 && \ element->datalen > 0 && \
element->data[0] == (extid)) element->data[0] == (extid))
......
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