Commit Graph

13142 Commits

Author SHA1 Message Date
Jens Gutermuth
af3486ecf9 improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-29 14:27:49 +08:00
Jiang Jiang Jian
551de84c52 Merge branch 'bugfix/improve_scan_performance_when_scan_and_sync_coexist_v4.3' into 'release/v4.3'
Fixed some ESP32C3/S3 BLE bugs 23-04-22(backport v4.3)

See merge request espressif/esp-idf!23368
2023-04-24 11:09:39 +08:00
Jiang Jiang Jian
f3c5763f0e Merge branch 'bugfix/fix_some_ble_bug_v4.3' into 'release/v4.3'
Fixed some BLE bugs (backport v4.3)

See merge request espressif/esp-idf!23302
2023-04-24 10:46:48 +08:00
zhiweijian
0ca4644ad1 - improve scan performance when scan and sync coexist on ESP32-C3 and ESP32-S3
- Fixed non-connectable and non-scannable directed adv can't be scanned on ESP32-C3 and ESP32-S3
2023-04-23 22:00:14 +08:00
zhiweijian
96f9fac9c1 Disable controller 5.0 feature bits if host 5.0 feature is not enabled 2023-04-23 21:47:09 +08:00
zwj
f24ca9fdaf Fixed duplicate scan refresh cycle is not accurate after restarting scan on ESP32 2023-04-23 21:13:25 +08:00
Jiang Jiang Jian
a9586adb0b Merge branch 'bugfix/softap_beacon_process_v4.3' into 'release/v4.3'
esp_wifi: validate softAP interface when sending beacon and add sta_connected callback (Backport v4.3)

See merge request espressif/esp-idf!23264
2023-04-23 10:31:05 +08:00
Mahavir Jain
7b9accc482 Merge branch 'bugfix/block9_can_not_be_used_for_fe_v4.3' into 'release/v4.3'
efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5) (v4.3)

See merge request espressif/esp-idf!23293
2023-04-21 15:26:21 +08:00
chenjianhua
7c133db8b3 bluedroid: report status after clearing the BLE white list 2023-04-21 14:37:32 +08:00
chenjianhua
c186943097 bluedroid: fix GATTC cache address save 2023-04-21 14:37:31 +08:00
chenjianhua
8dbe4fec0d bluedroid: fix adv and scan state conflict 2023-04-21 14:37:31 +08:00
chenjianhua
31f6dab386 bluedroid: support get bluetooth device name 2023-04-21 14:37:31 +08:00
Zim Kalinowski
4571dd1d2f Merge branch 'contrib/github_pr_7754_v4.3' into 'release/v4.3'
Fix infinite recursion in FLAG_ATTR operator (GitHub PR) (backport v4.3)

See merge request espressif/esp-idf!23236
2023-04-20 19:34:38 +08:00
jgujarathi
f87afae48d wpa_supplicant : Prevent h2e config overwrite
Current esp_wifi_get_config doesn't return correct value of h2e config which will cause h2e config to be overwritten in Station connected handler.

Add one preventative condition to take care of this.
2023-04-20 15:29:19 +05:30
Sarvesh Bodakhe
37a2cce163 esp_wifi: fix some wifi bugs
1. Move wpa_supplicant WIFI_EVENT_STA_CONNECTED and WIFI_EVENT_STA_DISCONNECTED event handlers into callbacks
2. Validate softAP interface when sending beacon frame
2023-04-20 15:29:11 +05:30
KonstantinKondrashov
e920827199 esptool: Update esptool
Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
2023-04-20 14:16:21 +08:00
KonstantinKondrashov
e21b0cb6ed efuse: Prevent burning XTS_AES and ECDSA keys into BLOCK9 (BLOCK_KEY5)
eFuse module has a hardware bug.
It is related to ESP32-C3, C6, S3, H2 chips:
    - BLOCK9 (BLOCK_KEY5) can not be used by XTS_AES keys.
