Commit Graph

453 Commits

Author SHA1 Message Date
Anton Maklakov
b69efa20ad bluedroid: fix -Wchar-subscripts warning
'unsigner char' cast recommended, https://stackoverflow.com/a/60696378
2022-05-13 06:55:22 +00:00
Anton Maklakov
e44d7fbaed bluedroid: fix argument type according its usage 2022-05-13 06:55:22 +00:00
Anton Maklakov
9a5f0f6c53 bluedroid: fix argument type to correct narrow one 2022-05-13 06:55:22 +00:00
Anton Maklakov
29b2beffc0 bluedroid: fix type for passing argument in function 2022-05-13 06:55:22 +00:00
Anton Maklakov
87bf3260dd bluedroid: fix argument type in functions 2022-05-13 06:55:22 +00:00
Marius Vikhammer
34910bee07 Merge branch 'bugfix/fix_doxygen_warnings' into 'master'
docs: fix  doxygen warnings

See merge request espressif/esp-idf!18071
2022-05-12 16:54:52 +08:00
Marius Vikhammer
c8617fe965 docs: fix all doxygen warnings
Doxygen warnings would previously not result in a failed pipeline.
Fixed this as well as all current warnings.
2022-05-12 14:50:03 +08:00
weitianhua
4c370cc437 component_bt: Fix build doc errors of bt
1. bluedroid: use standard function pointer define.
   2. blufi: Change ESP_BD_ADDR_LEN into ESP_BLUFI_BD_ADDR_LEN
   3. doc/sphinx_known_warnings: Remove fixed parts.
2022-05-11 14:30:20 +00:00
Marius Vikhammer
d7053c38cc docs: fix broken links 2022-05-07 13:09:41 +08:00
Jiang Jiang Jian
34211f898c Merge branch 'docs/update_esp_hid_device' into 'master'
[docs] fix documents for Bluetooth HID Device API reference and example

See merge request espressif/esp-idf!17558
2022-05-05 23:58:07 +08:00
Wang Meng Yang
3198e17f4e Merge branch 'bugfix/spp_crash_after_call_spp_deinit' into 'master'
Component_bt/Fix spp crash after call esp_spp_deinit

Closes BT-2342

See merge request espressif/esp-idf!17842
2022-04-27 13:02:24 +08:00
Xiong Wei Chao
af84842e8b Component_bt/Fix spp crash after call esp_spp_deinit 2022-04-27 13:02:23 +08:00
xiongweichao
5a16fa95e9 Fix CI failure when disable bluetooth debug log 2022-04-25 18:35:22 +08:00
Rahul Tank
e254d1f855 NimBLE: Correct the log level of timer reset value print 2022-04-22 16:21:28 +05:30
Rahul Tank
8b4e032255 Merge branch 'bugfix/sync_host_nocp_cmd' into 'master'
Nimble: Sync sending Host Number of Completed Packets command

See merge request espressif/esp-idf!17719
2022-04-18 21:54:10 +08:00
Rahul Tank
18df58f1df Nimble: Corrected default value for ATT_PREFERRED_MTU and ACL_BUF_SIZE 2022-04-14 16:13:21 +05:30
liqigan
81829c2670 add missing unlock in btc_spp_cb_handler of BTA_JV_RFCOMM_WRITE_EVT 2022-04-11 17:14:02 +08:00
wangmengyang
3c63d0cc0e components/bt: fix the documentations for Bluetooth HID device APIs 2022-04-11 02:50:50 +00:00
Rahul Tank
739cd66866 Nimble: Sync sending Host Number of Completed Packets command 2022-04-08 15:53:22 +05:30
liqigan
2ce516e455 fix SPP initiator can not free resource when connection is failed 2022-04-06 18:17:07 +08:00
Bao Hong De
2748b3a4be Merge branch 'bugfix/not_use_malloc_in_bluedroid' into 'master'
component/bt: use osi_malloc instead of malloc in bluedroid

See merge request espressif/esp-idf!17663
2022-04-03 04:24:08 +08:00
Wei Tian Hua
dbe4606eab Merge branch 'feature/hfp_hf_vendor_batt_level' into 'master'
components/bt: support for vendor specific battery level and docker status...

See merge request espressif/esp-idf!17601
2022-04-01 14:43:51 +08:00
baohongde
65b15cd75a component/bt: use osi_malloc instead of malloc in bluedroid 2022-03-31 22:27:54 +08:00
Rahul Tank
2dd2c78fc6 Merge branch 'bugfix/check_null_callout' into 'master'
Wifi_prov_mgr : Fixed crash issue during provisioning using NimBLE

See merge request espressif/esp-idf!17599
2022-03-29 17:43:38 +08:00
baohongde
418b546a7c components/bt: support for vendor specific battery level and docker status indication over HFP profile 2022-03-29 11:38:09 +08:00
baohongde
8a2abff26d components/bt: Fix the strlcpy length error in BTA_HfClientSendAT 2022-03-25 21:40:49 +08:00
Rahul Tank
c46e3ffd0c Wifi_prov : Fixed crash issue during provisioning using NimBLE 2022-03-25 15:21:16 +05:30
xiongweichao
7dd9ac9997 Add some bluetooth debug log 2022-03-22 10:35:50 +08:00
Rahul Tank
f376bb5d05 Add support in Nimble for ESP32H2 2022-03-14 11:57:53 +05:30
Wang Meng Yang
8b5ad2ab4f Merge branch 'bugfix/upd_nimble_warnings' into 'master'
nimble: update because of warnings

See merge request espressif/esp-idf!17354
2022-03-11 17:01:07 +08:00
xiongweichao
7ee85858b4 Update HFP_HF version to 1.7.2 2022-03-04 11:52:12 +00:00
Anton Maklakov
924178d407 nimble: update because of warnings 2022-03-04 10:00:54 +07:00
Aditya Patwardhan
740f1afe20 Update nimble submodule 2022-03-03 01:37:10 +05:30
Rahul Tank
3387d816e2 Nimble: Check stack initialization status before executing stack command
Previous commit added checks in some functions that can be called
    without stack initalization. Corrected such instances.
2022-02-18 11:47:48 +05:30
xiewenxiang
8ecc8cf40a component/bt: check the ble ext adv parameters 2022-02-07 16:10:50 +08:00
Anton Maklakov
85462d17a5 components/bt: move deinit_semaphore definition to source file 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
67c52657cf bluedroid: mark dequant_long_* as extern variables 2022-01-27 11:00:09 +07:00
xiongweichao
83b9320d2e btc_a2dp_control_set_datachnl_stat is only used by a2dp sink 2022-01-06 14:10:18 +08:00
xiongweichao
688700f33b remove btc_a2dp_dispatch_datapath_evt and event 2022-01-06 14:02:03 +08:00
xiongweichao
c5af97759f Fixed the crash caused by calling esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_START) after stream started 2022-01-06 14:02:03 +08:00
xiongweichao
061ae4c07a Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink 2022-01-06 14:02:03 +08:00
Wang Meng Yang
7e39aa61fa Merge branch 'bugfix/fix_null_pointer_deference_issue_master_mr' into 'master'
Fix the null pointer deference issue via Reconnection Spamming

See merge request espressif/esp-idf!16502
2022-01-04 04:06:27 +00:00
“YangZhao”
8d48a56249 There is an issue that if the the btm_cb.p_sec_dev_rec_list is full,but at the same
time we can't find old device to be replaced,then this can cause crash. So we need
to change the way to malloc the new device or replace the old in the list.
2021-12-30 15:50:07 +08:00
xiewenxiang
50748009e4 components/bt: Fix bluedroid compile issue 2021-12-30 11:54:47 +08:00
Wang Meng Yang
bc1a679052 Merge branch 'doc/update_document_of_demo_bt_discovery' into 'master'
Doc/update document of demo bt discovery

Closes BT-2133

See merge request espressif/esp-idf!16265
2021-12-29 06:07:19 +00:00
xiewenxiang
04328cf384 component/bt: fix periodic adv parameters detection issue 2021-12-28 11:29:41 +08:00
Li Qi Gan
c3c37b95e7 Merge branch 'bugfix/fix_spp_open_err_bda' into 'master'
Component_bt/Fix SPP acceptor open with wrong remote address

Closes BT-2205

