]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mlme: find auth challenge directly
authorJohannes Berg <johannes.berg@intel.com>
Fri, 14 Oct 2022 16:47:03 +0000 (18:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Oct 2022 15:24:32 +0000 (17:24 +0200)
commitfcc3340249a1cce19c05cdb8d7b2e3e9ebb78a3e
treef0e9d41c094d0aebf8292627acad6216db41fa02
parent1d568273a76a1447358a7c1b623888648fd944bf
mac80211: mlme: find auth challenge directly

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c