10573 Commits

Author SHA1 Message Date
xiongweichao
c528942f0d bt: Fixed SPP VFS mode not being able to send data 2022-10-26 16:46:11 +08:00
xiongweichao
404d2be6f2 bt: Fixed esp_spp_write() crash when len is 0
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-26 16:45:50 +08:00
Jiang Jiang Jian
d33ce3ce52 Merge branch 'bugfix/fix_esp32_some_bugs_v4.2' into 'release/v4.2'
Fixed BLE ASSERT_PARAM(32 0) in rwble.c at line 384 on ESP32(backport v4.2)

See merge request espressif/esp-idf!20762
2022-10-26 10:56:12 +08:00
Jiang Jiang Jian
39f3ab13ce Merge branch 'bugfix/update_ctrl_init_config_macro_v4.2' into 'release/v4.2'
Bugfix/update ctrl init config macro (v4.2)

See merge request espressif/esp-idf!20714
2022-10-25 17:41:42 +08:00
zhiweijian
78fd81c0d3 Fixed ESP32 BLE assert(32 0) 2022-10-25 17:33:17 +08:00
zwj
a2dfa5c86b allow bluedroid host to report adv_ind separately 2022-10-25 17:33:17 +08:00
zhangyanjiao
f32a3ad5b0 esp_wifi: build wifi lib with -Os optimization
Closes WIFI-4710
2022-10-24 15:24:06 +08:00
Jiang Jiang Jian
509e708a96 Merge branch 'bugfix/fix_some_wifi_bugs_1019_v4.2' into 'release/v4.2'
esp_wifi: fix some wifi bugs(Backport v4.2)

See merge request espressif/esp-idf!20729
2022-10-24 12:25:27 +08:00
liuning
73912c07ce esp_wifi: fix fail to scan after recv disassoc/deauth for esp32s2 2022-10-21 19:59:27 +08:00
muhaidong
234a45b2b3 esp_wifi: fix some wifi bugs:
1. fix sta reset beacon timeout timer issue
2. fix pairwise cipher tkip pmf compability issue
3. fix country policy issue
4. fix deinit return wrong status issue
5. fix get wrong channel value use esp_wifi_get_config
6. fix bug of missing unlock when wifi stop
7. fix error of esp_wifi_start_scan in api esp_wifi_connect
8. fix fail to scan after recv disassoc/deauth for esp32s2
2022-10-21 19:59:09 +08:00
Jiang Jiang Jian
04bf991178 Merge branch 'bugfix/fix_legacy_pair_not_send_link_key_host_v4.2' into 'release/v4.2'
component_bt: fix legacy pair controller does not send the link key to the host (v4.2)

See merge request espressif/esp-idf!19322
2022-10-21 16:06:58 +08:00
Jin Cheng
bb2f66843c Corrects header names in string from "bt.h" to "esp_bt.h". 2022-10-21 13:14:38 +08:00
Jiang Jiang Jian
eb8316394c Merge branch 'bugfix/revert_commit_da44fc9c_v4.2' into 'release/v4.2'
Revert "fixed the issue iOS devices cannot initiate connection" (v4.2)

See merge request espressif/esp-idf!20668
2022-10-20 19:18:54 +08:00
xiongweichao
2a3ab6accf fix legacy pair controller does not send the link key to the host
Closes https://github.com/espressif/esp-idf/issues/5850
2022-10-20 11:07:24 +00:00
Island
f17dce2c3b Merge branch 'feature/Add_IVI_recovery_option_v4.2' into 'release/v4.2'
ble_mesh: stack: Add IV index recovery option when device missed the whole IV update(v4.2)

See merge request espressif/esp-idf!20644
2022-10-20 16:42:51 +08:00
Island
25e80452ab Merge branch 'bugfix/fix_fast_interval_prov_adv_v4.2' into 'release/v4.2'
ble_mesh: stack: Fix send fast interval prov_adv failed(v4.2)

See merge request espressif/esp-idf!20638
2022-10-20 16:41:58 +08:00
Jiang Jiang Jian
5158f347cd Merge branch 'bugfix/fix_connect_fail_when_enable_SPIRAM_v4.2' into 'release/v4.2'
esp_wifi: fix connect fail when enable SPIRAM and ESPNOW send (backport v4.2)