For H2 chips, the BLOCK9 (BLOCK_KEY5) can not be used by ECDSA keys.
S2 does not have such a hardware bug.
2023-04-20 14:16:21 +08:00
muhaidong
1c78db33ad esp_phy: add menuconfig of phy calibration mode and disable reduce PHY TX power when brownout reset 2023-04-18 20:06:01 +08:00
Otto Winter
381ac08f12 bugfix (esp_common): remove infinite recursion in FLAG_ATTR operator
Closes https://github.com/espressif/esp-idf/pull/7754

Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
2023-04-17 18:37:15 +08:00
liuning
72253506e9 esp_wifi: allow connectionless ps with mesh, fix failed to sleep after scan; coex: fix esp32 wifi interrupted by ble act 2023-04-14 14:22:54 +08:00
wangmengyang
8f0766c56e bt: added coex adapter operation to get version of coexist module to ESP32 Bluetooth Controller 2023-04-12 18:02:54 +08:00
Jiang Jiang Jian
0972f2cf58 Merge branch 'bugfix/bt_diable_enbale_crash_v4.3' into 'release/v4.3'
bt:Fixed esp32 controller bug (v4.3)

See merge request espressif/esp-idf!23152
2023-04-12 16:44:52 +08:00
xiongweichao
665ae6a80d bt:Fixed esp32 controller bug
1. Fixed crash after controller disable and re-enable
2. Fixed the crash caused by processing the HCI_Read_Remote_Extented_Features command in the non-connected state
3. Fixed disconnection due to not handling lmp_unsniff_req in LC_WAIT_SNIFF_SUB_RSP state
4. Fixed crash caused by supervision timeout greater than sniff interval

Closes https://github.com/espressif/esp-idf/issues/11164
Closes https://github.com/espressif/esp-idf/issues/10835
2023-04-12 09:48:30 +08:00
harshal.patil
9e4055ef44 mbedtls: Update to release v2.28.3
- Release Notes: https://github.com/Mbed-TLS/mbedtls/releases/tag/v2.28.3
2023-04-11 09:26:32 +00:00
Jiang Jiang Jian
c65c587b1f Merge branch 'mesh/bugfix_fix_heap_corrupt_issue_v4.3' into 'release/v4.3'
esp_wifi: fix bugs in LR and mesh (backport v4.3)

See merge request espressif/esp-idf!23129
2023-04-11 12:02:11 +08:00
Jiang Jiang Jian
6a7c5598e0 Merge branch 'bugfix/delete_node_during_list_traverse_4.3' into 'release/v4.3'
bugfix: Fixed the crash of LoadProhibited caused by invalid operation on list node in handling hci_hardware_error event (v4.3)

See merge request espressif/esp-idf!23119
2023-04-11 11:37:20 +08:00
zhangyanjiao
179b316de8 wifi_mesh: update mesh doc 2023-04-10 16:50:54 +08:00
zhangyanjiao
996cdca72f esp_wifi:
1. wifi_mesh: fix the heap corrupt issue in MTXON task
2. Update tx rate when phymode change from LR to 11N
3. wifi_mesh: Fix several bugs on mesh network
2023-04-10 16:48:49 +08:00
Jin Cheng
df161ee5fb fixed the crash of LoadProhibited caused by taht
the nodes are deleted during the traversal of the linked list
2023-04-08 11:31:06 +08:00
Xiao Xufeng
32c558cf17 himem: Fixed incorrect out_ptr when calling esp_himem_map range_offset non-zero
Closes: https://github.com/espressif/esp-idf/issues/5639
2023-04-06 02:05:09 +08:00
Jiang Jiang Jian
0369fe88c3 Merge branch 'bugfix/sta_sa_query_process_v4.3' into 'release/v4.3'
esp_wifi: Improve station SA query procedure handling and other bugfixes (Backport v4.3)

See merge request espressif/esp-idf!22905
2023-04-03 17:37:33 +08:00
Jiang Jiang Jian
4675e38ce2 Merge branch 'bugfix/fix_sc_send_failure_and_exit_issue_v4.3' into 'release/v4.3'
smartconfig: fix the issue of sending failure and exit(Backport v4.3)

See merge request espressif/esp-idf!23024
2023-04-01 12:17:52 +08:00
Sarvesh Bodakhe
2cf98db9a8 esp_wifi: Improve station SA query procedure handling and other bugfixes
1. Disable SA query timers when station disconnect and other SA query related improvements
2. Send appropriate reason code in 4 way handshake failure
3. Send deauth while going from assoc state to init, if reason is assoc timeout
2023-03-31 17:46:03 +05:30
Jiang Jiang Jian
dd8f93ee95 Merge branch 'doc/update_doc_of_esp_bt_gap_set_cod_v4.3' into 'release/v4.3'
bt: Optimized the document for GAP API: esp_bt_gap_set_cod (v4.3)

