wifi_provisioning/manager.c: Fix small bug introduced in recent MR.

This commit is contained in:
Aditya Patwardhan 2022-10-07 18:25:47 +05:30
parent d70e80b7bb
commit ccb8b9d42c

View File

@ -1485,7 +1485,7 @@ esp_err_t wifi_prov_mgr_start_provisioning(wifi_prov_security_t security, const
/* Initialize app data */ /* Initialize app data */
if (security == WIFI_PROV_SECURITY_0) { if (security == WIFI_PROV_SECURITY_0) {
prov_ctx->mgr_info.capabilities.no_sec = true; prov_ctx->mgr_info.capabilities.no_sec = true;
} else }
#endif #endif
#ifdef CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_1 #ifdef CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_1
if (security == WIFI_PROV_SECURITY_1) { if (security == WIFI_PROV_SECURITY_1) {
@ -1504,7 +1504,7 @@ esp_err_t wifi_prov_mgr_start_provisioning(wifi_prov_security_t security, const
} else { } else {
prov_ctx->mgr_info.capabilities.no_pop = true; prov_ctx->mgr_info.capabilities.no_pop = true;
} }
} else }
#endif #endif
#ifdef CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2 #ifdef CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
if (security == WIFI_PROV_SECURITY_2) { if (security == WIFI_PROV_SECURITY_2) {