OSDN Git Service

mac80211: mlme: find auth challenge directly
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Sep 2021 13:40:09 +0000 (15:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 14:26:52 +0000 (16:26 +0200)
commit49a765d6785e99157ff5091cc37485732496864e
tree9375c2b933cf5965b36084960eff2ca5b51c58f1
parentc6e37ed498f958254b5459253199e816b6bfc52f
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>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c