wpa_supplicant: Fix max sta num error for softAP

This commit is contained in:
zhangyanjiao 2023-05-05 17:45:37 +08:00 committed by muhaidong
parent e70f45acd1
commit 273f36829a
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void *hostap_init(void)
os_free(hapd);
return NULL;
}
hapd->conf->max_num_sta = MAX_STA_COUNT;
hapd->conf->max_num_sta = esp_wifi_ap_get_max_sta_conn();
auth_conf = (struct wpa_auth_config *)os_zalloc(sizeof(struct wpa_auth_config));

View File

@ -282,5 +282,6 @@ bool esp_wifi_is_ft_enabled_internal(uint8_t if_index);
uint8_t esp_wifi_sta_get_config_sae_pwe_h2e_internal(void);
uint8_t esp_wifi_sta_get_use_h2e_internal(void);
void esp_wifi_sta_disable_wpa2_authmode_internal(void);
uint8_t esp_wifi_ap_get_max_sta_conn(void);
#endif /* _ESP_WIFI_DRIVER_H_ */