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>
This commit is contained in:
parent
db33aa7ea6
commit
61edb116ca
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue