Skip to content
Commit 37123c3b authored by Wen Gong's avatar Wen Gong Committed by Johannes Berg
Browse files

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: default avatarWen 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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9e263e19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment