projects
/
carl9170fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c488f
)
ieee80211: fix for_each_element_extid()
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 8 Feb 2019 16:56:33 +0000
(17:56 +0100)
committer
Christian Lamparter
<chunkeey@gmail.com>
Fri, 5 Feb 2021 10:39:41 +0000
(11:39 +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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h
patch
|
blob
|
history
diff --git
a/include/linux/ieee80211.h
b/include/linux/ieee80211.h
index 519a6ca2dbc6be0ec564aa5dea302dd40c1b1d22..4e47319fd9d3b4942b47ba08e1e7fca431264312 100644
(file)
--- a/
include/linux/ieee80211.h
+++ b/
include/linux/ieee80211.h
@@
-3229,8
+3229,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))