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
Jiang Jiang Jian
6d23d64b18
Merge branch 'bugfix/fix_bredr_read_rssi_delta_v4.0' into 'release/v4.0'
...
Bugfix/Fix Read Rssi Delta Bug in Bredr [backport v4.0]
See merge request espressif/esp-idf!10805
2020-11-20 15:36:39 +08:00
Jiang Jiang Jian
00b9f48081
Merge branch 'bugfix/add_clear_bond_complete_evt_4_0' into 'release/v4.0'
...
componenet_bt/bugfix: add remove bond device complete event 4.0
See merge request espressif/esp-idf!10656
2020-11-20 13:50:13 +08:00
Jiang Jiang Jian
befde68eea
Merge branch 'bugfix/btdm_blufi_data_sequence_not_reset_after_disconnect_v4.0' into 'release/v4.0'
...
component/bt: fix Blufi sends data after disconnect the seq still increase(backport v4.0)
See merge request espressif/esp-idf!10239
2020-11-16 19:38:22 +08:00
baohongde
8f3fe29deb
components/bt: Replace task post with btc_inter_profile_call, when post message from btc_dm to btc_gap
2020-11-12 19:23:10 +08:00
baohongde
19ef328f8e
components/bt: Fix clear bond fail when connected without ble included
2020-11-12 19:18:52 +08:00
xiongweichao
e51818f6fc
add remove bond device complete event
2020-11-12 19:18:52 +08:00
Jiang Jiang Jian
e9ba0e05f2
Merge branch 'bugfix/nimble_host_rcv_pkt_length_check_v4.0' into 'release/v4.0'
...
NimBLE: host_rcv_pkt event buf size check. (v4.0)
See merge request espressif/esp-idf!10760
2020-11-12 14:20:29 +08:00
Jiang Jiang Jian
a69ff28c6f
Merge branch 'bugfix/bredr_bugfix_release_for_qa_dummy_disconnect_4_0' into 'release/v4.0'
...
Bugfix/bredr bugfix release for qa dummy disconnect 4.0
See merge request espressif/esp-idf!10647
2020-11-12 14:18:53 +08:00
Jiang Jiang Jian
3c9833eaf9
Merge branch 'bugfix/add_protection_for_spp_api_4.0' into 'release/v4.0'
...
Bugfix/add protection for spp api [backport v4.0]
See merge request espressif/esp-idf!10283
2020-11-12 14:15:41 +08:00
liqigan
a11e5b399e
1. fix read rssi delta bug in bredr
...
2. modify read rssi related function names
Closes https://github.com/espressif/esp-idf/issues/5660
2020-10-28 11:50:47 +00:00
Chinmay Chhajed
3b670f1f8b
NimBLE: host_rcv_pkt event buf size check.
...
Check if the size of HCI event buffer is greater than the received HCI
packet. If not then abort with the error message.
2020-10-09 09:32:14 +05:30
xiongweichao
82140dd840
1.revert dummy command
...
2.fix send MEDIA_CTRL command in disconnect
2020-09-28 11:28:22 +08:00
xiongweichao
8e9f4e719d
1.fix test case dummy
...
2.fix sink send media control ESP_A2D_MEDIA_CHECK_SRC_RDY
2020-09-28 11:28:08 +08:00
weitianhua
53c57cf2a3
Redesign separating AVRC & A2DP
...
1. Add g_av_with_rc to avrc_tg_init function
2. Remove g_av_open_fail
3. Add comment in API files
4. Add a2dp init & deinit state variable to inidcate a2dp statement
2020-09-18 14:14:40 +08:00
weitianhua
98e9f62dda
Add global header and change declaration position
2020-09-18 14:14:34 +08:00
weitianhua
ca2fff3b51
Remove uneccessary macro
...
Separate AVRC from A2DP when AVRC not Initialized
2020-09-18 14:14:27 +08:00
weitianhua
7f66230e9e
Rewrite a2dp clean_up function
2020-09-18 14:14:20 +08:00
weitianhua
a3ca473dd4
Add bda_addr for esp_bt_a2dp_disconn_req API
...
1. Add reaction for a2dp snk & src disconn req when no link up
2. Change state machine set before EVT upto APP layer in some cases
3. Add bool open_fail to choose whether post disconnection evt to app layer
2020-09-18 14:14:11 +08:00
weitianhua
f97188d2d3
Add protection for rfcomm close API in SPP
2020-09-14 10:06:22 +08:00
weitianhua
f38d93f73c
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-09-14 10:06:22 +08:00
baohongde
9263b84f37
components/bt: Fix SPP using NULL point with dynamic memory
2020-09-07 15:46:09 +08:00
Jiang Jiang Jian
0fda05cc83
Merge branch 'bugfix/l2cap_link_timeout_llcp_prog_btu_wtd_v4.0' into 'release/v4.0'
...
Bugfix/l2cap link timeout llcp prog btu wtd v4.0
See merge request espressif/esp-idf!10253
2020-09-07 14:18:09 +08:00
wangcheng
2ba90c8453
component/bt: Fixed the watchdog timeout of btu task during multi-connection
2020-09-04 16:24:23 +08:00
wangcheng
ce1905d6b5
components/bt: Fixed the state not synchronized between controller and host when disconnected.
2020-09-02 21:33:06 +08:00
XieWenxiang
2832f5f6f2
component/bt: fix Blufi sends data after disconnect the seq still increase(backport v4.0)
2020-09-02 11:08:07 +08:00
liqigan
45c4fef890
add API esp_spp_stop_srv(), fix the error parameter in esp-idf/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c and fix collection of SPP
...
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-08-13 12:01:39 +08:00
wangcheng
b50bbe3a5b
component/bt: Fixed ble memory leak issue, buff_semaphore was not released.
2020-08-07 15:15:49 +08:00
XieWenxiang
100750ac1b
component/bt: fix Blufi sends longer customer data will will lead congested(backport v4.0)
2020-08-04 15:22:18 +08:00
Jiang Jiang Jian
3f332ef02b
Merge branch 'bugfix/bt_linkup_fallback_event_v4.0' into 'release/v4.0'
...
Bluedroid: Fixes cases having fallback to link up event. (v4.0)
See merge request espressif/esp-idf!9804
2020-07-31 17:27:37 +08:00
Jiang Jiang Jian
2be17377bb
Merge branch 'nimble/nrpa_support_v4.0' into 'release/v4.0'
...
NimBLE: Add Non-Resolvable private address support and misc fixes (Backport v4.0)
See merge request espressif/esp-idf!9736
2020-07-31 17:27:21 +08:00
Jiang Jiang Jian
f32582b588
Merge branch 'bugfix/fix_hci_max_page_num_v4.0' into 'release/v4.0'
...
bugfix/Support for more Bluetooth HID devices [backport v4.0]
See merge request espressif/esp-idf!9662
2020-07-30 21:20:15 +08:00
Chinmay Chhajed
5fe10f1ff8
Bluedroid: Fixes cases having fallback to link up event.
...
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2020-07-27 14:03:20 +05:30
Prasad Alatkar
9566e4ec19
NimBLE: Add Non-Resolvable private address support and misc bug fixes (Backport v4.0)
...
- Merges https://github.com/espressif/esp-nimble/pull/12
- Fixes repeated pairing failure in RPA feature
Closes https://github.com/espressif/esp-idf/issues/5530
2020-07-23 11:31:52 +05:30
boblane
9a88eef632
fix esp_bt_gap_get_bond_device_list bug
...
Closes https://github.com/espressif/esp-idf/issues/5395
2020-07-17 15:12:57 +08:00
DerfJagged
a1cf4fa871
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-17 10:23:52 +08:00
Jiang Jiang Jian
f73cd1d4f1
Merge branch 'docs/fix_event_typo_backport_v4.0' into 'release/v4.0'
...
docs/fix event typo backport v4.0
See merge request espressif/esp-idf!9384
2020-07-12 21:23:54 +08:00
liqigan
9e506a921b
components/bt: Adjust the description of esp_bt_gap_start_discovery
and esp_bt_gap_cancel_discovery
.
...
Add some comments to explain why `ESP_BT_GAP_DISC_STATE_CHANGED_EVT` is not reported.
2020-07-08 15:07:05 +08:00
liminyang
acb54059be
docs:fix event typo
...
1.In the description of the ESP_API header file, it should be the event that the application layer needs to handle, not the BTA layer.
2.Fix name typo of BTA_GATTS_CREATE_SRVC_EVT event
Closes https://github.com/espressif/esp-idf/issues/5446
2020-06-29 20:59:14 +08:00
Chinmay Chhajed
a9d4ed4a55
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-24 22:25:20 +05:30
wangcheng
b869e69c62
components/bt: Consider link_xmit_data_q in congest events to prevent excessive memory usage
2020-06-18 15:02:02 +08:00
wangcheng
12759b951c
components/bt: Fixed the problem of incomplete data packets caused by disordered acl data packets
2020-06-18 15:01:24 +08:00
Wang Cheng
d875485f89
components/bt: Add a detailed description for the user to distinguish the function of the query buffer api.
2020-06-18 15:01:18 +08:00
Geng Yu Chao
ac2e34f611
Update the limited of function esp_ble_get_sendable_packets_num.
2020-06-18 15:01:13 +08:00
wangcheng
211e7bb4c2
components/bt: Add api to query the number of available buffers for the current connection
2020-06-18 15:01:05 +08:00
wangcheng
e781279110
blufi: When the format of the received data packet is wrong, reply with an error response
2020-06-17 12:20:53 +08:00
Prasad Alatkar
5af06f49f5
NimBLE: Include upstream fixes and use macros for log level filtering (backport v4.0)
...
Change list:
- Reduces the size of the compiled binary, PR: https://github.com/espressif/esp-nimble/pull/6
- Null pointer check, PR: https://github.com/apache/mynewt-nimble/pull/701
- Pairing procedure abort on unexpected req: https://github.com/apache/mynewt-nimble/pull/710
- Fix conn flags after pairing: https://github.com/apache/mynewt-nimble/pull/730
- Remove notification for update process timeout (Vol 6, Part B, section 5.2 ):
https://github.com/apache/mynewt-nimble/pull/782
- CCCD fix : https://github.com/apache/mynewt-nimble/pull/790 and
https://github.com/apache/mynewt-nimble/pull/804
- Host based Privacy (RPA) fix: https://github.com/espressif/esp-nimble/pull/7
Closes https://github.com/espressif/esp-nimble/issues/10
Closes https://github.com/espressif/esp-idf/issues/4413
2020-05-20 16:19:55 +05:30
zhiweijian
6ee978c6aa
add congest direct callback and fix malloc failed when multi_connection notify performance test
2020-05-15 16:18:31 +08:00
wangcheng
d231b25bc4
fix bta_dm_deinit_cb crash
2020-05-15 16:16:26 +08:00
wangcheng
456c8bdbdf
master missing BLE_AUTH_CMPL_EVT after restart
2020-05-15 16:16:26 +08:00
Prasad Alatkar
0fc72b58e1
NimBLE: Reset master and slave states on host reset and fix build failure (backport v4.0)
2020-04-07 10:41:35 +05:30
Island
50073a7e61
Merge branch 'nimble/misc_host_flow_ctrl_changes_v4.0' into 'release/v4.0'
...
NimBLE: Misc fixes in NimBLE host (backport v4.0)
See merge request espressif/esp-idf!7949
2020-04-02 19:43:52 +08:00
Jiang Jiang Jian
f69f96edab
Merge branch 'bugfix/btdm_dont_dequeue_the_command_queue_v4.0' into 'release/v4.0'
...
component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v4.0)
See merge request espressif/esp-idf!8182
2020-04-01 17:56:05 +08:00
xiewenxiang
50e83cf374
component/bt: fix don't dequeue the command queue after process the read_by_type_req
2020-03-31 16:29:07 +08:00
Jiang Jiang Jian
75f6bc2de1
Merge branch 'bugfix/compiler_err_when_performance_optimization_enabled_v4.0' into 'release/v4.0'
...
Bugfix/compiler err when performance optimization enabled v4.0
See merge request espressif/esp-idf!7978
2020-03-17 13:53:54 +08:00
Prasad Alatkar
5f7436006f
NimBLE: Add Host based privacy (RPA) feature support (v4.0)
...
- This feature removes dependency on controller to use privacy (RPA)
2020-03-16 07:33:07 +00:00
Prasad Alatkar
6ee1947822
NimBLE: Fix check for static random address & add MSYS_1 in menuconfig (v4.0)
...
Closes BT-290 & BT-440
2020-03-16 07:33:07 +00:00
Hrishikesh Dhayagude
3aaf6a06dd
NimBLE: Use dynamic buffers instead of static memory (v4.0)
...
The NimBLE host buffers that consume a significant amount of memory are
now allocated dynamically.
The advantage is that, the memory can be reclaimed in cases where BLE
is turned off and not required for the current boot cycle
2020-03-16 07:33:07 +00:00
Prasad Alatkar
3ee6dfa4d6
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt & example (v4.0)
...
- Add menuconfig option for NimBLE host flow control
- Include changes in `blecent` example from upstream PR!702
- add ble_hs_lock in ble_gap_unpair Upstream PR!584
- ble_hs_hci_rx_evt, upstream PR!738
Closes https://github.com/espressif/esp-idf/issues/4243
2020-03-16 07:33:07 +00:00
weitianhua
b6415d9a91
Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled
2020-03-14 14:45:57 +08:00
weitianhua
7c2f1287ec
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-03-14 14:19:54 +08:00
Jiang Jiang Jian
25dfb08435
Merge branch 'bugfix/btdm_role_switch_v4.0' into 'release/v4.0'
...
Fix bugs about role switch
See merge request espressif/esp-idf!6924
2020-02-25 14:13:58 +08:00
June
9d15ffb573
backport mr !6031 - fix security info restore bug
2020-02-21 20:00:25 +08:00
baohongde
06ff1ceae3
Fix bugs about role switch
...
Jitter in FHS
Jitter in first PULL
Receive EDR packet fail after role switch
2020-02-20 15:21:28 +08:00
Jiang Jiang Jian
b04e643bd0
Merge branch 'bugfix/coex_schm_v4.0' into 'release/v4.0'
...
Bugfix/coex schm v4.0
See merge request espressif/esp-idf!7636
2020-02-20 14:49:32 +08:00
baohongde
d07b9e97d7
components/coex: Fix a2dp stuck after creating anther connection
2020-02-19 11:48:33 +08:00
Jiang Jiang Jian
615dc00e86
Merge branch 'bugfix/some_host_and_example_bugfix_Backport_to_4v0' into 'release/v4.0'
...
Bugfix/some host and example bugfix backport to v4.0
See merge request espressif/esp-idf!7360
2020-02-18 21:02:34 +08:00
baohongde
78ecc043d5
Improve coexistence performance according to specific WiFi/BT/BLE scienario
...
1. Improve WiFi performance in some Classic BT scienario(idle, inquire scan,
connecting, connected, sniff, a2dp pause, etc).
2. Support WiFi + Classic BT + BLE mesh coexistence scienario.
3. Improve WiFi scan and connect performance in coexistence scienario.
2020-02-18 12:40:48 +08:00
baohongde
c48a94d4a8
components/mesh: Fix some bugs about mesh
...
fix send acl pkt after ble have sent terminate ind
modify min adv interval to 10ms
2020-02-18 11:07:16 +08:00
Jiang Jiang Jian
f92534f95d
Merge branch 'bugfix/btdm_error_type_in_config_eir_evt_v4.0' into 'release/v4.0'
...
components/bt: Fix error EIR type in config eir event
See merge request espressif/esp-idf!7407
2020-02-14 16:41:58 +08:00
Jiang Jiang Jian
fb924ece79
Merge branch 'bugfix/btdm_fix_multi_open_evt_and_clear_blufi_prepare_write_len' into 'release/v4.0'
...
component/bt: fix multi open evt and clear blufi prepare write len(backport v4.0)
See merge request espressif/esp-idf!7324
2020-02-13 11:08:41 +08:00
baohongde
e38c080f79
components/bt: Fix error EIR type in config eir event
2020-01-20 21:50:01 +08:00
gengyuchao
ed6805625c
ble:set a esp api to get size of controller send packets buffer.
2020-01-16 16:09:34 +08:00
gengyuchao
74a89774fd
bugfix:Fixed throughput wasting memory and packet loss issues.
2020-01-16 16:09:17 +08:00
gengyuchao
7dc5c2af59
ble Fix typo and add some comment
2020-01-16 16:05:44 +08:00
Brian Friedkin
e5bd8b1982
add missing gatt descriptors
2020-01-16 16:05:29 +08:00
Geng Yu Chao
5445c80a8e
component/bt: Fix the issue with pointer type conversion in gattc. Unified count pointer type in bta and btc, change pointer type in bta from int to uint16_t.
2020-01-16 15:26:37 +08:00
Geng Yu Chao
69d341f7f0
Fix some typo in idf
2020-01-16 15:26:37 +08:00
zhiweijian
93409bd57e
component/bt: fix blufi prepare write buf len invalid
2020-01-14 17:25:54 +08:00
zhiweijian
32ba52760f
Component/bt: Fix GATTC trigger open event multiple times
2020-01-14 17:24:36 +08:00
weitianhua
a388eb8806
componnets_bt/:fix hfp/a2dp coex bug with iphone
2020-01-08 19:25:29 +08:00
baohongde
d93bff2699
components/bt: Revert changes of security mask
2019-12-29 06:29:23 +00:00
Geng Yu Chao
f955c49423
Bugfix/btdm fix doc and host bug backport v4.0
2019-12-18 14:19:27 +08:00
baohongde
a82215d161
components/bt: Fix AVRC metadata length error
2019-12-14 05:48:26 +00:00