Commit Graph

499 Commits

Author SHA1 Message Date
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
Rahul Tank
5d087feb6e Nimble: Add extra space for buffer allocation for ESP IP 2022-08-23 09:48:23 +05:30
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
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
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
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
linruihao
fe04cdb88c Fixd union member access typo
Closes https://github.com/espressif/esp-idf/pull/9498
2022-08-08 19:40:25 +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
satish.solanke
bedea8b265 Support of Micro defination in header file 2022-08-03 14:56:44 +00: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
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
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
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
Rahul Tank
2be66a6151 Nimble: Configurable option to modify max gatt procedures allowed for GATT
client
2022-07-27 08:59:37 +00: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
5430ad0519 Remove esp_nimble_hci_and_controller_init function 2022-07-20 11:44:00 +08:00
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
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
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
Wei Tian Hua
8699a10929 Merge branch 'bugfix/redesign_hf_ag_init_deinit_api_param' into 'master'
component_bt: Change HF AG API

See merge request espressif/esp-idf!18592
2022-07-08 16:57:20 +08:00
jincheng
3de3a8b354 fix the issue of functions not defined when enable memory debug
Closes https://github.com/espressif/esp-idf/issues/9248
2022-07-08 10:57:29 +08:00
Rahul Tank
d3e7d9b090 NimBLE: Removed extra event init done during periodic_sync_alloc 2022-07-06 09:50:17 +05:30
chenjianhua
3a1a5e284a Bluedroid: fix channel map of ext adv params check 2022-07-05 16:02:37 +08:00
GengYuchao
3be5ab7268 Update nimble port init changes 2022-07-05 02:40:49 +00:00
GengYuchao
9e1466a34d move init func to nimble 2022-07-05 02:40:49 +00:00
morris
7863c1bc45 Merge branch 'bugfix/fix_rtc_freq_err_for_h2_beta1' into 'master'
Bugfix/fix rtc freq err for h2 beta1

See merge request espressif/esp-idf!18682
2022-07-04 16:46:17 +08:00
Wang Meng Yang
cb74a64768 Merge branch 'feature/support_for_wr_sugg_data_len_cmd' into 'master'
feature/added read-write sugg default datalen cmds

See merge request espressif/esp-idf!17863
2022-07-04 15:17:44 +08:00
Jiang Jiang Jian
c154d09c52 Merge branch 'bugfix/resolve_redefinition_in_spp_and_hid' into 'master'
resolve redefinition in btc_spp.h and btc_hd.h/btc_hh.h

Closes IDFGH-7647

See merge request espressif/esp-idf!18617
2022-07-04 14:12:35 +08:00
Onkar
731a8d357f feature/added read-write sugg default datalen cmds 2022-07-03 13:50:12 +05:30
GengYuchao
b474c83840 Add support for esp32h2 beta2 2022-06-30 17:02:00 +08:00