mac80211: use ieee802_11_parse_elems() in ieee80211_prep_channel()
authorWen Gong <wgong@codeaurora.org>
Fri, 24 Sep 2021 10:00:51 +0000 (06:00 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Sep 2021 10:57:24 +0000 (12:57 +0200)
commit37123c3baaee4d6a189ad4abad804770d4a607e8
tree1acf87721580f0a22c395967cff25c97d9e1c859
parent9e263e193af73d2509dc3102a680a11130f44e20
mac80211: use ieee802_11_parse_elems() in ieee80211_prep_channel()

In function ieee80211_prep_channel(), it has some ieee80211_bss_get_ie()
and cfg80211_find_ext_ie() to get the IE, this is to use another
function ieee802_11_parse_elems() to get all the IEs in one time.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/20210924100052.32029-6-wgong@codeaurora.org
[remove now unnecessary size validation, use -ENOMEM, free elems earlier
 for less error handling code]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c