From: Johannes Berg Date: Fri, 8 Feb 2019 16:56:33 +0000 (+0100) Subject: ieee80211: fix for_each_element_extid() X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b9a82e759e2bb0171f164f0e563d0af37160348a;p=carl9170fw.git 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 Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 519a6ca..4e47319 100644 --- 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))