Jiang Jiang Jian
8d9c51f76d
Merge branch 'feature/add_txpwr_api_on_esp32c2' into 'master'
...
add set/get txpwr api for esp32c2
See merge request espressif/esp-idf!19520
2022-08-29 23:35:25 +08:00
Zhi Wei Jian
4a5662bc25
Merge branch 'feature/add_qa_test_funcs' into 'master'
...
Add QA test Functions for esp32
See merge request espressif/esp-idf!19735
2022-08-29 21:04:02 +08:00
zwl
30e47072f9
add set/get txpwr api and fix issues such as disconnect and abnormal tx behavior for esp32c2
2022-08-29 11:32:18 +08:00
Wang Meng Yang
6f677de11c
Merge branch 'bugfix/ble_disconnect_enable_light_sleep_and_bb_pd_master' into 'master'
...
bt: Fixed bluetooth disconnection issue when light sleep and baseband power down are enabled
Closes BT-1915
See merge request espressif/esp-idf!19671
2022-08-26 13:34:11 +08:00
xiongweichao
697755dfe5
Fixed sink not being able to output mono audio because it can only decode dual channel audio data
2022-08-25 11:36:28 +08:00
Rahul Tank
6e5389b1f8
Nimble: Fix memory corruption in reconnection attempt code
2022-08-24 13:39:27 +05:30
Rahul Tank
84bbb2ac7f
Merge branch 'bugfix/increase_leading_space_for_alloc' into 'master'
...
Nimble: Add extra space for buffer allocation for ESP IP
See merge request espressif/esp-idf!19574
2022-08-24 11:42:48 +08:00
zhiweijian
0b4122ecee
Add QA test Functions
2022-08-23 21:20:43 +08:00
Chen Jian Hua
7908025c2d
Merge branch 'bugfix/fix_ble_rpa_gen_for_esp32' into 'master'
...
Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
Closes BT-2543
See merge request espressif/esp-idf!19641
2022-08-23 16:50:41 +08:00
Rahul Tank
5d087feb6e
Nimble: Add extra space for buffer allocation for ESP IP
2022-08-23 09:48:23 +05:30
xiongweichao
9ee49832ea
Fix bluetooth disconnection issue when light sleep and baseband power down are enabled
2022-08-22 15:06:48 +08:00
Wei Tian Hua
7c2b137ffe
Merge branch 'contrib/github_pr_9529_mr_master' into 'master'
...
bt:No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post()
Closes IDFGH-8021
See merge request espressif/esp-idf!19577
2022-08-22 14:46:16 +08:00
songruojing
304a8f142d
esp32c6: introduce the target
...
Add esp32c6 target to tools and Kconfig
Create directories and files that are essential for `idf.py --preview set-target esp32c6`
2022-08-19 11:13:02 +08:00
chenjianhua
0067c28013
Revert "component/bt: add local irk to controller"
...
This reverts commit 95c35288bc
.
2022-08-19 11:03:15 +08:00
chenjianhua
eaa9897386
Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
...
This reverts commit 1cc0f6aac5
.
2022-08-19 11:03:15 +08:00
chenjianhua
e29170bce9
Bluedroid: Configurable option to modify max gatt service attributes count
2022-08-17 14:36:12 +08:00
Pedro
792186a3da
Remove trailing semicolon from bt dft initializer
...
Similar to espressif#6554
2022-08-16 11:48:17 -03:00
Wang Meng Yang
4f4edef113
Merge branch 'bugfix/fix_ble_sch_arb_assert' into 'master'
...
Fixed BLE sch_arb assert on ESP32-C3 and ESP32-S3
Closes IDFGH-7620, IDFGH-7694, and BT-2637
See merge request espressif/esp-idf!19519
2022-08-15 21:54:07 +08:00
tgotic
60bdc4a023
update code to use osi_free()
2022-08-11 18:14:35 +02:00
zwj
788f7265c0
Update BLE lib for ESP32-C3 and ESP32-S3
...
- update ble tx power level mapping
- Fixed ble sch_arb assert
2022-08-11 21:29:26 +08:00
zwj
e414dd7e07
fix extend adv set remove failed
2022-08-11 20:50:15 +08:00
wangmengyang
9a6101bfed
components/bt: fixed the invalid workqueue number for BTU thread in Bluedroid
...
There should be only one workqueue for BTU task. The queue length for the second workqueue of BTU can be uninitialized and caused memory overflow and corruption.
Closes https://github.com/espressif/esp-idf/issues/9507
2022-08-11 16:09:44 +08:00
wangjialiang
e814f57b0f
ble_mesh: stack: Fix kr from non-primary subnet shouldn't ignore
...
For case MESH/NODE/KR/BV-02-C
2022-08-10 14:12:37 +00:00
wangjialiang
3632250884
ble_mesh: stack: Add a check if the appkey is bound to the model.
...
For case MESH/NODE/CFG/MP/BI-03-C
2022-08-10 14:12:37 +00:00
wangjialiang
59c1e9a25d
ble_mesh: stack: the count_log field should be set to 0 when HBS is sent.
...
For MESH/NODE/CFG/HBS/BV-02-C
2022-08-10 14:12:37 +00:00
wangjialiang
0cb883b407
ble_mesh: stack: The Heartbeat Publication Period Log value can set to 0x11, range: [0, 0x11]
2022-08-10 14:12:37 +00:00
wangjialiang
ee7d448e3c
ble_mesh: stack: The value of expect_ack_for will be rewrited after send_pub_key().
...
For case MESH/PVNR/PROV/BV-04-C
2022-08-10 14:12:37 +00:00
wangjialiang
5830ac8b12
ble_mesh: stack: Fix ignore connectable PB-ADV PDU containing a Link Open message.
...
For case MESH/NODE/PBADV/BI-04-C
2022-08-10 14:12:37 +00:00
wangjialiang
fc9edce9bc
ble_mesh: stack: Fix PB-GATT not check invalid link flag
...
For case MESH/NODE/PROV/BI-03-C
2022-08-10 14:12:37 +00:00
wangjialiang
bd418e7a76
ble_mesh: stack: Fix invalid provisioning pdu type check
...
For case MESH/NODE/PROV/BI-15-C
2022-08-10 14:12:37 +00:00
Island
ee10f25b89
Merge branch 'bugfix/friend_and_lpn_issues' into 'master'
...
ble_mesh: stack: Fix friend and lpn issues
See merge request espressif/esp-idf!19378
2022-08-09 14:39:58 +08:00
Lin Rui Hao
68bd2badf4
Merge branch 'contrib/github_pr_9498' into 'master'
...
bluedroid: fix member typo
Closes IDFGH-7987
See merge request espressif/esp-idf!19436
2022-08-09 11:13:33 +08:00
tgotic
f78298b04a
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-08-08 16:18:16 +02:00
wangjialiang
8f640a3e82
ble_mesh: stack: Fix add continuously secure update into friend queue.
...
For MESH/NODE/FRND/FN/BV-20-C
2022-08-08 12:30:44 +00:00
wangjialiang
e797cb54dc
ble_mesh: stack: Fix friend relay lpn message when relay feature is disable
...
For MESH/NODE/FRND/FN/BV-23-C
2022-08-08 12:30:44 +00:00
linruihao
fe04cdb88c
Fixd union member access typo
...
Closes https://github.com/espressif/esp-idf/pull/9498
2022-08-08 19:40:25 +08:00
jingli
ee3423834e
kconfig: refactor xtal freq kconfig to common configuration item
2022-08-05 19:12:29 +08:00
Island
74abb42053
Merge branch 'feature/update_to_the_latest_controller_lib' into 'master'
...
Feature/update to the latest controller lib
See merge request espressif/esp-idf!19372
2022-08-05 17:51:16 +08:00
Island
bd0904c1f3
Merge branch 'document/support_header_defination' into 'master'
...
Support of Micro definition in header file
Closes DOC-3386
See merge request espressif/esp-idf!19211
2022-08-05 17:19:44 +08:00
tgotic
b513ad9df0
bt member typo
...
Terminate sec_event.cfm_req.bd_name string, not sec_event.pin_req.bd_name
2022-08-04 16:49:55 +02:00
zwl
dd05a3754a
update ble controller lib for ble issues fixed on esp32c2(8dbbbf0269)
2022-08-04 15:19:51 +08:00
Li Shuai
4f2cec8495
1. Wi-Fi: update tsf tick interval when lpclk is modified
...
2. Move register_lpclk_callback to coexistence
2022-08-04 14:11:25 +08:00
xiongweichao
bb5e7004b9
make bluetooth and wifi use the same low power clock
2022-08-04 14:01:34 +08:00
xiongweichao
1fec2b9529
ESP32S3:bluetooth support use main XTAL in light sleep mode
2022-08-04 14:01:34 +08:00
xiongweichao
d85d927bb0
ESP32C3:bluetooth support use main XTAL in light sleep mode
2022-08-04 14:01:34 +08:00
Island
6c8375e2d2
Merge branch 'feature/support_ble_on_esp32c2_26M' into 'master'
...
support BLE with 26M xtal for esp32c2
See merge request espressif/esp-idf!19300
2022-08-04 11:07:20 +08:00
satish.solanke
bedea8b265
Support of Micro defination in header file
2022-08-03 14:56:44 +00:00
Ivan Grokhotkov
401c10ecfb
build system: re-add -Wno-format as private flag for some components
2022-08-03 16:42:47 +04:00
Jiang Jiang Jian
373524cec2
Merge branch 'opt/bluedroid_adv_report_datapath' into 'master'
...
component/bt: optimize BLE adv report datapath and adv report flow control mechanism
Closes BT-2561
See merge request espressif/esp-idf!19171
2022-08-03 16:31:23 +08:00
Karl Wang
2462003fde
component/bt: use OSI utility "osi_event" for HCI downstream data processing
2022-08-02 17:40:00 +08:00
wangmengyang
f402778320
component/bt: consider to handle HCI LE Direct Advertising Report
2022-08-02 17:40:00 +08:00
Karl Wang
8c756dad23
component/bt: allocate and use one static buffer for HCI adv flow control command
2022-08-02 17:40:00 +08:00
wangmengyang
85fc8321c8
component/bt: use fixed_pkt_queue instead of fixed_queue for hci commands
...
some fixes after modifications:
1. removed the use of waiting_command_t
2. fix assert for HCI write_eir command
3. fixed the crash upon handling command status event when trying to free to the HCI command buffer
4. fixed the issue in transmitting HCI vendor specific commands
5. fixed the lost command complete callbacks for HCI commands LE_RAND and LE_ENCRYPT
2022-08-02 17:37:24 +08:00
Jiang Jiang Jian
c47c0097e2
Merge branch 'bugfix/memory_debug_not_work' into 'master'
...
bugfix/fix the dependency error of macro for memory debug
Closes IDFGH-9248
See merge request espressif/esp-idf!19233
2022-08-02 15:48:58 +08:00
wangmengyang
9bda2381ea
component/bt: add a timer to monitor the adv flow control credits downwards procedure
2022-08-02 14:14:07 +08:00
wangmengyang
5f074e1336
component/bt: fix adv report flow control logic, give ADV report credits every 10 packets
2022-08-02 14:14:07 +08:00
wangmengyang
0a1fa3e204
component/bt: add simple ADV flow control mechanism -- drop the packets when the adv report queues are considered full
2022-08-02 14:14:07 +08:00
wangmengyang
9a5f854760
component/bt: use the OSI utility "osi_event" to handle adv report in btc_layer
2022-08-02 14:14:07 +08:00
Karl Wang
a075aa564f
component/bt: use the OSI utility "pkt_queue" to store ADV report packet in btu layer
2022-08-02 14:14:07 +08:00
wangmengyang
57336e0a0e
component/bt: use the OSI utility "osi_event" for hci_hal_h4 upstream data packets handling
2022-08-02 14:14:07 +08:00
wangmengyang
3c8671f592
component/bt: use the OSI utility "osi_event" to handle A2DP source data Tx processing
2022-08-02 14:14:07 +08:00
wangmengyang
578bfa3600
component/bt: use the OSI utility "osi_event" to handle A2DP sink data Rx processing
2022-08-02 14:14:07 +08:00
wangmengyang
c0b86fefc6
component/bt: add new OSI utility "fixed_pkt_queue", which has same functionality with "fixed_queue"
2022-08-02 14:14:07 +08:00
Karl Wang
eea8a285e3
component/bt: add new OSI utility "pkt_queue" which acts as a mutex-protected linked list, to be used as data queue between tasks
2022-08-02 14:14:07 +08:00
wangmengyang
7c1ee339bc
component/bt: add new OSI utility "osi_event" to support the scenario that event need only to be handle once.
2022-08-02 14:14:07 +08:00
wangmengyang
81c87cf4ca
component/bt: make OSI thread workqueue length configurable through API
...
reduce the length of workqueue1 for BTC and HCI task
# Conflicts:
# components/bt/common/osi/thread.c
2022-08-02 14:14:07 +08:00
wangmengyang
77e98e468d
component/bt: modify the implementation of osi_thread using freeRTOS queue
2022-08-02 14:14:07 +08:00
Wei Tian Hua
b9b047399d
Merge branch 'bugfix/fix_legacy_pair_not_send_link_key_host' into 'master'
...
component_bt: fix legacy pair controller does not send the link key to the host
Closes BTCI-107
See merge request espressif/esp-idf!14670
2022-08-01 16:59:49 +08:00
weitianhua
e51df179ad
components_bt/bluedroid: Fix Memory&String Copy Build Err
...
1. When setting compilier into -O2 optimization, build for classic bt demo will get wrong
2. Fix a memcpy bug that maybe get memory truncated
Closes https://github.com/espressif/esp-idf/issues/9398
2022-08-01 11:37:46 +08:00
Shen Weilong
028d071e84
support BLE with 26M xtal for esp32c2
2022-07-29 21:36:33 +08:00
jincheng
ca0d8be5b8
fix the dependency error of macro for memory debug
2022-07-29 17:03:59 +08:00
Rahul Tank
7ed3157351
Merge branch 'bugfix/add_max_procs_config' into 'master'
...
Nimble: Configurable option to modify max gatt procedures allowed for GATT client
See merge request espressif/esp-idf!19197
2022-07-28 14:38:41 +08:00
xiongweichao
7eedd710c2
fix legacy pair controller does not send the link key to the host
...
Closes https://github.com/espressif/esp-idf/issues/5850
2022-07-28 14:21:48 +08:00
jincheng
44607e10ea
add protect for bt_util_buf_env buffers when access by task and interrupt
...
ignore the assert_err in rm_bt_clkoff1_setf
2022-07-27 17:56:08 +08:00
Rahul Tank
2be66a6151
Nimble: Configurable option to modify max gatt procedures allowed for GATT
...
client
2022-07-27 08:59:37 +00:00
Jiang Jiang Jian
9a6ccb7f57
Merge branch 'bugfix/make_sure_sempher_and_queue_used_in_isr_is_in_DRAM' into 'master'
...
Bugfix/make sure sempher and queue used in isr is in dram
Closes WIFI-3571, IDFGH-7458, IDFGH-7342, and IDFGH-7569
See merge request espressif/esp-idf!19160
2022-07-22 14:04:27 +08:00
Jiang Jiang Jian
22b17a3471
Merge branch 'bugfix/schm_process_in_active_crash' into 'master'
...
Coex: fixed crash when calculating end transfer time
See merge request espressif/esp-idf!18330
2022-07-22 11:02:08 +08:00
David Čermák
36f49f361c
Merge branch 'bugfix/esp_netif_clean_deps_lwip' into 'master'
...
esp-netif/lw-ip: Make dependencies one-directional
Closes IDF-4459, IDF-4460, IDF-1099, and IDFGH-6287
See merge request espressif/esp-idf!18084
2022-07-21 20:18:05 +08:00
Jiang Jiang Jian
92b4e134bb
Merge branch 'bugfix/remove_inappropriate_bluetooth_init_api' into 'master'
...
Remove unused bluetooth init api
See merge request espressif/esp-idf!18923
2022-07-21 14:53:44 +08:00
baohongde
6d631d14de
components/bt: Make sure sempher and queue used in isr is in DRAM
2022-07-21 13:50:29 +08:00
David Cermak
5c383d7b73
esp_netif/lwip: Fix deps cycles to "lwip -> esp_netif -> phy-drivers"
...
Fix dependency tree so that lwip doesn't depend on any specific network
interface component.
Network interface drivers shall depend on esp_netif.
esp_netif shall depend on lwip (but not on any specific interface
driver) -- it optionally depends on vfs and esp_eth (need ethernet
header for L2/bridge mode)
2022-07-20 14:59:07 +02:00
GengYuchao
964304b751
Change the selection based on target to function selection
2022-07-20 13:06:56 +08:00
GengYuchao
298583b116
Fix nimble port api adapt remove esp_nimble_hci_and_controller_init
2022-07-20 11:44:00 +08:00
GengYuchao
fd055d3ba6
Fix example after removing API esp_nimble_hci_and_controller_init
2022-07-20 11:44:00 +08:00
GengYuchao
5430ad0519
Remove esp_nimble_hci_and_controller_init function
2022-07-20 11:44:00 +08:00
Mahavir Jain
a94c74c26b
mbedtls: remove dependency on driver component
...
- keep `esp_pm` dependency conditional in mbedtls
- refactor `bt` cmakelist to keep dependencies as private
Related: IDF-1265
2022-07-18 21:10:51 +05:30
Jiang Jiang Jian
7497a5287c
Merge branch 'bugfix/fix_bluedroid_host_memory_overflow' into 'master'
...
Fixed bluedroid host memory overflow
Closes BT-2397
See merge request espressif/esp-idf!18897
2022-07-15 11:52:33 +08:00
zhiweijian@espressif.com
4bd267ac9a
Fixed bluedroid host memory overflow
2022-07-14 19:35:22 +08:00
Isha Pardikar
183100fc28
Nimble: Fixed compilation error for esp32c2 and esp32h2 when os_mbuf_free is called.
2022-07-14 09:41:05 +05:30
Jiang Jiang Jian
8d98fbe26a
Merge branch 'bugfix/remove_unused_ble_rtc_source_sel' into 'master'
...
Remove can not use wake up source for esp32h2
See merge request espressif/esp-idf!18966
2022-07-13 13:50:26 +08:00
Jiang Jiang Jian
258585f50a
Merge branch 'bugfix/correct_blecmd_for_rf_path' into 'master'
...
Bluedroid: Fixed compilation error due to incorrect macro name
See merge request espressif/esp-idf!18983
2022-07-12 19:35:40 +08:00
Jiang Jiang Jian
4c1f114eab
Merge branch 'bugfix/ble_50_sync_periodic_adv_lost_data' into 'master'
...
components/bt: Fix ble sync periodic adv report will lost data
See merge request espressif/esp-idf!18957
2022-07-12 16:18:01 +08:00
Jiang Jiang Jian
1523a1bdef
Merge branch 'bugfix/fix_esp32_c3_s3_adv_report_duplicate_check' into 'master'
...
Fix esp32c3/s3 adv report duplicate check
Closes BT-2440
See merge request espressif/esp-idf!18961
2022-07-12 14:00:33 +08:00
GengYuchao
df6d3eb602
Remove can not use wake up source for esp32h2
2022-07-12 11:23:59 +08:00
Rahul Tank
ac54468d1b
Bluedroid: Fixed compilation error due to incorrect macro name
2022-07-11 16:40:51 +05:30
xiewenxiang
947d082b44
components/bt: Fix ble sync periodic adv report lost data issue
2022-07-11 16:51:22 +08:00
Wang Meng Yang
13d141de27
Merge branch 'bugfix/fix_osi_men_dbg_xxx_not_defined_when_enable_mem_dbg' into 'master'
...
bugfix/fix the issue of functions not defined when enable memory debug
Closes IDFGH-9248
See merge request espressif/esp-idf!18802
2022-07-11 15:36:46 +08:00
xiongweichao
b0b6ad21f8
coex: fixed crash when calculating end transfer time
2022-07-11 15:26:53 +08:00
Jiang Jiang Jian
4644e2c302
Merge branch 'bugfix/fix_esp32_ke_mem_c_assert' into 'master'
...
Fixed esp32 BLE ke_mem.c assert
See merge request espressif/esp-idf!18916
2022-07-11 14:02:39 +08:00
chenjianhua
42667adf70
fix esp32c3/s3 adv report duplicate check
2022-07-11 10:25:32 +08:00