]> git.baikalelectronics.ru Git - kernel.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)
commit1e11053beab81403b3c685d7535b5b4eac43b4e6
tree4e364ca35c6a701923a84da3cbbc67fcbb84ba1d
parentdf274930744ccc291f21965d50a742d1f69a2371
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