Skip to content

Commit c66052e

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'bugfix/fix_11a_rate_index_incorrect_and_twt_sleep_issue_v5.5' into 'release/v5.5'
Bugfix/fix 11a rate index incorrect and twt sleep issue v5.5 See merge request espressif/esp-idf!40383
2 parents 12191f2 + 4451649 commit c66052e

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

components/esp_rom/esp32c5/ld/esp32c5.rom.pp.ld

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pm_rx_beacon_process = 0x40000dac;
133133
pm_rx_data_process = 0x40000db0;
134134
pm_sleep = 0x40000db4;
135135
pm_sleep_for = 0x40000db8;
136-
pm_tbtt_process = 0x40000dbc;
136+
//pm_tbtt_process = 0x40000dbc;
137137
pm_tx_data_done_process = 0x40000dc0;
138138
pm_allow_tx = 0x40000dc4;
139139
pm_extend_tbtt_adaptive_servo = 0x40000dc8;
@@ -151,9 +151,9 @@ pm_twt_set_target_tsf = 0x40000df4;
151151
pm_enable_twt_keep_alive_timer = 0x40000df8;
152152
/*pm_mac_try_enable_modem_state = 0x40000dfc;*/
153153
pm_beacon_monitor_tbtt_timeout_process = 0x40000e00;
154-
pm_update_next_tbtt = 0x40000e04;
154+
//pm_update_next_tbtt = 0x40000e04;
155155
pm_twt_disallow_tx = 0x40000e08;
156-
pm_clear_wakeup_signal = 0x40000e0c;
156+
//pm_clear_wakeup_signal = 0x40000e0c;
157157
//pm_mac_disable_tsf_tbtt_soc_wakeup = 0x40000e10;
158158
//pm_mac_disable_tsf_tbtt_modem_wakeup = 0x40000e14;
159159
//pm_mac_enable_tsf_tbtt_soc_wakeup = 0x40000e18;
@@ -462,9 +462,9 @@ pm_coex_schm_overall_period_get = 0x40001504;
462462
//pm_coex_pwr_update = 0x40001508;
463463
ppRemoveHEAMPDUflags = 0x4000150c;
464464
tsf_hal_get_tbtt_interval = 0x40001510;
465-
pm_beacon_monitor_tbtt_start = 0x40001514;
465+
//pm_beacon_monitor_tbtt_start = 0x40001514;
466466
pm_save_tbtt_info = 0x40001518;
467-
pm_get_tbtt_count = 0x4000151c;
467+
//pm_get_tbtt_count = 0x4000151c;
468468
tsf_hal_get_time = 0x40001520;
469469
tsf_hal_get_counter_value = 0x40001524;
470470

@@ -488,10 +488,10 @@ pm_beacon_offset_is_enabled = 0x400015bc;
488488
pm_beacon_offset_is_sampling = 0x400015c0;
489489
pm_beacon_offset_add_total_counter = 0x400015c4;
490490
pm_beacon_offset_add_loss_counter = 0x400015c8;
491-
pm_beacon_offset_check = 0x400015cc;
492-
pm_beacon_offset_get_average = 0x400015d0;
493-
pm_beacon_offset_get_expect = 0x400015d4;
494-
pm_beacon_offset_get_params = 0x400015d8;
491+
//pm_beacon_offset_check = 0x400015cc;
492+
//pm_beacon_offset_get_average = 0x400015d0;
493+
//pm_beacon_offset_get_expect = 0x400015d4;
494+
//pm_beacon_offset_get_params = 0x400015d8;
495495
/* Data (.data, .bss, .rodata) */
496496
s_tbttstart_ptr = 0x4085fc68;
497497
s_pm_beacon_offset_ptr = 0x4085fc64;

examples/wifi/itwt/main/Kconfig.projbuild

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ menu "Example Configuration"
119119
depends on !IDF_TARGET_ESP32C2
120120
config EXAMPLE_MAX_CPU_FREQ_240
121121
bool "240 MHz"
122-
depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
122+
depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C5
123123
endchoice
124124

125125
config EXAMPLE_MAX_CPU_FREQ_MHZ
@@ -131,7 +131,8 @@ menu "Example Configuration"
131131

132132
choice EXAMPLE_MIN_CPU_FREQ
133133
prompt "Minimum CPU frequency"
134-
default EXAMPLE_MIN_CPU_FREQ_10M
134+
default EXAMPLE_MIN_CPU_FREQ_10M if !IDF_TARGET_ESP32C5
135+
default EXAMPLE_MIN_CPU_FREQ_12M if IDF_TARGET_ESP32C5
135136
depends on PM_ENABLE
136137
help
137138
Minimum CPU frequency to use for dynamic frequency scaling.
@@ -143,6 +144,9 @@ menu "Example Configuration"
143144
config EXAMPLE_MIN_CPU_FREQ_20M
144145
bool "20 MHz (use with 40MHz XTAL)"
145146
depends on XTAL_FREQ_40 || XTAL_FREQ_AUTO
147+
config EXAMPLE_MIN_CPU_FREQ_12M
148+
bool "12 MHz (use with 48MHz XTAL)"
149+
depends on XTAL_FREQ_48 || XTAL_FREQ_AUTO
146150
config EXAMPLE_MIN_CPU_FREQ_10M
147151
bool "10 MHz (use with 40MHz XTAL)"
148152
depends on XTAL_FREQ_40 || XTAL_FREQ_AUTO
@@ -161,5 +165,6 @@ menu "Example Configuration"
161165
default 10 if EXAMPLE_MIN_CPU_FREQ_10M
162166
default 26 if EXAMPLE_MIN_CPU_FREQ_26M
163167
default 13 if EXAMPLE_MIN_CPU_FREQ_13M
168+
default 12 if EXAMPLE_MIN_CPU_FREQ_12M
164169

165170
endmenu

examples/wifi/itwt/main/itwt_main.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Unlicense OR CC0-1.0
55
*/
@@ -275,9 +275,22 @@ static void wifi_itwt(void)
275275
.twt_enable_keep_alive = keep_alive_enabled,
276276
};
277277
ESP_ERROR_CHECK(esp_wifi_sta_twt_config(&wifi_twt_config));
278+
#if CONFIG_SOC_WIFI_SUPPORT_5G
279+
wifi_bandwidths_t bw = {
280+
.ghz_2g = WIFI_BW_HT20,
281+
.ghz_5g = WIFI_BW_HT20,
282+
};
283+
esp_wifi_set_bandwidths(WIFI_IF_STA, &bw);
278284

285+
wifi_protocols_t protocol = {
286+
.ghz_2g = WIFI_PROTOCOL_11AX,
287+
.ghz_5g = WIFI_PROTOCOL_11AX,
288+
};
289+
esp_wifi_set_protocols(WIFI_IF_STA, &protocol);
290+
#else
279291
esp_wifi_set_bandwidth(WIFI_IF_STA, WIFI_BW_HT20);
280292
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_11AX);
293+
#endif
281294
esp_wifi_set_ps(WIFI_PS_MIN_MODEM);
282295

283296
#if CONFIG_EXAMPLE_ENABLE_STATIC_IP

0 commit comments

Comments
 (0)