Skip to content

Commit c739cdf

Browse files
committed
Merge branch 'bugfix/fix_some_wifi_bugs_230719_v4.4' into 'release/v4.4'
fix(wifi): fix some wifi bugs 230719 (backport v4.4) See merge request espressif/esp-idf!24898
2 parents 4fc8964 + a803c50 commit c739cdf

File tree

6 files changed

+23
-9
lines changed

6 files changed

+23
-9
lines changed

components/esp_rom/esp32c3/ld/esp32c3.rom.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ hal_mac_is_low_rate_enabled = 0x400015cc;
15891589
hal_mac_tx_get_blockack = 0x400015d0;
15901590
/* hal_mac_tx_set_ppdu = 0x400015d4; */
15911591
ic_get_trc = 0x400015d8;
1592-
ic_mac_deinit = 0x400015dc;
1592+
/* ic_mac_deinit = 0x400015dc; */
15931593
ic_mac_init = 0x400015e0;
15941594
ic_interface_enabled = 0x400015e4;
15951595
is_lmac_idle = 0x400015e8;

components/esp_rom/esp32s3/ld/esp32s3.rom.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ hal_mac_is_low_rate_enabled = 0x400052a4;
18991899
hal_mac_tx_get_blockack = 0x400052b0;
19001900
/* hal_mac_tx_set_ppdu = 0x400052bc; */
19011901
ic_get_trc = 0x400052c8;
1902-
ic_mac_deinit = 0x400052d4;
1902+
/* ic_mac_deinit = 0x400052d4; */
19031903
ic_mac_init = 0x400052e0;
19041904
ic_interface_enabled = 0x400052ec;
19051905
is_lmac_idle = 0x400052f8;

components/esp_wifi/include/esp_wifi.h

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/*
2-
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
87
/* Notes about WiFi Programming
98
*
109
* The esp32 WiFi programming model can be depicted as following picture:
@@ -620,7 +619,7 @@ esp_err_t esp_wifi_get_channel(uint8_t *primary, wifi_second_chan_t *second);
620619
* it's up to the user to fill in all fields according to local regulations.
621620
* Please use esp_wifi_set_country_code instead.
622621
* @attention 2. The default country is CHINA {.cc="CN", .schan=1, .nchan=13, .policy=WIFI_COUNTRY_POLICY_AUTO}.
623-
* @attention 3. The third octect of country code string is one of the following: ' ', 'O', 'I', 'X', otherwise it is considered as ' '.
622+
* @attention 3. The third octet of country code string is one of the following: ' ', 'O', 'I', 'X', otherwise it is considered as ' '.
624623
* @attention 4. When the country policy is WIFI_COUNTRY_POLICY_AUTO, the country info of the AP to which
625624
* the station is connected is used. E.g. if the configured country info is {.cc="US", .schan=1, .nchan=11}
626625
* and the country info of the AP to which the station is connected is {.cc="JP", .schan=1, .nchan=14}
@@ -1268,7 +1267,7 @@ esp_err_t esp_wifi_set_connectionless_wake_interval(uint16_t interval);
12681267
*
12691268
* @attention 7. When country code "01" (world safe mode) is set, SoftAP mode won't contain country IE.
12701269
* @attention 8. The default country is "CN" and ieee80211d_enabled is TRUE.
1271-
* @attention 9. The third octect of country code string is one of the following: ' ', 'O', 'I', 'X', otherwise it is considered as ' '.
1270+
* @attention 9. The third octet of country code string is one of the following: ' ', 'O', 'I', 'X', otherwise it is considered as ' '.
12721271
*
12731272
* @param country the configured country ISO code
12741273
* @param ieee80211d_enabled 802.11d is enabled or not
@@ -1342,6 +1341,21 @@ esp_err_t esp_wifi_sta_get_aid(uint16_t *aid);
13421341
* - ESP_OK: succeed
13431342
*/
13441343
esp_err_t esp_wifi_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);
1344+
1345+
/**
1346+
* @brief Get the rssi info after station connected to AP
1347+
*
1348+
* @attention This API should be called after station connected to AP.
1349+
*
1350+
* @param rssi store the rssi info received from last beacon.
1351+
*
1352+
* @return
1353+
* - ESP_OK: succeed
1354+
* - ESP_ERR_INVALID_ARG: invalid argument
1355+
* - ESP_FAIL: failed
1356+
*/
1357+
esp_err_t esp_wifi_sta_get_rssi(int *rssi);
1358+
13451359
#ifdef __cplusplus
13461360
}
13471361
#endif

docs/en/api-reference/network/esp_wifi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Wi-Fi libraries provide support for configuring and monitoring the {IDF_TARG
1212
- AP mode (aka Soft-AP mode or Access Point mode). Stations connect to the {IDF_TARGET_NAME}.
1313
- Combined AP-STA mode ({IDF_TARGET_NAME} is concurrently an access point and a station connected to another access point).
1414

15-
- Various security modes for the above (WPA, WPA2, WEP, etc.)
15+
- Various security modes for the above (WPA, WPA2, WPA3, etc.)
1616
- Scanning for access points (active & passive scanning).
1717
- Promiscuous mode for monitoring of IEEE802.11 Wi-Fi packets.
1818

docs/zh_CN/api-reference/network/esp_wifi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Wi-Fi 库支持配置及监控 {IDF_TARGET_NAME} Wi-Fi 连网功能。
1414
- AP 模式(即 Soft-AP 模式或接入点模式),此时基站连接到 {IDF_TARGET_NAME}。
1515
- AP-STA 共存模式({IDF_TARGET_NAME} 既是接入点,同时又作为基站连接到另外一个接入点)。
1616

17-
- 上述模式的各种安全模式(WPA、WPA2 及 WEP 等)。
17+
- 上述模式的各种安全模式(WPA、WPA2、WPA3 等)。
1818
- 扫描接入点(包括主动扫描及被动扫描)。
1919
- 使用混杂模式监控 IEEE802.11 Wi-Fi 数据包。
2020

0 commit comments

Comments
 (0)