public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix regression in sta connection monitor
@ 2020-09-21 15:45 Felix Fietkau
  2020-09-22  7:28 ` Georgi Valkov
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Fietkau @ 2020-09-21 15:45 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, Georgi Valkov

When the nulldata frame was acked, the probe send count needs to be reset,
otherwise it will keep increasing until the connection is considered dead,
even though it fine.

Fixes: 9abf4e49830d ("mac80211: optimize station connection monitor")
Reported-by: Georgi Valkov <gvalkov@abv.bg>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 net/mac80211/mlme.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 50a9b9025725..7c04d8e30482 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2508,7 +2508,9 @@ void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
 	    !sdata->u.mgd.probe_send_count)
 		return;
 
-	if (!ack)
+	if (ack)
+		sdata->u.mgd.probe_send_count = 0;
+	else
 		sdata->u.mgd.nullfunc_failed = true;
 	ieee80211_queue_work(&sdata->local->hw, &sdata->work);
 }
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-01 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21 15:45 [PATCH] mac80211: fix regression in sta connection monitor Felix Fietkau
2020-09-22  7:28 ` Georgi Valkov
2020-09-22  8:56   ` Felix Fietkau
2020-10-01 13:59     ` Georgi Valkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox