Skip to content

Commit

Permalink
mwifiex: shorten per channel scan time
Browse files Browse the repository at this point in the history
Currently the scan time per channel for active scanning is set to
200ms. It takes quite a while to finsh scanning on all channels,
especially with a dual band configuration.

Change the per channel scan time settings to the following values:

passive scan: 110ms
active scan: 30ms
specific scan: 30ms

Above settings have been tested on x86 and arm platforms.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Bing Zhao authored and John W. Linville committed Jun 11, 2012
1 parent b603896 commit 38e8b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/mwifiex/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ enum {

#define SCAN_BEACON_ENTRY_PAD 6

#define MWIFIEX_PASSIVE_SCAN_CHAN_TIME 200
#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME 200
#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME 110
#define MWIFIEX_PASSIVE_SCAN_CHAN_TIME 110
#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME 30
#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME 30

#define SCAN_RSSI(RSSI) (0x100 - ((u8)(RSSI)))

Expand Down

0 comments on commit 38e8b7d

Please sign in to comment.