See merge request espressif/esp-idf!20606
2022-10-20 12:02:48 +08:00
zhangyanjiao
e28977a884 esp_wifi:
1. fix connect fail when enable SPIRAM and ESPNOW send
2. refactor WiFi ioctl function
2022-10-19 10:20:26 +08:00
Jin Cheng
15f49d5848 Revert "fixed the issue iOS devices cannot initiate connection"
This reverts commit da44fc9cbefa208eaea45e105c3a9dc36959417f.
2022-10-18 19:45:49 +08:00
xiongweichao
7162617e65 Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()
Closes https://github.com/espressif/esp-idf/issues/9672
2022-10-18 06:15:46 +00:00
tgotic
2b70fe2531 update code to use osi_free() 2022-10-18 06:15:46 +00:00
tgotic
59e36c445d local copy of btc_msg_t
No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post().
2022-10-18 06:15:46 +00:00
wangjialiang
f56c9da3d7 ble_mesh: stack: Add IV index recovery option when device missed the whole IV update 2022-10-17 16:54:47 +08:00
wangjialiang
b467ab61a1 ble_mesh: stack: Fix send fast interval prov_adv failed when PB-ADV and PB-GATT enable simultaneously 2022-10-17 16:40:38 +08:00
Song Ruo Jing
3b5ce456e2 rtc_clk: Fix rtc8m calibration failure after cpu/core reset
Explicitly guarantee 8md256 clk is enabled before calibration
2022-10-12 12:44:48 +08:00
Michael (XIAO Xufeng)
2900d0da2e Merge branch 'bugfix/i2c_timeout_issue_v4.2' into 'release/v4.2'
I2C: patch for solving watchdog timeout issue(backport v4.2)

See merge request espressif/esp-idf!18135
2022-10-11 15:21:49 +08:00
morris
2451047a7b Merge branch 'feat/spi_flash_qio_test_v4.2' into 'release/v4.2'
spi_flash: add unit tests for qio mode (v4.2)

See merge request espressif/esp-idf!17696
2022-10-10 18:22:49 +08:00
Wang Meng Yang
db75db5509 Merge branch 'bugfix/remove_bt_dft_init_semicolon_v4.2' into 'release/v4.2'
bt: Remove trailing semicolon from bt dft initializer(v4.2)

See merge request espressif/esp-idf!19917
2022-10-10 17:32:57 +08:00
Wang Meng Yang
9c5127d0e4 Merge branch 'feature/sink_support_mono_v4.2' into 'release/v4.2'
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data(v4.2)

See merge request espressif/esp-idf!20080
2022-10-10 17:32:35 +08:00
Wang Meng Yang
82890eee6c Merge branch 'bugfix/a2dp_can_not_connect_after_ble_connected_v4.2' into 'release/v4.2'
fixed the issue iOS devices cannot initiate connection (v4.2)

See merge request espressif/esp-idf!20406
2022-10-10 17:25:25 +08:00
Cao Sen Miao
9a59ed4b7a I2C: patch for solving watchdog timeout issue 2022-10-10 11:05:25 +08:00
Wang Meng Yang
bd4b68167d Merge branch 'bugfix/fix_ble_get_cur_pkt_num_crash_sometimes_when_bluetooth_is_disconnecting_v4.2' into 'release/v4.2'
Fixed calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting(backport v4.2)

See merge request espressif/esp-idf!20379
2022-10-08 16:35:45 +08:00
Jiang Jiang Jian
5976dcc006 Merge branch 'bugfix/fix_send_eapol_key_request_frame_when_wpa_group_handshake_issue_v4.2' into 'release/v4.2'
wpa_supplicant: try install gtk before send group key handshake message 2(Backport v4.2)

See merge request espressif/esp-idf!20199
2022-09-28 17:50:35 +08:00
Jin Cheng
396dc28ca9 fixed the issue iOS devices cannot initiate connection
to ESP32 while there is a BLE connection to this ESP32

Closes https://github.com/espressif/esp-idf/issues/6557
2022-09-28 16:16:05 +08:00
cjin
1659c3460a fix on data len change cmd malfunction 2022-09-27 21:47:39 +08:00
cjin
9d9b08ff10 fix err using rpa for confirmation calculation 2022-09-27 21:47:25 +08:00
zwj
4c3a48edea fix calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting 2022-09-27 21:46:57 +08:00
morris
04f2766b3e Merge branch 'bugfix/fix_spi_bus_lock_concurrency_issue_v4.2' into 'release/v4.2'
spi_bus_lock: fix a concurrency issue (v4.2)

