wifi: mac80211: fix waiting for beacons logic
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jan 2024 15:48:56 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2024 18:10:47 +0000 (19:10 +0100)
commit733031cd485c93e5f91ce94caf4b53efac15b0fd
tree46ebf6ee7ba70d991f6d7f43a149c376196fe0e9
parentfc3432ae8232ff4025e7c55012dd88db0e3d18eb
wifi: mac80211: fix waiting for beacons logic

[ Upstream commit a0b4f2291319c5d47ecb196b90400814fdcfd126 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c