Skip to content

Commit

Permalink
drivers: wifi: Option for Qos NULL frame based power save
Browse files Browse the repository at this point in the history
[SHEL-2947] Provides an option to use Qos null frame based power save.
When set, RPU uses QoS null frames to retrieve buffered frames from the AP,
otherwise, it initially uses PS-POLL frames.

Signed-off-by: Ajay Parida <[email protected]>
  • Loading branch information
ajayparida authored and srinivas1201 committed Jul 16, 2024
1 parent 5cefd50 commit 18a9693
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/wifi/nrf700x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,9 @@ config NRF_WIFI_AP_DEAD_DETECT_TIMEOUT
help
The number of seconds after which AP is declared dead if no beacons
are received from the AP. Used to detect AP silently going down e.g., power off.

config NRF_WIFI_PS_DATA_RETRIEVAL_MODE
bool "Use only QoS null frame to retrieve buffered data from AP."
help
By default RPU uses both QoS null frame and PS-Poll to retrieve buffered frames from the AP.
Enable it to use only QoS null frames for retrieving buffered frames from the AP.
2 changes: 2 additions & 0 deletions drivers/wifi/nrf700x/osal/fw_if/umac_if/src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ enum nrf_wifi_status umac_cmd_init(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
umac_cmd_data->disable_beamforming = 1;
}

umac_cmd_data->nullframe_pwrsave = IS_ENABLED(CONFIG_NRF_WIFI_PS_DATA_RETRIEVAL_MODE);

status = nrf_wifi_hal_ctrl_cmd_send(fmac_dev_ctx->hal_dev_ctx,
umac_cmd,
(sizeof(*umac_cmd) + len));
Expand Down

0 comments on commit 18a9693

Please sign in to comment.