linux/drivers/net/wireless/ath/wcn36xx
Bryan O'Donoghue e24eedc09f wcn36xx: Set LINK_FAIL_TX_CNT to 1000 on all wcn36xx
The firmware parameter LINK_FAIL_TX_CNT maps to the prima configuration
file parameter gLinkFailTxCnt and is described as:

quote: " If within gLinkFailTimeout period(values is mentioned in msec) if
         FW doesn't receive acks for gLinkFailTxCnt number of packets, then
         link will be disconnected."

The downstream description sets a minimum value of 1000 a maximum value of
60000 and a default value of 6000, however it appears that unless we
actually set this value deliberately firmware defaults it to 0.

Setting this value to non-zero results in the firmware doing link
monitoring. The working example from downstream paradoxically sets the
value to 200, here we opt to set the value to the minimum stipulated in the
configuration file 1000.

In conjunction with ieee80211_hw_set(wcn->hw, CONNECTION_MONITOR); this
change effects offload of link monitoring to the firmware.

Tested with:
'CNSS-PR-2-0-1-2-c1-74-130449-3' wcn3620
'CNSS-PR-2-0-1-2-c1-00083'       wcn3680

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201103121735.291324-2-bryan.odonoghue@linaro.org
2020-11-07 10:09:15 +02:00
..
debug.c
debug.h
dxe.c wcn36xx: Add TX ack support 2020-08-14 18:02:19 +03:00
dxe.h
hal.h wcn36xx: Extend HAL param config list 2020-09-22 10:30:22 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
main.c wcn36xx: Ensure spaces between functions 2020-09-22 10:40:02 +03:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
pmc.c wcn36xx: Advertise beacon filtering support in bmps 2020-10-01 22:34:04 +03:00
pmc.h
smd.c wcn36xx: Set LINK_FAIL_TX_CNT to 1000 on all wcn36xx 2020-11-07 10:09:15 +02:00
smd.h wcn36xx: Fix software-driven scan 2020-08-27 13:13:44 +03:00
testmode.c
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
testmode_i.h
txrx.c wcn36xx: Specify ieee80211_rx_status.nss 2020-09-02 11:48:26 +03:00
txrx.h
wcn36xx.h wcn36xx: Add accessor macro HW_VALUE_PHY for PHY settings 2020-09-22 10:22:55 +03:00