|
|
@@ -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)) {
|