Skip to content

Commit

Permalink
Enable WiFi 802.11k 802.11v (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson authored Oct 9, 2024
1 parent 8ce6811 commit cccae3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion components/connect/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,16 @@ esp_netif_t * wifi_init_sta(const char * wifi_ssid, const char * wifi_pass)
.sta =
{
.threshold.authmode = authmode,
},
.btm_enabled = 1,
.rm_enabled = 1,
.scan_method = WIFI_ALL_CHANNEL_SCAN,
.sort_method = WIFI_CONNECT_AP_BY_SIGNAL,
.pmf_cfg =
{
.capable = true,
.required = false
},
},
};

strncpy((char *) wifi_sta_config.sta.ssid, wifi_ssid, sizeof(wifi_sta_config.sta.ssid));
Expand Down
3 changes: 2 additions & 1 deletion sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
CONFIG_HTTPD_WS_SUPPORT=y
CONFIG_SPIFFS_OBJ_NAME_LEN=64
CONFIG_HTTPD_MAX_URI_LEN=2048
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP_WIFI_11KV_SUPPORT=y

0 comments on commit cccae3c

Please sign in to comment.