File tree Expand file tree Collapse file tree 5 files changed +552
-941
lines changed
Expand file tree Collapse file tree 5 files changed +552
-941
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,14 @@ menu "Wi-Fi"
814814 be shared to other devices, making it in readable format increases
815815 that risk, also passphrase requires pbkdf2 to convert in psk.
816816
817+ config ESP_WIFI_WPS_RECONNECT_ON_FAIL
818+ bool "Reconnect to previous SSID if WPS failed"
819+ default n
820+ help
821+ Select this option to enable reconnection to previous SSID if WPS fails.
822+ This option will only work if station was connected to a network
823+ when WPS was started.
824+
817825 endmenu # "WPS Configuration Options"
818826
819827
Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ target_compile_definitions(${COMPONENT_LIB} PRIVATE
264264 EAP_PEAP
265265 USE_WPA2_TASK
266266 CONFIG_WPS
267- USE_WPS_TASK
268267 ESPRESSIF_USE
269268 CONFIG_ECC
270269 CONFIG_IEEE80211W
@@ -291,6 +290,9 @@ endif()
291290if (CONFIG_ESP_WIFI_WPS_STRICT)
292291 target_compile_definitions (${COMPONENT_LIB} PRIVATE CONFIG_WPS_STRICT)
293292endif ()
293+ if (CONFIG_ESP_WIFI_WPS_RECONNECT_ON_FAIL)
294+ target_compile_definitions (${COMPONENT_LIB} PRIVATE CONFIG_WPS_RECONNECT_ON_FAIL)
295+ endif ()
294296if (CONFIG_ESP_WIFI_SUITE_B_192)
295297 target_compile_definitions (${COMPONENT_LIB} PRIVATE CONFIG_SUITEB192)
296298endif ()
You can’t perform that action at this time.
0 commit comments