mbox series

[v2,0/3] wcn36xx: Firmware link monitor/keepalive offload

Message ID 20201103121735.291324-1-bryan.odonoghue@linaro.org
Headers show
Series wcn36xx: Firmware link monitor/keepalive offload | expand

Message

Bryan O'Donoghue Nov. 3, 2020, 12:17 p.m. UTC
V2:
- Sets LINK_FAIL_TX_CNT to 1000 for all wcn36xx parts
- Uses wrapper function wcn36xx_enable_keep_alive_null_packet()
  around wcn36xx_smd_keep_alive_req()

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

https://www.spinics.net/lists/linux-wireless/msg204844.html

V1:
This patchset enables various firmware offload features for

- Link keepalive
- Link monitoring

Keepalive is a necessary precursor for an upcoming series on
wake on wlan, since we need to inform the firmware to keep the link up in
suspend.

Testing shows that LINK_FAIL_TX_CNT is a link monitor enable field. Once
set to non-zero link monitoring becomes active. This series activates
CONNECTION_MONITOR after enabling LINK_FAIL_TX_CNT thus offloading link
monitoring to the firmware.

Bryan O'Donoghue (3):
  wcn36xx: Set LINK_FAIL_TX_CNT to 1000 on all wcn36xx
  wcn36xx: Enable firmware link monitoring
  wcn36xx: Enable firmware offloaded keepalive

 drivers/net/wireless/ath/wcn36xx/main.c | 2 ++
 drivers/net/wireless/ath/wcn36xx/smd.c  | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.28.0