zwj
081e474baf
fix a2dp sink crash due to ble 5.0 code
2021-01-27 14:45:03 +08:00
zwj
ea42d8e043
fix bluedroid deinit crash
2021-01-15 21:08:14 +08:00
zwj
d624675087
fix connection param update timeout
2021-01-15 18:05:39 +08:00
zwj
ad09955b1f
fix crash when creating aux open failed, fix GAP_22026 failed
2021-01-15 18:05:18 +08:00
zwj
273d2fd5ec
fix multi-connection crash (smp-08003)
2021-01-15 18:05:04 +08:00
zhiweijian
e81104f377
fix add white list failed
2021-01-15 18:04:45 +08:00
zwj
61b1a4b7b8
fix bluedroid repair faild if the two most significant bits of public address is '01'
2021-01-15 18:04:27 +08:00
zhiweijian@espressif.com
d4619584d7
fix ble connect crash
2021-01-15 18:04:16 +08:00
zwj
1d1754e4b4
- fix congest return value
...
- fix system no rsp when doing disconnect
- fix no congest event when ssc do writing performance
2021-01-15 18:03:56 +08:00
zwj
0880c7bcf9
fix ble read multi char err when the number of handles is more than 10
2021-01-15 18:03:39 +08:00
zwj
4a719daa78
fix scan rsp length err
2021-01-15 18:03:27 +08:00
zwj
796a959fa5
fix vendor hci memory leak
2021-01-15 18:03:15 +08:00
zwj
7c1c669799
component/bt: add BLE v5.0 feature for bluedroid host
2021-01-15 17:55:12 +08:00
Chinmay Chhajed
e016b6b79b
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.
2021-01-05 14:54:15 +05:30
Bao Hong De
64d30fa6c4
Add API to config QoS
2021-01-05 10:32:47 +08:00
Chinmay Chhajed
d73ebb570b
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-24 10:52:12 +00:00
wangcheng
cc7dbc6177
components/bt: Fixed the problem of early release of pointer(p_ccb) in funcion
2020-12-17 10:54:56 +08:00
xiewenxiang
945606b658
component/bt: support BLE Read Attribute value by UUID
2020-12-02 20:04:36 +08:00
xiewenxiang
7e5e0ba7de
component/bt: refactor ble random address setting
2020-12-02 09:08:31 +08:00
XieWenxiang
e840191a0c
component/bt: support BLE Application Layer Encryption key size check
2020-12-02 09:08:03 +08:00
XieWenxiang
366b036ba5
component/bt: support BLE Authorization
2020-12-02 09:07:24 +08:00
xiewenxiang
3d8eb26fe1
component/bt: fix incorrect encryption flag setting
2020-12-02 09:06:44 +08:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
Jiang Jiang Jian
6bed9ec70c
Merge branch 'bugfix/fix_ag_outging_callback_not_triggered' into 'master'
...
Bugfix/Fix Ag Example Outgoing Callback Not Triggered
Closes BTCI-50
See merge request espressif/esp-idf!10828
2020-10-28 19:57:02 +08:00
lly
5f146455f3
component/bt: Fix gatt clcb use-after-free issue
2020-10-28 02:42:28 +00:00
liqigan
743c1c1f20
fix ag example outgoing callback not triggered
...
Closes https://github.com/espressif/esp-idf/issues/4967
2020-10-14 09:47:16 +08:00
liqigan
93ba9ba15c
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-09-29 17:19:29 +08:00
liqigan
14f48d35bd
move flow control to btc layer
...
defer free slot in btc layer when receive BTA_JV_RFCOMM_CLOSE_EVT
2020-09-29 17:15:11 +08:00
baohongde
dac798afbb
components/bt: Fix crash in BTM_SetPowerMode after disconnect
...
Introduced by commit 0583a049
2020-09-27 19:55:12 +08:00
Jiang Jiang Jian
472c40f84e
Merge branch 'bugfix/l2cap_link_timeout_llcp_prog_btu_wtd' into 'master'
...
Bugfix/l2cap link timeout llcp prog btu wtd
Closes BT-941 and BT-973
See merge request espressif/esp-idf!10119
2020-09-07 14:10:46 +08:00
wangcheng
d635320871
component/bt: Fixed the watchdog timeout of btu task during multi-connection
2020-09-04 16:21:40 +08:00
wangcheng
f8fd58d7f6
components/bt: Fixed the state not synchronized between controller and host when disconnected.
2020-08-27 14:46:27 +08:00
weitianhua
8a9bfd3e92
Add protection for rfcomm close API in SPP
2020-08-26 15:17:28 +08:00
weitianhua
7e772d2195
Add some debug log for bt:
...
1. Add logs for SPP not enabled successfully
2. Add information to Applicatioin layer that the A2DP is connecting to peer device
Regular BTC and BTU Task name & Add BTC Init protection
1. Regular the BTC Task Name to Close a Github issue
Closes https://github.com/espressif/esp-idf/issues/4966
2. Add BTC Init failure protection
3. Regular BTU Task Name with BTC
4. Correct the comment of
a. SDP_ServiceSearchRequest and SDP_ServiceSearchRequest2
b. l2cu_create_conn_after_switch
5. Correct comment of esp_bt_hf_vra();
6. Fix cpp compilier region
2020-08-26 15:17:28 +08:00
sushant.chougule
70eb9abdee
Bluedroid: Fix BLE provisioning failure with bluedroid stack
2020-07-28 21:54:05 +05:30
sushant.chougule
a7d8d2c8da
Bluedroid: Fix gatt clcb allocation and deallocation error
2020-07-25 01:48:48 +00:00
Jiang Jiang Jian
84aebc6a78
Merge branch 'feature/bluedroid_link_based_dynamic_allocation' into 'master'
...
Bluedroid stack dynamic allocation changes to optimise DRAM usage
See merge request espressif/esp-idf!9461
2020-07-16 00:06:10 +08:00
sushant.chougule
0583a04969
Bluedroid stack dynamic allocation changes to optimise DRAM usage
...
Structures allocated dynamically:
tACL_CONN, tBTM_PM_MCB, tBTM_SEC_DEV_REC, tGATT_TCB, tGATT_CLCB, tL2C_LCB, tL2C_CCB, tSDP_RECORD
Total dynamic allocation size ~19KB.
Peak dram usage reduced by ~12KB when in BT classic + BLE scenario(1 a2dp sink + 1 BLE gatt server)
2020-07-15 14:44:10 +05:30
Jiang Jiang Jian
d65af31309
Merge branch 'bugfix/fix_hci_max_page_num' into 'master'
...
bugfix/Support for more Bluetooth HID devices
Closes IDFGH-3515
See merge request espressif/esp-idf!9621
2020-07-15 15:51:00 +08:00
Li Qi Gan
f6f2d9780b
add API esp_spp_stop_srv() and fix the error parameter in esp-idf/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c
...
Closes https://github.com/espressif/esp-idf/issues/5409
Closes https://github.com/espressif/esp-idf/pull/5408
See merge request espressif/esp-idf!9114
2020-07-15 15:49:37 +08:00
DerfJagged
5705c786e3
Support for more Bluetooth HID devices
...
Some Bluetooth devices - such as an Xbox One S controller (model 1708) - report more than two external features pages and are rejected immediately. Pages 1 and 2 are marked as unhandled in btm_devctl.c anyway, so there is no reason to block devices with more pages.
(IDFGH-3515)
Signed-off-by: liqigan <liqigan@espressif.com>
Merges https://github.com/espressif/esp-idf/pull/5481
Closes https://github.com/espressif/esp-idf/issues/5470
2020-07-15 11:54:26 +08:00
wangcheng
7d39074d57
component/bt: Fixed ble memory leak issue, buff_semaphore was not released.
2020-07-07 21:00:56 +08:00
Chinmay Chhajed
e3350e7861
Bluedroid: Authentication fixes in Legacy and Secure Connection.
...
Prevent a remote device from doing a Bluetooth Impersonation Attack
(BIAS) by:
- Preventing remote device to downgrade secure connection
feature mask. Secure connection feature mask should remain same or
increase to enabled in link key generation and authentication.
- Doing a mutual authentication during Legacy Authentication.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-06-25 15:37:01 +05:30
wangcheng
e87a42f46c
components/bt: Add api to query the number of available buffers for the current connection
2020-06-13 14:27:48 +08:00
wangcheng
9c7896f2c2
components/bt: Fixed the problem of incomplete data packets caused by disordered acl data packets
2020-06-13 14:25:51 +08:00
wangcheng
d767adcbfa
components/bt: Consider link_xmit_data_q in congest events to prevent excessive memory usage
2020-06-13 14:22:30 +08:00
zhiweijian
6d593eb6fc
component/bt: add clear white list API
2020-06-02 11:29:51 +08:00
zhiweijian
ec6c7558ef
add congest direct callback and fix malloc failed when multi_connection notify performance test
2020-05-15 15:35:39 +08:00
wangcheng
418b32e71b
master missing BLE_AUTH_CMPL_EVT after restart
2020-05-13 20:33:24 +08:00
xiewenxiang
5d0b6da6a0
component/bt: fix don't dequeue the command queue after process the read_by_type_req
2020-03-31 15:10:01 +08:00