summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Yang <yangyang@marvell.com>2011-05-17 04:17:51 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-05-19 19:53:56 +0200
commit93968147874508e6dd534af1e236a7353269da3f (patch)
treed07092c9b72c3c45cca6950ce2980c1267d78e0d
parentmwifiex: reduce CPU usage by tracking highest_queued_prio (diff)
downloadlinux-93968147874508e6dd534af1e236a7353269da3f.tar.xz
linux-93968147874508e6dd534af1e236a7353269da3f.zip
mwifiex: check mwifiex_wmm_lists_empty() before dequeue
add checks to mwifiex_wmm_process_tx() loop so it doesn't re-enter mwifiex_dequeue_tx_packet() to find it can't send. Signed-off-by: Marc Yang <yangyang@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mwifiex/wmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/wmm.c b/drivers/net/wireless/mwifiex/wmm.c
index f3d5f23c91d1..784ad4c00995 100644
--- a/drivers/net/wireless/mwifiex/wmm.c
+++ b/drivers/net/wireless/mwifiex/wmm.c
@@ -1254,5 +1254,5 @@ mwifiex_wmm_process_tx(struct mwifiex_adapter *adapter)
if (mwifiex_dequeue_tx_packet(adapter))
break;
- } while (true);
+ } while (!mwifiex_wmm_lists_empty(adapter));
}