mac80211: mlme: find auth challenge directly
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Oct 2022 18:15:58 +0000 (20:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Oct 2022 05:59:04 +0000 (07:59 +0200)
commit630060f1175676b9cb3a032767f20dbce93616c9
tree2eca0ec0fb373dfa268a90ffbfe72d88f2f10f49
parent21df3a583e8e03d8f74fa2eedbcd7a2b3f5cabc1
mac80211: mlme: find auth challenge directly

commit 49a765d6785e99157ff5091cc37485732496864e upstream.

There's no need to parse all elements etc. just to find the
authentication challenge - use cfg80211_find_elem() instead.
This also allows us to remove WLAN_EID_CHALLENGE handling
from the element parsing entirely.

Link: https://lore.kernel.org/r/20210920154009.45f9b3a15722.Ice3159ffad03a007d6154cbf1fb3a8c48489e86f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c