See merge request espressif/esp-idf!16503
2021-12-23 12:29:31 +00:00
liqigan
cccd22a080 fix SPP open with wrong remote bd_addr 2021-12-22 17:04:58 +08:00
liqigan
66e88fbdbe clear old event bits when malloc a slot 2021-12-22 16:44:51 +08:00
baohongde
d4aeef6ced components/bt: Update the document of demo bt discovery 2021-12-21 10:54:54 +08:00
Wang Mengyang
5e95537f9c component/bt/host/nimble: fixed memory leak due to timer not destroyed during NimBLE host start-stop 2021-12-20 15:49:14 +08:00
xiewenxiang
0030fba89c components/bt: Fix high duty cycle directed advertising will not be stopped when timeout 2021-12-13 20:10:21 +08:00
xiewenxiang
132875a6eb components/bt: Support low duty cycle directed advertising 2021-12-13 17:07:23 +08:00
baohongde
c138e47f45 components/bt: Update licenses 2021-12-08 10:59:06 +08:00
Sudeep Mohanty
88aa3e78c3 NimBLE: Invoke xTimerGetExpiryTime in npl porting layer only when freertos timer is used
This commit adds an esp timer guard check to call in the function
npl_freertos_callout_remaining_ticks() to enable fetching remaning ticks
when esp timer is enabled.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-12-03 15:57:19 +05:30
liqigan
aa6f86fbc5 fix SPP server bugs when the BTC layer can not allocate a slot for the listen port 2021-12-01 14:59:14 +08:00
Yang Zhao
4b7a71673e Add the feature that switch random address to origin mac addr in the ADV
report data.
2021-11-30 14:14:42 +08:00
Wang Meng Yang
c788274658 Merge branch 'feature/add_coex_hci_command_master' into 'master'
Add hci command to set coexistence status

Closes BT-1886

See merge request espressif/esp-idf!14830
2021-11-23 03:08:50 +00:00
Wang Meng Yang
ee5192960c Merge branch 'bugfix/fix_static_check_error_mr' into 'master'
Fix the high-impact issues from the code analysis report from customer.

Closes BT-2079

See merge request espressif/esp-idf!15976
2021-11-23 03:07:05 +00:00
xiongweichao
c80ac536d7 Add hci command to set coexistence status 2021-11-22 19:57:01 +08:00
“YangZhao”
12ec4866b8 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-11-22 17:38:02 +08:00
wangmengyang
8cfffa260b [nimble]: clear timer handler during de-initialization 2021-11-19 15:08:55 +08:00
Wang Meng Yang
2ee3c7b542 Merge branch 'bugfix/wifi_prov_mgr_crash' into 'master'
NimBLE: Fixed wifi_prov_mgr crash after provisioning

See merge request espressif/esp-idf!15793
2021-11-19 02:59:12 +00:00
Wang Meng Yang
83a5823564 Merge branch 'bugfix/fix_device_name_len_limited_mr' into 'master'
Fix the issue of device name len limited

Closes BT-2066

See merge request espressif/esp-idf!15880
2021-11-19 02:36:25 +00:00
xiongweichao
ce2d72ddfb Missing break in switch 2021-11-18 19:47:09 +08:00
xiongweichao
5152b33385 Dereference null return value 2021-11-18 19:47:09 +08:00
xiongweichao
1bada6c0f6 already defined in bt_target.h 2021-11-18 19:47:09 +08:00
xiongweichao
752b1976c0 Dereference after null check 2021-11-18 19:47:07 +08:00
xiongweichao
101ad32110 Dereference before null check 2021-11-18 19:38:48 +08:00
xiongweichao
564f9e8f68 Logically dead code 2021-11-18 19:38:48 +08:00
isha pardikar
e2a37b2712 Merge branch 'bugfix/wifi_prov_mgr_crash' into 'master'
NimBLE: Fixed wifi_prov_mgr crash after provisioning

See merge request espressif/esp-idf!15793
2021-11-17 18:35:40 +05:30
Yang Zhao
66fa67cde6 Fix the issue of device name len limited 2021-11-11 11:35:36 +08:00
Rahul Tank
897926d21c NimBLE: Modified timer not started / running warning print
Current check for valid timer throws a print which can mislead to be a crash. Modified the same

 Closes: https://github.com/espressif/esp-idf/issues/7550
2021-11-10 12:44:39 +05:30
xiewenxiang
f0ef891901 component/bt: check the ble ext conn parameter 2021-11-02 14:33:24 +08:00
Chinmay Chhajed
0319dcd23d Merge branch 'bugfix/nimble_x_component_key_check' into 'master'
NimBLE: Compare only x component of public key before pairing.

Closes BT-1928

See merge request espressif/esp-idf!15035
2021-10-22 12:37:02 +00:00
xiewenxiang
5e21788283 component/bt: Modify the bluetooth device name length limits 2021-10-20 16:19:28 +08:00
xiewenxiang
29a097504d component/bt: set ext adv param failed when stop ext adv 2021-10-20 15:41:00 +08:00
xiewenxiang
76372097bb component/bt: fix data length update failed 2021-10-13 19:58:21 +08:00
Wang Meng Yang
f0ffeb1c65 Merge branch 'bugfix/a2dp_no_audio_transmitted' into 'master'
bugfix/fix wrong clock_id in function `time_now_us`

