esp_wifi: Make enterprise support configurable to save binary size.

This commit is contained in:
aditi_lonkar
2023-06-16 13:19:50 +05:30
parent fc4fcb5519
commit c88e7106ec
5 changed files with 20 additions and 0 deletions

View File

@@ -170,6 +170,7 @@ unsigned cipher_type_map_public_to_supp(wifi_cipher_type_t cipher)
}
}
#ifdef CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
static bool is_wpa2_enterprise_connection(void)
{
uint8_t authmode;
@@ -185,6 +186,7 @@ static bool is_wpa2_enterprise_connection(void)
return false;
}
#endif
/**
* get_bssid - Get the current BSSID
@@ -688,9 +690,11 @@ void wpa_supplicant_process_1_of_4(struct wpa_sm *sm,
if (res)
goto failed;
#ifdef CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
if (is_wpa2_enterprise_connection()) {
pmksa_cache_set_current(sm, NULL, sm->bssid, 0, 0);
}
#endif
if (sm->renew_snonce) {
if (os_get_random(sm->snonce, WPA_NONCE_LEN)) {