mac80211: fix time-is-after bug in mlme
authorBen Greear <greearb@candelatech.com>
Tue, 30 Mar 2021 23:07:49 +0000 (16:07 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 08:14:53 +0000 (10:14 +0200)
commit7d73cd946d4bc7d44cdc5121b1c61d5d71425dea
tree83e569a218ba2fad4c32cfba618e2a1d64420b4b
parent1153a74768a9212daadbb50767aa400bc6a0c9b0
mac80211: fix time-is-after bug in mlme

The incorrect timeout check caused probing to happen when it did
not need to happen.  This in turn caused tx performance drop
for around 5 seconds in ath10k-ct driver.  Possibly that tx drop
is due to a secondary issue, but fixing the probe to not happen
when traffic is running fixes the symptom.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Fixes: 9abf4e49830d ("mac80211: optimize station connection monitor")
Acked-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210330230749.14097-1-greearb@candelatech.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c