mwifiex: scan less channels per scan command to improve Tx traffic
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 7 Jun 2012 04:12:42 +0000 (21:12 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jun 2012 18:59:44 +0000 (14:59 -0400)
commit658f37b736ce335edcdf1425228e8652ec6adf24
treefe00c1c14e60c8f7dbfffe7c4c702e932d865dec
parent3249ba7376caa93af387d8e6b5e41b290934f88c
mwifiex: scan less channels per scan command to improve Tx traffic

Currently 4 channels are scanned per scan command. if scan request
is issued by user during Tx traffic, radio will be out of channel
for "4 * per_chan_scan_time" for each scan command and will not be
able to receive Rx packets. This adds delay in data traffic. We can
minimize it by reducing number of channels scanned per scan command
in this scenario.

We can not always scan 1 channel per scan command due to limitation
of number of command buffers. So we add code to decide number of
channels scanned per scan command in associated state.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c