mwifiex: block data traffic to tx paused receive address
authorXinming Hu <huxm@marvell.com>
Mon, 22 Jun 2015 13:36:08 +0000 (19:06 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Jul 2015 13:40:13 +0000 (16:40 +0300)
Data traffic to tx paused receive address should be blocked.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/wmm.c

index bc920a5a947cfd040854a5e536216ea8d0496a5d..8a4dd248ff01fe598cefa475251fbcdcc3c78ba3 100644 (file)
@@ -1025,7 +1025,8 @@ mwifiex_wmm_get_highest_priolist_ptr(struct mwifiex_adapter *adapter,
                                list_for_each_entry(ptr, &tid_ptr->ra_list,
                                                    list) {
 
-                                       if (!skb_queue_empty(&ptr->skb_head))
+                                       if (!ptr->tx_paused &&
+                                           !skb_queue_empty(&ptr->skb_head))
                                                /* holds both locks */
                                                goto found;
                                }