mwifiex: increase TX threashold to avoid TX timeout during ED MAC test
authorGanapathi Bhat <gbhat@marvell.com>
Mon, 7 May 2018 18:40:58 +0000 (00:10 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 May 2018 10:26:09 +0000 (13:26 +0300)
commit4f9fb990013c03c5d56266fb4c439816cd84e1a6
tree51bc4449cf4ece2888830fa1ec247bca54d5cd27
parent4793e5a954faf2fa5e88726332bf851fbebcbf1c
mwifiex: increase TX threashold to avoid TX timeout during ED MAC test

While carrying energy detection(ED) tests, the chip will stop
transmission upon detecting an energy in the connected channel.
As a feedback, driver will stop dequeuing TX packets and due to
which wmm_tx_pending keep incremeting. Once wmm_tx_pending
reaches 100, driver calls netif_tx_stop_queue(). If TX ques is
not restarted within 5(watchdog_timeo) seconds, it will result in
TX timeout.

The ED test is carried out for one minute and the current
threshold of 100 is easily overcome by the traffic, cuasing TX
timeouts. To fix this increase the threshold to 400.

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.h