wifi: mac80211: fix waiting for beacons logic
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jan 2024 15:48:56 +0000 (16:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 2 Feb 2024 12:11:28 +0000 (13:11 +0100)
commita0b4f2291319c5d47ecb196b90400814fdcfd126
tree220a2738e7d35f719a970a950cd7239f4a20d001
parent178e9d6adc4356c2f1659f575ecea626e7fbd05a
wifi: mac80211: fix waiting for beacons logic

This should be waiting if we don't have a beacon yet,
but somehow I managed to invert the logic. Fix that.

Fixes: 74e1309acedc ("wifi: mac80211: mlme: look up beacon elems only if needed")
Link: https://msgid.link/20240131164856.922701229546.I239b379e7cee04608e73c016b737a5245e5b23dd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c