Skip to content

Commit 6e4d310

Browse files
committed
fix(wifi): fix some macro definition not correct
1 parent af017d1 commit 6e4d310

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/wifi/power_save/main/Kconfig.projbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

examples/wifi/power_save/main/power_save.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
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));

0 commit comments

Comments
 (0)