CHROMIUM: mwifiex: Increase channel dwell time
authorPaul Stewart <pstew@chromium.org>
Sat, 6 Oct 2012 00:21:02 +0000 (17:21 -0700)
committerGerrit <chrome-bot@google.com>
Sat, 6 Oct 2012 21:29:16 +0000 (14:29 -0700)
Increase channel dwell time for active-scan channels (which also
happen to be the channels that tend to have the most congestion).
In congested channels, we have tested this to improve the chance
of scan success by over a factor of 3.  Scan time is still less
than 7 seconds which is still faster than some mac80211-based
chipsets.

Signed-off-by: Paul Stewart <pstew@chromium.org>
BUG=chrome-os-partner:14655
TEST=Scan loops, interop test

Change-Id: I2e279d6f6e9719bbf2d7317f139ef58431fe92a2
Reviewed-on: https://gerrit.chromium.org/gerrit/34838
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>

drivers/net/wireless/mwifiex/main.h

index 687a26a..c3449d3 100644 (file)
@@ -80,8 +80,8 @@ enum {
 #define SCAN_BEACON_ENTRY_PAD                  6
 
 #define MWIFIEX_PASSIVE_SCAN_CHAN_TIME 110
-#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME  30
-#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME        30
+#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME  200
+#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME        200
 
 #define SCAN_RSSI(RSSI)                                        (0x100 - ((u8)(RSSI)))