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>
#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)))