]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mwifiex: improve scan delay logic during Tx traffic
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 4 Aug 2012 01:06:04 +0000 (18:06 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Aug 2012 19:12:50 +0000 (15:12 -0400)
commitbdd37bed619b2445b2a04f398a7fe34b1e416172
tree4e364ca35c6a701923a84da3cbbc67fcbb84ba1d
parentb7525dbd075414ab2dc3742bacdc386f0f1223b2
mwifiex: improve scan delay logic during Tx traffic

Earlier scan command was postponed by 20msec multiple times to give
preference to Tx traffic until we find empty wmm queue.

There is a corner case in which wmm queue becomes empty immediately
after processing the packet(before 20msec) and there may be next
packet coming after some time. In this case we should not resume scan
operation.

We will use new flag to check Tx traffic and resume scan operation
only if there is no traffic for 200msec.

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/init.c
drivers/net/wireless/mwifiex/main.c
drivers/net/wireless/mwifiex/main.h