diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-01-31 16:48:56 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-02-02 13:11:28 +0100 |
commit | a0b4f2291319c5d47ecb196b90400814fdcfd126 (patch) | |
tree | 220a2738e7d35f719a970a950cd7239f4a20d001 /net/mac80211/mlme.c | |
parent | 178e9d6adc4356c2f1659f575ecea626e7fbd05a (diff) |
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>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index f1cdd2df323e..12f67871af69 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -8046,8 +8046,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, rcu_read_lock(); beacon_ies = rcu_dereference(req->bss->beacon_ies); - - if (beacon_ies) { + if (!beacon_ies) { /* * Wait up to one beacon interval ... * should this be more if we miss one? |