Ver Fonte

esp_wifi: STA set extra IEs for open AP

Shreyas Sheth há 3 anos atrás
pai
commit
340778cb13

+ 2 - 0
components/wpa_supplicant/esp_supplicant/src/esp_wpa_main.c

@@ -88,6 +88,8 @@ 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;
     }