mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
wpa_supplicant: Fix max sta num error for softAP
This commit is contained in:
@ -46,7 +46,7 @@ void *hostap_init(void)
|
|||||||
os_free(hapd);
|
os_free(hapd);
|
||||||
return NULL;
|
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));
|
auth_conf = (struct wpa_auth_config *)os_zalloc(sizeof(struct wpa_auth_config));
|
||||||
|
|
||||||
|
@ -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_config_sae_pwe_h2e_internal(void);
|
||||||
uint8_t esp_wifi_sta_get_use_h2e_internal(void);
|
uint8_t esp_wifi_sta_get_use_h2e_internal(void);
|
||||||
void esp_wifi_sta_disable_wpa2_authmode_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_ */
|
#endif /* _ESP_WIFI_DRIVER_H_ */
|
||||||
|
Reference in New Issue
Block a user