Chinmay Chhajed
34ad62021a
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.
2020-06-25 16:18:29 +05:30
zwj
9bdf545599
component/bt: Fix adv/scan not support RPA_public and RPA_random
2020-05-15 18:32:46 +08:00
weitianhua
737dd8b2f1
Remove (x2) varible for BCM_STRNCPY_S and BCM_STRCPY_S
2020-03-14 15:09:44 +08:00
Jiang Jiang Jian
32386575c9
Merge branch 'bugfix/btdm_allow_start_adv_again_v3.1' into 'release/v3.1'
...
component/bt: allow to send stop adv again and fix tx prog crash(backport v3.1)
See merge request espressif/esp-idf!6914
2020-02-24 20:18:09 +08:00
June
91c09d638f
backport mr !6031 - fix security info restore bug
2020-02-21 20:27:06 +08:00
zhiweijian
f0afa64416
component/bt: allow to send stop adv again and fix tx prog crash
2020-02-20 14:18:33 +08:00
zhiweijian
a74775d5f0
component/bt: fix unpack hci enhance connection complete event error
2019-06-19 14:41:52 +08:00
Jiang Jiang Jian
42986bf1e5
Merge branch 'bugfix/btdm_fix_warning_when_disable_logs_v3.1' into 'release/v3.1'
...
components/bt: Fix warning when disable debug logs or in release mode and…
See merge request idf/esp-idf!4622
2019-04-28 10:18:47 +08:00
zhiweijian
29f5ad6638
Component/bt: add ble link timeout config in menuconfig
...
- add ble link timeout config in menuconfig
- disable background connection when call gatts_open
2019-04-22 21:57:09 +08:00
baohongde
a05b99e0dc
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
2019-03-26 15:16:14 +08:00
zhiweijian
4f6b6d3391
Component/bt: fix build warning when bluedroid disable log
2019-03-20 15:08:28 +08:00
zhiweijian
3d542b2530
Component/bt: add BLE adv report flow control
2019-03-12 15:15:21 +08:00
zwj
9f3bde6096
component/bt: add vendor hci cmd
2019-03-12 14:54:53 +08:00
zhiweijian
1b5a77eba9
Component/bt: fix iOS and win10 compatibility error for HID
2019-03-05 20:00:18 +08:00
zhiweijian
5e048a9ebb
Component/bt: add scan window and interval check when set scan params
2019-02-20 17:56:36 +08:00
Tian Hao
85825377c8
component/bt: add a option to make report adv data and scan response individually
...
Originally, when doing BLE active scan, Bluedroid will not report adv to
application layer until receive scan response. This option is used to
disable the behavior. When enable this option, Bluedroid will report
adv data or scan response to application layer immediately.
2019-01-24 18:45:57 +08:00
Jiang Jiang Jian
357239a20c
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp_v3.1' into 'release/v3.1'
...
Component/bt: fix auth_mode error when reconnection in SMP(backport V3.1)
See merge request idf/esp-idf!3956
2019-01-09 13:57:07 +08:00
Jiang Jiang Jian
e1dcd81c18
Merge branch 'bugfix/btdm_fix_two_bugs_about_pairing_v3.1' into 'release/v3.1'
...
components/bt: Fix two bugs about pairing(backport 3.1)
See merge request idf/esp-idf!3996
2019-01-09 13:51:07 +08:00
baohongde
152a4f46d6
components/bt: Fix two bugs about pairing
...
1. Fix Legacy Pairing failed without remote device name
2. Fix discovery no device after disabling SSP
2018-12-21 20:52:46 +08:00
zhiweijian
bd9eb5255d
Component/bt: fix receive adv pkt when enable duplicate scan
2018-12-17 15:55:38 +08:00
zhiweijian
f4b64a491b
Component/bt: fix auth_mode error when reconnection in SMP
2018-12-13 15:36:51 +08:00
baohongde
8e0bb3ec81
components/bt: Some errors in comment
2018-11-16 15:38:22 +08:00
zhiweijian
143c0bdaf9
Component/bt: add ble disconnect when ACCEPT_SPECIFIED_SEC_AUTH failed
2018-10-26 14:10:32 +08:00
zhiweijian
e5f2f1ba78
Component/bt: add only accept sepecified Authentication
2018-10-26 11:58:25 +08:00
zhiweijian
89ee65e1c6
Component/bt: add set default passkey function
2018-10-26 11:55:18 +08:00
baohongde
de0a323bef
component/bt: Fix BTU task watchdog timeout after pair with iphone (backport 3.1)
...
A cherry-pick of MR !3366
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it.
Closes https://github.com/espressif/esp-idf/issues/2191
2018-09-28 11:04:44 +08:00
baohongde
cc0a73c156
component/bt: Fix bug of remove bond device fail when BLE and BT are connectd at the same time (backport 3.1)
...
A cherry-pick of MR !2767
2018-09-26 14:23:05 +08:00
baohongde
ea3b2716fd
component/bt: Unlock reserve of SCN 1 for HFP (backport v3.1)
...
A cherry-pick of MR !3269
2018-09-17 11:01:58 +08:00
Tian Hao
a05868f0a8
fix TX power value in ble adv data is incorrect
...
refence to https://github.com/espressif/esp-idf/issues/2284
Before fixing, the tx power in adv data is always 0xeb(-21dbm).
restriction:
If change BLE advertising TX power, please call esp_ble_gap_config_adv_data()
after BLE adv TX power changed.
Later, will implement set BLE advertising TX power via HCI, then the
TX power value in adv data can be update automatically after BLE adv
TX power changed.
2018-09-12 10:19:08 +00:00
Jiang Jiang Jian
d193895ec6
Merge branch 'bugfix/btdm_hfp_invalid_hci_sync_pkt_len_for_v3.1' into 'release/v3.1'
...
bugfix/btdm_hfp_invalid_hci_sync_pkt_len_for_v3.1(backport v3.1)
See merge request idf/esp-idf!3188
2018-09-06 19:52:05 +08:00
Tian Hao
196793dccb
component/bt : fix bug that set discovery mode will stop ble adv
...
As the bluedroid original implmentation of BR/EDR and BLE dual mode about discovery mode,
when set discovery mode for BR/EDR, it will stop ble advertising.
Reference to https://github.com/espressif/esp-idf/issues/2306
2018-09-04 20:29:36 +08:00
wangmengyang
7c6d447938
component/bt: bugfix for incorrect length of HCI SCO packet size in HFP resulted from uninitialized data buffer length
2018-09-04 20:24:00 +08:00
baohongde
6a2f492832
component/bt: Update BLE private address after it's private address interval (backport 3.1)
...
A cherry-pick of MR !2987
2018-09-03 14:27:15 +08:00
zhiweijian
bfc8142c99
Component/bt: fix get error adv packet sometimes
2018-08-28 14:13:10 +08:00
zhiweijian
512e4d5836
Component/bt: fix SC_MITM_BOND failed in smp for iphones
2018-08-04 17:02:13 +08:00
zhiweijian
b270638868
Component/bt: fix hci_hal_env.rx_q and xHciH4Queue blocking when scanning
2018-08-01 15:10:28 +08:00
wangmengyang
dff911da69
component/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event
2018-07-09 12:14:27 +08:00
Jiang Jiang Jian
f4f563bc7b
Merge branch 'bugfix/btdm_fix_stop_adv_error_in_dual_core_v3.1' into 'release/v3.1'
...
component/bt: fix stop adv error in dual core for v3.1
See merge request idf/esp-idf!2661
2018-06-29 19:22:28 +08:00
Jiang Jiang Jian
dadfcc35b3
Merge branch 'bugfix/read_rssi_v3.1' into 'release/v3.1'
...
bt : fix read rssi conflict when in dual mode
See merge request idf/esp-idf!2618
2018-06-29 19:18:15 +08:00
zwj
6752163800
component/bt: fix stop adv error in dual core
2018-06-29 15:09:11 +08:00
zwj
9ca4dc0626
component/bt: fix no adv packets
2018-06-29 10:23:46 +08:00
Tian Hao
e3dedb74c5
bt : fix read rssi conflict when in dual mode
2018-06-26 11:54:39 +08:00
zhiweijian
c8e848b0ff
Component/bt: fix start adv
2018-05-30 17:10:51 +08:00
zhiweijian
2e63a445d9
Component/bt: fix set scan params command completer error
2018-05-23 12:09:39 +00:00
zhiweijian
340ad5c430
Component/bt: fix scan duplicate
2018-05-21 15:23:15 +08:00
wangmengyang
4c4e143a2f
component/bt: implement HFP Hands Free Unit Role
2018-05-21 11:33:30 +08:00
Jiang Jiang Jian
993b8b7bf6
Merge branch 'bugfix/o3_fails' into 'master'
...
Fix compilation errors when -O3 is used
See merge request idf/esp-idf!2396
2018-05-17 16:48:13 +08:00
Jiang Jiang Jian
f502e195aa
Merge branch 'bugfix/improve_bt_debug' into 'master'
...
components/bt: Improve the Bluetooth debug messaging scheme
See merge request idf/esp-idf!2303
2018-05-16 16:04:34 +08:00
Hrishikesh Dhayagude
da6cb6c741
components/bt: Improve the Bluetooth debug messaging scheme
...
As of now, when Bluetooth debugs are enabled, all the messages are
mapped to BT_PRINTF which is mapped to ESP_LOGE. Hence, make monitor
shows all logs in red color which might lead to missing the actual
errors
This patch maps the Bluetooth messages to appropriate ESP_LOG* messages
and improves readability.
Also, make the BT trace level be configurable in menuconfig, so that
each layer of bt trace can be enabled/disabled.
Finally, add debug log control for BTC, OSI, BLUFI and clear up
Bluetooth debug logs.
So, with this the method of enabling Bluetooth logs is as follows:
1. make menuconfig -> Component config -> Bluetooth -> Bluedroid Enable
-> BT DEBUG LOG LEVEL -> set trace level for every layer of BT
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com >
2018-05-14 20:45:05 +08:00
Roland Dobai
ca08397b6b
Fix compilation errors when -O3 is used
...
Closes https://github.com/espressif/esp-idf/issues/718
2018-05-14 12:29:57 +02:00