mac80211: HE STA disassoc due to QOS NULL not sent
authorShay Bar <shay.bar@celeno.com>
Wed, 3 Jul 2019 13:18:48 +0000 (16:18 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2019 11:26:41 +0000 (13:26 +0200)
commitf39b07fdfb688724fedabf5507e15eaf398f2500
treec9d6c29f14e60b442f078d0d55a49c3d33d36e9e
parent1ced169cc1c2f3e054fa14974443383ee02a8b6a
mac80211: HE STA disassoc due to QOS NULL not sent

In case of HE AP-STA link, ieee80211_send_nullfunc() will not
send the QOS NULL packet to check if AP is still associated.

In this case, probe_send_count will be non-zero and
ieee80211_sta_work() will later disassociate the AP, even
though no packet was ever sent.

Fix this by decrementing probe_send_count and not calling
ieee80211_send_nullfunc() in case of HE link, so that we
still wait for some time for the AP beacon to reappear and
don't disconnect right away.

Signed-off-by: Shay Bar <shay.bar@celeno.com>
Link: https://lore.kernel.org/r/20190703131848.22879-1-shay.bar@celeno.com
[clarify commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c