Closes IDFGH-5862

See merge request espressif/esp-idf!15315
2021-10-08 05:59:57 +00:00
Jiang Jiang Jian
65682ad63c Merge branch 'bugfix/bt_legacy_paring_wrong_pin_code_err' into 'master'
bugfix/fix the crash when using legacy paring with wrong pin code

Closes IDFGH-5856

See merge request espressif/esp-idf!15235
2021-09-30 01:12:34 +00:00
Rahul Tank
67bb97cbf3 Nimble: Removed Critical debug level from menuconfig, since it internally maps
to level Error.
2021-09-24 11:11:36 +05:30
Chinmay Chhajed
29d306e6ff NimBLE: Compare only x component of public key before pairing. 2021-09-23 18:30:01 +05:30
Jiang Jiang Jian
91818884cc Merge branch 'bugfix/stack_init_check' into 'master'
Nimble: Check stack status before executing stack command

Closes BT-1367

See merge request espressif/esp-idf!14869
2021-09-23 04:26:54 +00:00
jincheng
52e7b99630 fix wrong clock_id in function time_now_us
Close https://github.com/espressif/esp-idf/issues/7561
2021-09-23 09:47:35 +08:00
jincheng
c592da5308 bugfix/fix the crash when using legacy paring with wrong pin code
Close https://github.com/espressif/esp-idf/issues/7556
2021-09-23 07:40:54 +08:00
Zim Kalinowski
73fc400ac0 Merge branch 'feature/github-7582' into 'master'
code formatting updated

See merge request espressif/esp-idf!15267
2021-09-22 09:43:35 +00:00
Rahul Tank
1ad7d0dac4 Nimble: Check stack status before executing stack command 2021-09-21 12:41:45 +08:00
ajit1433
ae8fac38fa
code formatting updated 2021-09-18 23:14:09 +05:30
baohongde
b310c062cd components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2021-09-16 20:26:35 +08:00
baohongde
6fc4bf7145 components/bt: Fix link error of Kconfig 2021-09-13 15:45:27 +08:00
liqigan
1c15c9207c 1. transparent HID device
2. add esp API for HID
3. add PM config for HID
4. add HID device demo

Closes https://github.com/espressif/esp-idf/issues/5311
Closes https://github.com/espressif/esp-idf/issues/5635
Merges https://github.com/espressif/esp-idf/pull/3425
2021-09-07 16:59:30 +08:00
Wei Tian Hua
00dfe84c58 Merge branch 'bugfix/hf_disc_acl_no_disc' into 'master'
bugfix/acl can't disconnect when hfp_client disconnect

See merge request espressif/esp-idf!12819
2021-09-03 06:01:50 +00:00
Wang Meng Yang
e09818bd33 Merge branch 'bugfix/btdm_fix_some_Document_Description_Error' into 'master'
component/bt: fix some ble document description error

See merge request espressif/esp-idf!14816
2021-09-03 01:40:15 +00:00
XieWenxiang
461f2bd186 component/bt: fix some ble document description error 2021-09-01 20:39:13 +08:00
liaowenhao
124169a7dd bugfix acl doesn't disconnect when hfp_client disconnect 2021-08-24 10:53:25 +08:00
Wang Meng Yang
7df2a22faa Merge branch 'bugfix/spp_memory_leak' into 'master'
Fix spp memory leak

Closes IDFGH-5508

See merge request espressif/esp-idf!14319
2021-08-19 00:12:51 +00:00
Wang Meng Yang
a77aaf296a Merge branch 'bugfix/bt_spp_timer_collision' into 'master'
Fix timer collision in role switch

Closes IDFGH-5464

See merge request espressif/esp-idf!14575
2021-08-17 02:10:44 +00:00
Wang Meng Yang
bdd4b45f6a Merge branch 'bugfix/btdm_auto_update_PPCP_attribute_value' into 'master'
component/bt: fix bluedroid host auto update PPCP attribute value

See merge request espressif/esp-idf!14746
2021-08-16 07:25:50 +00:00
jincheng
a523dd3ede fix timer collision in role switch
Closes https://github.com/espressif/esp-idf/issues/7203
2021-08-16 08:54:37 +08:00
XieWenxiang
30ccfdb3b9 component/bt: fix bluedroid host auto update PPCP attribute value 2021-08-10 17:18:49 +08:00