esp_wifi: STA set extra IEs for open AP

Fixed regression caused by !21292
This commit is contained in:
Kapil Gupta
2022-12-01 09:24:06 +05:30
parent c3284bff14
commit 9e0e7bf5ba

View File

@@ -88,8 +88,6 @@ int wpa_config_profile(uint8_t *bssid)
wpa_set_profile(WPA_PROTO_RSN, esp_wifi_sta_get_prof_authmode_internal());
} else if (esp_wifi_sta_prof_is_wapi_internal()) {
wpa_set_profile(WPA_PROTO_WAPI, esp_wifi_sta_get_prof_authmode_internal());
} else if (esp_wifi_sta_get_prof_authmode_internal() == NONE_AUTH) {
esp_set_assoc_ie((uint8_t *)bssid, NULL, 0, false);
} else {
ret = -1;
}
@@ -198,6 +196,8 @@ int wpa_sta_connect(uint8_t *bssid)
wpa_printf(MSG_DEBUG, "Rejecting bss, validation failed");
return ret;
}
} else if (esp_wifi_sta_get_prof_authmode_internal() == NONE_AUTH) {
esp_set_assoc_ie((uint8_t *)bssid, NULL, 0, false);
}
return 0;