See merge request espressif/esp-idf!22996
2023-03-31 18:06:05 +08:00
Jiang Jiang Jian
54bce0c948 Merge branch 'bugfix/fix_chm_of_ext_adv_params_v43' into 'release/v4.3'
Bluedroid: fix channel map of ext adv params check (backport v4.3)

See merge request espressif/esp-idf!22690
2023-03-31 18:05:57 +08:00
muhaidong
00d569a1b2 smartconfig: fix the issue of sending failure and exit 2023-03-31 17:28:08 +08:00
Jiang Jiang Jian
40ed293404 Merge branch 'bugfix/tx_desc_fragment_v4.3' into 'release/v4.3'
esp_wifi: fix potential issue when tx fragment pkt(v4.3)

See merge request espressif/esp-idf!22962
2023-03-31 14:11:07 +08:00
Jiang Jiang Jian
b1ececef12 Merge branch 'bugfix/fix_hw_ralunderrun_assert_v4.3' into 'release/v4.3'
Fixed BLE HW RAL_UNDERRUN asser and backport some bug fix 23-03-30 (back port v4.3)

See merge request espressif/esp-idf!23011
2023-03-31 14:03:11 +08:00
chenjianhua
e82ebbe772 Bluedroid: fix channel map of ext adv params check 2023-03-31 05:55:24 +00:00
Jiang Jiang Jian
9502bccfc4 Merge branch 'bugfix/improve_tx_robust_v4.3' into 'release/v4.3'
esp_wifi: fix c3 rate control issue to improve tx robust(v4.3)

See merge request espressif/esp-idf!23010
2023-03-31 13:52:29 +08:00
zwj
e1a1e70720 - Support ESP32C3 and ESP32S3 new BLE lib
- Disable controller 5.0 feature bits if host 5.0 feature is not enabled
- Fixed extend ADV parameters check for ADV_DIRECT_HI
- Fixed HW RAL_UNDERRUN assert
2023-03-30 22:00:02 +08:00
chenjianxing
54b61a77a2 esp_wifi: fix c3 rate control issue to improve tx robust 2023-03-30 21:52:06 +08:00
jgujarathi
cf3cf0470a wpa_supplicant : Add deinitialization of Enterprise config_methods.
Add deinitialization of config_methods as it prevents correct reinitialization
of sta in eap_peer_config_init() during reassoc.
2023-03-30 13:35:36 +00:00
jgujarathi
a09946e3c3 wpa_supplicant : Add support for unregistering wifi wpa3 callbacks.
Unregister wifi callbacks allows for disabling support for wpa3 functions when not required.
2023-03-30 13:35:36 +00:00
Jiang Jiang Jian
3ce1d93958 Merge branch 'test/add_spi_slave_freq_test_v4.3' into 'release/v4.3'
spi_slave: fix io re-config issue (v4.3)

See merge request espressif/esp-idf!22594
2023-03-30 21:34:25 +08:00
Jiang Jiang Jian
49e55d0962 Merge branch 'bufix/Backport_some_lwip_bugs_for_4.3_0330' into 'release/v4.3'
bugfix/Backport_some_lwip_bugs_for_4.3_0330

See merge request espressif/esp-idf!22997
2023-03-30 21:33:59 +08:00
Jiang Jiang Jian
f01a1f5b6b Merge branch 'bugfix/hfp_ag_cannot_init_conn_v4.3' into 'release/v4.3'
bt: Fixed the index out of bounds of hfp_ag BTC control block (v4.3)

See merge request espressif/esp-idf!22874
2023-03-30 21:33:33 +08:00
zwj
3ef7e529b4 If it is not esp32 chips, hide the configuration item: BT_BLE_RPA_SUPPORTED 2023-03-30 19:28:38 +08:00
zwj
5e39c2316d remove SOC_BLE_UPDATE_OWN_RPA 2023-03-30 19:07:15 +08:00
zhiweijian
fbdbb5af62 set BT_CTRL_BLE_MAX_ACT default value to 6 2023-03-30 19:00:41 +08:00