Commit Graph

170 Commits

Author SHA1 Message Date
Jiang Jiang Jian
3907e8a067 Merge branch 'bugfix/bta_hf_client_sco_co_out_data_v4.0' into 'release/v4.0'
bugfix/if bta_hf_client_sco_co_out_data is called, it will crash when sco disconnected [backport v4.0]

See merge request espressif/esp-idf!12558
2021-05-08 07:28:38 +00:00
zwj
eb9841e769 update con state when getting connection cancle complete 2021-05-08 03:42:02 +00:00
zwj
84df41cdf0 fix multi-connection pair failed 2021-05-08 03:42:02 +00:00
liaowenhao
acbcf13ee5 bugfix/if bta_hf_client_sco_co_out_data is called, it will crash when sco disconnected 2021-05-07 23:23:38 +00:00
XieWenxiang
1d1368858c component/bt: Modify some ambiguous descriptions (release v4.0) 2021-05-07 08:08:39 +00:00
Jiang Jiang Jian
b2bcb609ad Merge branch 'nimble/add_error_prints_acl_buf_v4.0' into 'release/v4.0'
NimBLE: Add error prints for ACL buffer exhaustion in NPL (v4.0)

See merge request espressif/esp-idf!12971
2021-04-22 06:04:33 +00:00
zwj
911ce08722 add connection parameter check 2021-04-21 12:21:57 +00:00
zwj
f637a0792d fix ble connection maximum latency is 499 2021-04-21 12:21:57 +00:00
zwj
d0b8d53410 disable bluedroid congest error log print 2021-04-21 12:21:57 +00:00
zhiweijian
722035b846 fix read multi char failed(GATT_27001) 2021-04-21 12:21:57 +00:00
zhiweijian
fcf36466cd fix add white list failed 2021-04-21 12:21:57 +00:00
zwj
47e5793c73 fix bluedroid repair faild if the two most significant bits of public address is '01' 2021-04-21 12:21:57 +00:00
zwj
d321ee69d5 - fix congest return value
- fix system no rsp when doing disconnect
- fix no congest event when ssc do writing performance
2021-04-21 12:21:57 +00:00
zwj
e0362061a5 fix ble read multi char err when the number of handles is more than 10 2021-04-21 12:21:57 +00:00
zwj
0776318c56 fix scan rsp length err 2021-04-21 12:21:57 +00:00
zwj
712feb1e81 fix vendor hci memory leak 2021-04-21 12:21:57 +00:00
Marius Vikhammer
531cab5fc4 docs: fix doxygen compile warnings for doxygen 1.9.1
Newer versions of doxygen will give warnings for comments in
INPUT lists

Delete all comment lines to fix these warnings, our folder structure
stil gives an OK overview of what we are including
2021-04-12 08:44:04 +08:00
Prasad Alatkar
2045e8c701 NimBLE: Add error prints for ACL buffer exhaustion in NPL 2021-03-31 10:43:52 +05:30
Jiang Jiang Jian
33087e3f27 Merge branch 'component_bt/optimize_spp_stop_server_v4.0' into 'release/v4.0'
component_bt/Optimize SPP Stop Server API[backport v4.0]

See merge request espressif/esp-idf!12622
2021-03-22 12:59:10 +00:00
Jiang Jiang Jian
05e3e58ebb Merge branch 'feature/add_init_and_deinit_evt_for_a2dp_4_0' into 'release/v4.0'
feature/ Add A2DP Init and Deinit Complete Evt [backport v4.0]

See merge request espressif/esp-idf!12152
2021-03-05 12:20:11 +00:00
Jiang Jiang Jian
3118147dc7 Merge branch 'bugfix/fix_a2dp_underrun_issue_4_0' into 'release/v4.0'
Fix A2DP Underrun Issue [backport v4.0]

See merge request espressif/esp-idf!12279
2021-03-05 12:17:53 +00:00
liqigan
75d4004ce6 add API esp_spp_stop_srv_scn to stop a specific server 2021-03-04 15:46:10 +08:00
Chinmay Chhajed
ce21340dc5 Bluedroid: Do not initiate/accept connection with device having same BDADDR.
Added BD_ADDR comparison in l2cu_lcp_allocate and removed check from
security connection request handler as it's handled in l2cu_lcp_allocate
for both connection request and create connection.
2021-02-10 15:41:40 +05:30
Chinmay Chhajed
c98b72326e bt: removed esp_bt_get_mac()
There was no need for this function as there is already a way present to
fetch own mac address. Own mac addr can be fetched by calling
controller_get_interface().
2021-02-10 15:41:31 +05:30
weitianhua
ebe344f852 Fix A2DP Underrun Issue 2021-02-04 19:35:19 +08:00
weitianhua
1ae261dcdd Add init & deinit event for a2dp 2021-01-26 10:54:15 +08:00
Jiang Jiang Jian
a61ec41740 Merge branch 'bugfix/btdm_blufi_send_custom_data_will_congested_after_connection_is_broken_v4.0' into 'release/v4.0'
component/bt: fix Blufi sends customer data will congested when connection is broken(backport v4.0)

