Skip to content

wifi: Add support for runtime BSS max idle support configuration #91904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ajayparida
Copy link
Contributor

Support to configure BSS max idle period at runtime.

Copy link

github-actions bot commented Jun 19, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hostap zephyrproject-rtos/hostap@cf27000 (main) zephyrproject-rtos/hostap#89 zephyrproject-rtos/hostap#89/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Jun 19, 2025
@@ -4285,6 +4311,12 @@ SHELL_SUBCMD_ADD((wifi), ps_exit_strategy, NULL,
cmd_wifi_ps_exit_strategy,
2, 2);

SHELL_SUBCMD_ADD((wifi), bss_max_idle_period, NULL,
"<bss_max_idle: timer(in TUs)>.\n"
Copy link
Collaborator

@krish2718 krish2718 Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"<bss_max_idle: timer(in TUs)>.\n"
"<bss_max_idle: timeout (in TUs)>.\n"

@ajayparida ajayparida force-pushed the bss_max_idle_timeout branch from 7e7c4cd to a0d39e2 Compare June 24, 2025 08:06
@github-actions github-actions bot added the platform: nRF Nordic nRFx label Jun 24, 2025
@github-actions github-actions bot removed manifest manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Jun 24, 2025
@krish2718 krish2718 changed the title Configure bss max idle timeout wifi: Add support for runtime BSS max idle support configuration Jun 24, 2025
@ajayparida ajayparida force-pushed the bss_max_idle_timeout branch from a0d39e2 to 20dd740 Compare June 24, 2025 12:44
@github-actions github-actions bot added manifest manifest-hostap DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Jun 24, 2025
@ajayparida ajayparida force-pushed the bss_max_idle_timeout branch 2 times, most recently from 1ecff80 to 1c1499f Compare June 24, 2025 13:12
Support to configure BSS max idle period at runtime.

Signed-off-by: Ajay Parida <[email protected]>
Revert max idle period configuration from hostap.

Signed-off-by: Ajay Parida <[email protected]>
@ajayparida ajayparida force-pushed the bss_max_idle_timeout branch from 1c1499f to 61a16fd Compare June 24, 2025 13:48
Copy link

@@ -88,6 +88,8 @@ struct nrf_wifi_vif_ctx_zep {
struct k_work_delayable nrf_wifi_rpu_recovery_bringup_work;
#endif /* CONFIG_NRF_WIFI_RPU_RECOVERY */
int rts_threshold_value;
bool bss_max_idle_period_user_set;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this is just a once shot flag, do we really need it? We can just initialized bss_max_idle_period = -1 (which overflows as it's unsigned int and becomes invalid as valid is only 64000`?

@@ -4285,6 +4311,12 @@ SHELL_SUBCMD_ADD((wifi), ps_exit_strategy, NULL,
cmd_wifi_ps_exit_strategy,
2, 2);

SHELL_SUBCMD_ADD((wifi), bss_max_idle_period, NULL,
"<bss_max_idle_period: timeout(in TUs)>.\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"<bss_max_idle_period: timeout(in TUs)>.\n"
"<BSS max idle period preference: timeout(in TUs)>.\n"

@@ -149,3 +149,19 @@ config HEAP_MEM_POOL_ADD_SIZE_WIFI_CERT
endif # WIFI_SHELL_RUNTIME_CERTIFICATES

endif # WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE

config WIFI_MGMT_BSS_MAX_IDLE_TIME
int "BSS max idle timeout in seconds"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
int "BSS max idle timeout in seconds"
int "BSS max idle timeout in TUs"

Please confirm the units, shell says TUs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Wi-Fi Wi-Fi DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hostap platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants