Skip to content

Fix frequent reconnects caused by new conection monitor

Maxim Levitsky linux-wireless 1 version In review

Get series with b4
b4 am 1249056817.20593.1.camel@maxim-laptop

Versions newest first

  1. v1 Latest2 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Retry probe request few timesnet/mac80211/ieee80211_i.h net/mac80211/mlme.c+31 -129 replies
2/2Increase timeouts for station pollingnet/mac80211/mlme.c+2 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJohannes BergMarcel Holtmann
SeriesT-b
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 000/002] Fix frequent reconnects caused by new conection monitor

Hi, here is the updated version of these two patches that fix the $SUBJECT issue.

I attach these (in case mailer mangles them), and reply with patches.

Tested both with low quality signal, and beacon loss. Lack of TX is found, every 30 seconds now, and quite reliable. Lack of beacons, triggers probe like it did every 2 seconds.

Best regards,
Maxim Levitsky

Quoted 1 line

From 0bf5749f2878f9245b8fb1b64456386374205225 Mon Sep 17 00:00:00 2001

From: Maxim Levitsky <[email protected]>
Date: Fri, 31 Jul 2009 18:54:12 +0300
Subject: [PATCH] [MAC80211] Retry probe request few times

Retry 5 times (chosen arbitary ), before assuming that station is out of range.

Fixes frequent disassociations while connected to weak, and sometimes even strong access points.

---
 net/mac80211/ieee80211_i.h |    1 +
 net/mac80211/mlme.c        |   42 ++++++++++++++++++++++++++++++------------
 2 files changed, 31 insertions(+), 12 deletions(-)
net/mac80211/ieee80211_i.h +1 -0
index aec6853..bca7b60 100644
@@ -280,6 +280,7 @@ struct ieee80211_if_managed {
 	struct work_struct beacon_loss_work;
 
 	unsigned long probe_timeout;
+	int probe_send_count;
 
 	struct mutex mtx;
 	struct ieee80211_bss *associated;
net/mac80211/mlme.c +30 -12

82 lines not on this page · raw message

Signature · 1 line
1.6.0.4
Quoted 1 line

From 04976d22d45f26aa4b4dece5dd520e3347ac32d7 Mon Sep 17 00:00:00 2001

From: Maxim Levitsky <[email protected]>
Date: Fri, 31 Jul 2009 18:54:23 +0300
Subject: [PATCH] [MAC80211] Increase timeouts for station polling

Do a probe request every 30 seconds, and wait for probe response, half a second This should lower the traffic that card sends, thus save power Wainting longer for response makes probe more robust against 'slow' access points

---
 net/mac80211/mlme.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/mlme.c +2 -2
index 1d8640a..e4bb590 100644
@@ -42,13 +42,13 @@
  * Time the connection can be idle before we probe
  * it to see if we can still talk to the AP.
  */
-#define IEEE80211_CONNECTION_IDLE_TIME	(2 * HZ)
+#define IEEE80211_CONNECTION_IDLE_TIME	(30 * HZ)
 /*
  * Time we wait for a probe response after sending
  * a probe request because of beacon loss or for
  * checking the connection still works.
  */
-#define IEEE80211_PROBE_WAIT		(HZ / 5)
+#define IEEE80211_PROBE_WAIT		(HZ / 2)
 
 #define TMR_RUNNING_TIMER	0
 #define TMR_RUNNING_CHANSW	1
Signature · 1 line
1.6.0.4