Skip to content

Commit

Permalink
drivers: wifi: Add support for keepalive
Browse files Browse the repository at this point in the history
To handle interoperability issue with few APs, add a feature to keep
sending keepalive frames periodically to avoid AP disconnecting the STA.

This is disabled by default to avoid unnecessary power consumption as
it's only seen with few old APs.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and carlescufi committed Aug 29, 2024
1 parent 5c020f6 commit 7ff21d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/wifi/nrf700x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -729,3 +729,21 @@ config NET_MGMT_EVENT_QUEUE_SIZE
# Doing interface down and up even with delay puts a lot of events in the queue
default 16
endif

config NRF_WIFI_FEAT_KEEPALIVE
bool "Enable Wi-Fi keepalive feature"
depends on NRF700X_STA_MODE
help
Enable Wi-Fi keepalive feature to keep the connection alive by sending
keepalive packets to the AP. Primarily intended to interoperate with APs
that disconnect idle clients without any explicit checks. Slightly increases
power consumption.

if NRF_WIFI_FEAT_KEEPALIVE
config NRF_WIFI_KEEPALIVE_PERIOD_S
int "Keepalive period in seconds"
range 30 3600
default 60
help
Keepalive period in seconds to send keepalive packets to the AP.
endif

0 comments on commit 7ff21d7

Please sign in to comment.