File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/wifi/power_save/main Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ menu "Example Configuration"
4040 choice EXAMPLE_WIFI_BAND_MODE
4141 prompt "wifi band"
4242 default EXAMPLE_WIFI_BAND_MODE_2G
43- depends on SOC_WIFI_HE_SUPPORT_5G
43+ depends on SOC_WIFI_SUPPORT_5G
4444 help
4545 WiFi band for the example to use.
4646
Original file line number Diff line number Diff line change 3636#define DEFAULT_PS_MODE WIFI_PS_NONE
3737#endif /*CONFIG_POWER_SAVE_MODEM*/
3838
39- #if SOC_WIFI_HE_SUPPORT_5G
39+ #if CONFIG_SOC_WIFI_SUPPORT_5G
4040#if CONFIG_EXAMPLE_WIFI_BAND_MODE_2G
4141#define DEFAULT_WIFI_BAND_MODE WIFI_BAND_MODE_2G_ONLY
4242#elif CONFIG_EXAMPLE_WIFI_BAND_MODE_5G
@@ -89,7 +89,7 @@ static void wifi_power_save(void)
8989 ESP_ERROR_CHECK (esp_wifi_set_mode (WIFI_MODE_STA ));
9090 ESP_ERROR_CHECK (esp_wifi_set_config (WIFI_IF_STA , & wifi_config ));
9191 ESP_ERROR_CHECK (esp_wifi_start ());
92- #if SOC_WIFI_HE_SUPPORT_5G
92+ #if CONFIG_SOC_WIFI_SUPPORT_5G
9393 ESP_ERROR_CHECK (esp_wifi_set_band_mode (DEFAULT_WIFI_BAND_MODE ));
9494#endif
9595 ESP_ERROR_CHECK (esp_wifi_set_inactive_time (WIFI_IF_STA , DEFAULT_BEACON_TIMEOUT ));
You can’t perform that action at this time.
0 commit comments