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
weitianhua
0d2790a429
Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled
2020-03-12 16:20:58 +08:00
weitianhua
477e584f7d
Bugfix for HFP and some Github issue.
...
1. Bugfix for AG audio crash (change the return position)
2. Fix the error macro name and error return in hfp_hf demo
3. Fix the annotation error using UTF-8 ' (from Github)
4. Change or remove the log in SCO related code region.
5. Correct error of introduction of a function.
2020-02-25 18:03:54 +08:00
baohongde
d11a86076f
Fix bugs about role switch
...
Jitter in FHS
Jitter in first PULL
Receive EDR packet fail after role switch
2020-02-19 20:14:47 +08:00
Jiang Jiang Jian
7a7c4a5486
Merge branch 'bugfix/coex_schm' into 'master'
...
Bugfix/coex schm
See merge request espressif/esp-idf!7176
2020-01-12 20:37:42 +08:00
gengyuchao
3366467980
ble:set a esp api to get size of controller send packets buffer.
2020-01-10 20:32:07 +08:00
gengyuchao
189cd21660
bugfix:Fixed throughput wasting memory and packet loss issues.
2020-01-10 20:32:07 +08:00
baohongde
a2398f0dcc
components/esp_wifi: improve coexistence performance according to specific WiFi/BT/BLE scienario
...
1. Improve WiFi throughput in some Classic BT scienarios(idle, inquire scan,
connected, sniff, a2dp pause, etc).
2. Support WiFi + Classic BT + BLE mesh coexistence scienario.
3. Improve WiFi scan and connect succeed ratio in coexistence scienario.
4. Do not support to choose software coexistence preference anymore for it is
determined according to coexistence scienario automatically.
components/lwip: increase TCP send buffer and receive window limitation when TCP window scale is enabled
components/ble_mesh: Fix some bugs about ble mesh
1. fix send acl pkt after ble have sent terminate ind modify min adv interval to 10ms.
2020-01-10 16:00:12 +08:00
weitianhua
392eb79704
Format the BTM_WBS_INCLUDED macro
2019-12-12 17:12:38 +08:00
Geng Yu Chao
6c923cf330
Fix some typo in idf
2019-12-12 15:55:42 +08:00
Geng Yu Chao
46c53ab8c8
btdm:fix the problem that Not getting complete Identity Address (Public Address) of the Privacy-enabled Bonded Device after bonding. beacuse of the wrong memcpy in LE_KEY callback handler.
2019-12-09 15:21:49 +08:00
Xu Jun Jun
e20e47809d
For BT device restore security info from NV to SRAM, should set the ble_hci_handle to a invalid value, otherwise BLE devices may have pairing problem
2019-12-07 16:19:57 +08:00
Hrishikesh Dhayagude
a2adcea802
Enable characteristic 0x2A04 in GAP service
...
Add support to enable Peripheral Preferred Connection Parameters in GAP service and update it correctly
2019-12-05 12:17:14 +08:00
zhiweijian
fb369577d9
component/bt: allow adv stop again when adv is already stoped and fix crash when tx prog sometimes
2019-11-27 10:03:06 +00:00
weitianhua
52c5cc038a
bugfix for HFP hci audio crash
2019-11-26 02:34:09 +00:00
weitianhua
3f0e851a39
Feature/ Read Remote Device's Name
2019-11-14 03:33:37 +00:00
Jiang Jiang Jian
ea0f0b1700
Merge branch 'feature/btdm_add_api_to_set_channel_classification' into 'master'
...
Feature/btdm add api to set channel classification
Closes BT-450
See merge request espressif/esp-idf!6229
2019-10-26 20:42:58 +08:00
Jiang Jiang Jian
eef065374e
Merge branch 'bugfix/btdm_disable_bt_gatt' into 'master'
...
components/bt: Disable BR/EDR GATT
Closes BT-456
See merge request espressif/esp-idf!6420
2019-10-26 20:42:37 +08:00
baohongde
ed984cc9b5
components/bt: Add API and EVT for BLE set channels(BLE)
2019-10-25 11:39:35 +08:00
baohongde
eaf5f6a319
components/bt: Add API and EVT for set AFH channels(BR/EDR)
2019-10-25 11:39:22 +08:00
baohongde
93f86b8a6d
components/bt: Disable BR/EDR GATT
2019-10-25 02:49:51 +00:00
weitianhua
26b69f1363
New Clean Commit for AG.
...
Only Support single AG control block.
2019-10-14 07:54:09 +00:00
Prasad Alatkar
2c3648b619
BT/Bluedroid : Add support to set min encryption key requirement
...
- Modifies `smp_utils.c` to add check on encryption key size received from
peer.
- Modifies `esp_ble_gap_set_security_param` API to add minimum encryption key
size requirement.
2019-09-25 11:56:47 +08:00
Zac Bond
f8212988c4
Use CONFIG value instead of hard-coded value.
...
Add intermediate defines.
Use CONFIG_BTU_TASK_STACK_SIZE instead of hard-coded value in Bluedroid component
2019-09-03 10:21:45 +08:00
Anton Maklakov
afbaf74007
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
2019-08-01 16:28:56 +07:00
baohongde
f77a5851bb
component/bt: Fix BLE SMP free without init
2019-07-26 14:40:03 +08:00
baohongde
d1f774bc0a
component/bt: Avoid PLC to use unallocated memory
...
Closes https://github.com/espressif/esp-idf/pull/3799
2019-07-26 14:39:50 +08:00
Hrishikesh Dhayagude
21165edf41
Bluetooth component refactoring
2019-06-30 16:39:00 +08:00