See merge request espressif/esp-idf!11849
2021-01-19 21:44:35 +08:00
Chinmay Chhajed
c4fe4dbf67 Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR. 2021-01-14 12:23:04 +05:30
Jiang Jiang Jian
f2038b959a Merge branch 'bugfix/fix_spp_vfs_dynamic_memory_bugs_v4.0' into 'release/v4.0'
component_bt/fix spp vfs demo crash when use dynamic memory[backport v4.0]

See merge request espressif/esp-idf!11729
2021-01-14 11:19:34 +08:00
XieWenxiang
f81bdd933e component/bt: fix Blufi sends customer data will congested when connection is broken 2020-12-31 15:54:09 +08:00
Chinmay Chhajed
b3d5ed3a03 Bluedroid: Fixes for some vulnerabilities.
This commit fixes 'Impersonation in Passkey entry protocol'
(CVE-2020-26558) and suggests fixes for other vulnerabilites like
'Impersonation in the Pin Pairing Protocol' (CVE-2020-26555) and
'Authentication of the LE Legacy Pairing Protocol'

CVE-2020-26558 can be easily implemented if the peer device can
impersonate our public key. This commit adds a check by comparing our
and received public key and returns failed pairing if keys are same.

This commit also adds comments suggesting to use secure connection when
supported by all devices.
2020-12-25 16:01:47 +05:30
liqigan
d64a19b73c fix spp vfs demo crash when use dynamic memory 2020-12-23 15:26:58 +08:00
wangcheng
e11820cd5b components/bt: Fixed the problem of early release of pointer(p_ccb) in funcion 2020-12-22 19:54:53 +08:00
Jiang Jiang Jian
ef7aca1a66 Merge branch 'nimble/fix_misc_coverity_issue_v4.0' into 'release/v4.0'
Nimble: Fix misc issues in NimBLE NVS, `ble_eddystone`, recursive call and  L2CAP CoC (v4.0)

See merge request espressif/esp-idf!11392
2020-12-22 15:01:25 +08:00
weitianhua
66be657233 Fix crash cause by calling a2dp deinit when connected 2020-12-21 10:27:04 +08:00
Artem Godlevskyi
ce999fe02e Added missing MYNEWT_VAL_BLE_L2CAP_COC_MPS definition
Signed-off-by: Prasad Alatkar <prasad.alatkar@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/5825
2020-12-17 07:19:59 +00:00
Prasad Alatkar
80ad3c1337 NimBLE: Fix misc coverity issues in NimBLE host
- NimBLE NVS : Additional check to account for NVS operation failure
- NimBLE host: Fix minor bug in ble_eddystone_set_adv_data_gen
- NimBLE host: remove recursive call, upstream PR: https://github.com/apache/mynewt-nimble/pull/857
2020-12-17 07:19:59 +00:00
Island
0182e53431 Merge branch 'feature/btdm_support_some_ble_new_features_v4.0' into 'release/v4.0'
components/bt: backport some new features for Bluedroid BLE(release v4.0)

See merge request espressif/esp-idf!11453
2020-12-03 19:04:02 +08:00
xiewenxiang
f8581b40fc component/bt: support BLE Read Attribute value by UUID 2020-12-03 16:47:13 +08:00
xiewenxiang
2505769c0b component/bt: refactor ble random address setting 2020-12-03 16:47:04 +08:00
XieWenxiang
8db16a50ae component/bt: support BLE Application Layer Encryption key size check 2020-12-03 16:46:53 +08:00
XieWenxiang
069325a7ed component/bt: support BLE Authorization 2020-12-03 16:44:45 +08:00
xiewenxiang
b585eccf36 component/bt: fix incorrect encryption flag setting 2020-12-03 16:36:19 +08:00
wangcheng
e7375c79b0 component/bt: Add a macro to control the compilation of blufi. 2020-11-24 10:54:39 +08:00
wangcheng
3adfbaeb2f component/bt: Fix a potential double free error. 2020-11-24 10:46:25 +08:00
wangcheng
724d863116 blufi: fix an error caused by incorrect conn_id parameters. 2020-11-24 10:46:22 +08:00
liqigan
023f44e348 replace list and ringbuffer with fixed queue
use eventgroup to sync spp_vfs_write

each connection has a switch_delay_timer not sharing a one

revert functions like spp_find_slot_by_xxx

fix vfs read bug when peer close
2020-11-23 12:22:30 +08:00
liqigan
2765d5b829 move flow control to btc layer
defer free slot in btc layer when receive BTA_JV_RFCOMM_CLOSE_EVT
2020-11-23 12:22:30 +08:00
liqigan
ba3f69feea add event when calling spp API failed 2020-11-23 12:22:30 +08:00
weitianhua
ca00390174 Seperate BTA_JV_L2CAP for less bin size 2020-11-21 09:38:46 +00:00