wifi: mac80211: mlme: look up beacon elems only if needed
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 Jul 2022 15:21:22 +0000 (17:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:23 +0000 (11:43 +0200)
commit74e1309acedc1f091722f33e752aeb87d4ed4c33
tree1ce6ea1f9c813dd832ba5ee049c0ef1bc513e012
parent1845c1d4a455e000dbf66dc4126c98837ac3e528
wifi: mac80211: mlme: look up beacon elems only if needed

If NEED_DTIM_BEFORE_ASSOC isn't set, then we don't need
to enter an RCU critical section and look up the beacon
elements.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c