mwifiex: do not increase tx_pkts_queued if receive address tx paused
authorXinming Hu <huxm@marvell.com>
Mon, 22 Jun 2015 13:36:09 +0000 (19:06 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Jul 2015 13:40:16 +0000 (16:40 +0300)
commit9186a1f37d190f433c64558a4efeac7ed776b571
tree863480970e4630aeef06fae5388561de99d93643
parentb5b0f272d618a470c34619b25f15ca4aa9d3b395
mwifiex: do not increase tx_pkts_queued if receive address tx paused

If tx_pkts_queued is increased for tx paused receive address, tx process
will be triggered for this packet. But since RA list was tx paused,
there will be an infinite loop in mwifiex_wmm_process_tx waiting for the
event(tx pause, tdls cs) to cancel tx pause. This will be an dead loop,
since main_process was locked at this time, there will be no opportunity
to process event.

So do not increase tx_pkts_queued if receive address tx paused,
this will be restored RA list is unpaused.

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