See merge request espressif/esp-idf!20140
2022-09-22 13:30:47 +08:00
Island
d1f4406718 Merge branch 'bugfix/lpn_not_recv_message_to_all_node_4.2' into 'release/v4.2'
ble_mesh: stack: Add option for lpn auto sub all-nodes(v4.2)

See merge request espressif/esp-idf!20262
2022-09-21 11:31:29 +08:00
wangjialiang
514e896462 ble_mesh: stack: Add option for lpn auto sub all-nodes. 2022-09-20 20:32:37 +08:00
muhaidong
faf4fd233a wpa_supplicant: try install gtk before send group key handshake message 2 2022-09-19 08:15:15 +00:00
wangjialiang
c78efa5fa4 ble_mesh: stack: Fix friend relay lpn message when relay disable. 2022-09-18 09:51:31 +00:00
Island
13b05ca6ba Merge branch 'bugfix/adapt_new_btc_v4.2' into 'release/v4.2'
ble_mesh: stack: Corrected parameter size when the btc_transfer_context is used (v4.2)

See merge request espressif/esp-idf!20168
2022-09-18 14:35:49 +08:00
Jiang Jiang Jian
c2bb3afafa Merge branch 'bugfix/fix_some_wifi_bugs_0805_v4.2' into 'release/v4.2'
esp_wifi: fix some wifi bugs(Backport v4.2)

See merge request espressif/esp-idf!19402
2022-09-16 14:16:11 +08:00
Island
98d90cd216 Merge branch 'bugfix/friend_and_lpn_issues_v4.2' into 'release/v4.2'
ble_mesh: stack: Fix friend and lpn issues(v4.2)

See merge request espressif/esp-idf!19477
2022-09-15 18:42:41 +08:00
Island
0b03533594 Merge branch 'bugfix/mesh_bqb_test_issues_v4.2' into 'release/v4.2'
ble_mesh: stack: Fix mesh v1.0 BQB test issues(v4.2)

See merge request espressif/esp-idf!19504
2022-09-15 18:42:30 +08:00
wangjialiang
3052096ab1 ble_mesh: stack: added the judgment that the parameter is NULL but the parameter len is not zero to avoid btc_transfer_context failed 2022-09-15 17:02:24 +08:00
morris
949d7da779 Merge branch 'bugfix/driver_rs485_fix_test_sync_issues_v42' into 'release/v4.2'
driver: uart rs485 fix test sync issues and fail threshold (backport v4.2)

See merge request espressif/esp-idf!19615
2022-09-15 15:23:21 +08:00
Alex Lisitsyn
3c67e26dce driver: uart rs485 fix test sync issues and fail threshold (backport v4.2) 2022-09-15 15:23:21 +08:00
Armando
19098d3eb0 SPI_BUS_LOCK: fix a concurrency issue
define: lock_bits = (lock->status & LOCK_MASK) >> LOCK_SHIFT;  This `lock_bits` is the Bit 29-20 of the lock->status

1. spi_hdl_1:
   acquire_end_core():
   uint32_t status = lock_status_clear(lock, dev_handle->mask & LOCK_MASK);
   Becuase this is the first `spi_hdl_1`, so after this , lock_bits == 0`b0. status == 0

2. spi_hdl_2:
   acquire_core:
   uint32_t status = lock_status_fetch_set(lock, dev_handle->mask & LOCK_MASK);
   Then here status is 0`b0, but lock_bits == 0`b10. Because this is the `spi_hdl_2`

3. spi_hdl_2:
   `acquire_core` return true, because status == 0. `spi_bus_lock_acquire_start(spi_hdl_2)` then won't block.

4. spi_hdl_2:
   spi_device_polling_end(spi_hdl_2).

5. spi_hdl_1:
   acquire_end_core:
   status is 0, so it cleas the lock->acquiring_dev

6. spi_hdl_2:
   spi_device_polling_end:
   assert(handle == get_acquiring_dev(host)); Fail

Closes https://github.com/espressif/esp-idf/issues/8179
2022-09-14 12:15:06 +08:00