feat(wifi): Enable bss max idle support on all chips

- Fix issues in Max Idle period negotiation and protected keep alive
- Add BSS Max Idle config in SoftAP config and create a feature flag
- Add a unit test case to test both STA and SoftAP implementation
This commit is contained in:
Sajia
2025-04-01 12:00:03 +05:30
parent 6b4f08c1dc
commit c4f592679b
11 changed files with 288 additions and 25 deletions

View File

@@ -75,6 +75,12 @@ void wifi_init_softap(void)
.pmf_cfg = {
.required = true,
},
#ifdef CONFIG_ESP_WIFI_BSS_MAX_IDLE_SUPPORT
.bss_max_idle_cfg = {
.period = WIFI_AP_DEFAULT_MAX_IDLE_PERIOD,
.protected_keep_alive = 1,
},
#endif
},
};
if (strlen(EXAMPLE_ESP_WIFI_PASS) == 0) {