Commit graph

1139 commits

Author SHA1 Message Date
gengyuchao
4643ca6ef8 example/ble_throughput:
Fixed the throughput wasting memory and packet loss issues.
Fixed the throughput crash bug because of using the Mutex.
2020-03-21 11:18:30 +08:00
gengyuchao
da19c94976 bugfix: ble add missing gatt descriptors 2020-03-21 11:18:19 +08:00
weitianhua
f222a02518 Remove (x2) varible for BCM_STRNCPY_S and BCM_STRCPY_S 2020-03-14 15:04:44 +08:00
weitianhua
dc7c244055 Initialize mem_start and mem_end 2020-03-14 15:04:33 +08:00
Chinmay Chhajed
bf9e676884 This MR is intended to fix Bluetooth event scheduling when WiFi is also enabled.
The global interrupts will be disabled before taking current
time for scheduling further bluetooth events. Earlier disabling
interrupts was taking some time because of which WiFi events were
interrupting in current bluetooth scheduling.

Also fixes ble crash issue triggered by ble event irq miss(0x20000)
2020-03-05 19:21:16 +05:30
June
511c1cee22 backport esp32 5p0 new features to release/v3.2 2020-02-29 09:12:15 +00:00
June
e1086b6b6f backport mr !6031 - fix security info restore bug 2020-02-28 11:48:52 +00:00
zhiweijian
bdb1391eeb component/bt: allow to send stop adv again and fix tx prog crash 2020-02-20 14:26:47 +08:00
weitianhua
714afdec6d Fix the initializer order 2020-02-17 16:10:53 +08:00
Jiang Jiang Jian
eb3f02a41a Merge branch 'hfp_a2dp_coex_iphone_3.2' into 'release/v3.2'
components bt/: Disable sniff mode during (e)SCO connection for HFP. [backport 3.2]

See merge request espressif/esp-idf!7251
2020-02-14 17:12:03 +08:00
baohongde
9463114e27 components/bt: backport release/v3.2
Fix A2DP stuck when BLE's interval is too small
Fix assert due to no free element from
Bugfix that bluetooth controller may not be able to enter sleep after end of wake up request
Fix LMP sniff req timeout
2020-01-16 16:19:14 +08:00
zhiweijian
02687b9b40 component/bt: fix blufi prepare write buf len invalid 2020-01-14 17:49:41 +08:00
zhiweijian
0193e34c62 Component/bt: Fix GATTC trigger open event multiple times 2020-01-14 17:49:32 +08:00
weitianhua
344c86bc3e hfp a2dp iphone 3.2 2020-01-08 19:44:23 +08:00
baohongde
b3f58ed2a1 components/bt: Choose AVRC category according to A2DP role 2019-12-31 15:50:44 +08:00
baohongde
8711e67e44 components/bt: Revert changes of security mask 2019-12-25 20:16:54 +08:00
Jiang Jiang Jian
ef4c513834 Merge branch 'bugfix/btdm_avrc_metadata_length_error_v3.2' into 'release/v3.2'
components/bt: Fix AVRC metadata length error

See merge request espressif/esp-idf!6885
2019-12-16 12:06:31 +08:00
Jiang Jiang Jian
d787e2a564 Merge branch 'bugfix/coex_fix_some_bugs_v3.2' into 'release/v3.2'
Coexist: fix some coexist bugs (backport v3.2)

See merge request espressif/esp-idf!6307
2019-12-16 12:05:30 +08:00
Jiang Jiang Jian
f8bcf2f459 Merge branch 'bugfix/hfp_client_indication_v3.2' into 'release/v3.2'
component/bt: Fix bugs in HFP feature v3.2

See merge request espressif/esp-idf!6853
2019-12-12 13:53:54 +08:00
Jiang Jiang Jian
32f2e7f509 Merge branch 'bugfix/wifi_internal_memory_v3.2' into 'release/v3.2'
wifi: Include DMA reserved pool when allocating internal-only memory (v3.2)

See merge request espressif/esp-idf!6629
2019-12-12 13:53:14 +08:00
Jiang Jiang Jian
887decf42a Merge branch 'component_bt/osi_fixed_queue_v3.2' into 'release/v3.2'
component_bt/: fix pointer type in fixed_queue v3.2

See merge request espressif/esp-idf!6848
2019-12-12 12:16:59 +08:00
weitianhua
b584cecea2 adaptation for nano-format 2019-11-29 17:58:52 +08:00
baohongde
3357b475f7 components/bt: Fix AVRC metadata length error 2019-11-29 16:00:30 +08:00
Xia Xiaotian
9130b255f5 Coexist: fix some coexist bugs
1. Fix high beacon and broadcast packets loss ratio of WiFi to make
   MDNS test pass.
2. Improve stability of WiFi performance with a little
   sacrifice of throughput.
3. Improve BLE advertising and connection performance with dynamic
   priority. It sacrifices a little WiFi throughput, but achieves balance
   between WiFi and Bluetooth.
2019-11-28 11:29:45 +00:00
weitianhua
2a13317e44 component_bt/:bugfix_hfp_client_indication_define_and_cnum_error 2019-11-27 17:06:18 +08:00
weitianhua
e3b5a38cf6 component_bt/: fix pointer type in fixed_queue 2019-11-27 16:17:16 +08:00
baohongde
63feac091d components/bt: Disable some unsupported security mask 2019-11-17 13:54:17 +08:00
Angus Gratton
da8103bb59 bt: Include DMA reserved pool when allocating internal-only memory
Fix for root cause of https://github.com/espressif/esp-idf/issues/3592
2019-11-08 11:38:29 +08:00
Jiang Jiang Jian
b8243b5fbe Merge branch 'bugfix/btdm_disable_bt_gatt_v3.2' into 'release/v3.2'
components/bt: Disable BR/EDR GATT

See merge request espressif/esp-idf!6508
2019-11-01 13:58:40 +08:00
baohongde
840a011c01 components/bt: Fix assert when deinit A2DP while playing music 2019-10-29 20:11:26 +08:00
baohongde
56afe0fdca components/bt: Disable BR/EDR GATT 2019-10-28 11:36:52 +08:00
wangmengyang
360b966938 bugfix that call of esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_SUSPEND) will not get an ACK from callback on A2DP sink 2019-10-21 13:19:41 +00:00
Jiang Jiang Jian
0b4faeb781 Merge branch 'bugfix/btdm_backports_v3.2_0903' into 'release/v3.2'
Bugfix/btdm backports v3.2 0903

See merge request espressif/esp-idf!5987
2019-10-11 18:34:31 +08:00
Prasad Alatkar
cf26a8b0f0 BT/Bluedroid : Add support to set min encryption key requirement (Backport v3.2)
- Backport(v3.2) of IDF MR!6122
- 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-10-09 16:19:48 +08:00
baohongde
ca824d0ddf components/bt: backports release/v3.2 0903
Remove xtensa/xruntime.h
Fix sending Lmp_feature_req_ext in a loop
Fix 2 bugs in r_ld_fm_sket_isr
fix data loss and send same pkt twice sometimes
fix adv data error in air sometimes
fix adv start/stop crash sometimes
2019-09-23 17:53:29 +08:00
wangmengyang
fae3bad007 components/bt: set the minimum encryption key size to be 7 octects for BR/EDR link for preventing KNOB attack.
This patch is to address the CVE-2019-9506 vulnerability.
2019-08-23 08:30:23 +08:00
baohongde
dc1db1c4e7 components/bt: Backport 3 bugfixs into release v3.2
1. Bugfix btdm sleep twice after wakeup request
2. Fix connect fail duo to loop of send extended feature request
3. Clear BT/BLE interrupts after controller_disable to overwrite the default non-zero value of intcntl registers
2019-08-09 03:04:40 +00:00
baohongde
151638fdbb components/bt: Fix memory leak about rfcomm 2019-07-25 17:10:52 +08:00
zhiweijian
2821e99bcc component/bt: fix rxwinsz assert in ble and wifi coex 2019-07-04 21:17:51 +08:00
Jiang Jiang Jian
cbec031c91 Merge branch 'bugfix/btdm_backport_2_bugs_v3.2' into 'release/v3.2'
Bugfix/btdm backport 2 bugs v3.2

See merge request idf/esp-idf!5269
2019-07-02 17:33:53 +08:00
zhiweijian
eaf8cfbf8d component/bt: fix unpack hci enhance connection complete event error 2019-06-24 03:23:31 +00:00
baohongde
e7f57fef55 component/bt: Allow configuration of default SCO_DATA_PATH in bluetooth controller 2019-06-17 14:12:09 +08:00
baohongde
284362d62d add missing source files to CMakeLists for HFP 2019-06-17 14:06:33 +08:00
wangmengyang
29b009d6fd component/bt: fix some performance issues in A2DP source data flow control
1. modify the limit of frames to send to avoid dropping packet on A2DP source due to TX data queue overflow
2. reduce the A2DP source data queue size in order to achieve faster control respnonse
2019-06-17 14:06:19 +08:00
baohongde
267ce80355 components/bt: Fix assert due to alloc LMP TX buffer failed 2019-06-12 19:25:59 +08:00
Jiang Jiang Jian
193b8e93a8 Merge branch 'bugfix/btdm_abort_if_deinit_spp_without_init_v3.2' into 'release/v3.2'
components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init

See merge request idf/esp-idf!4862
2019-04-26 21:01:35 +08:00
Jiang Jiang Jian
0c13ae6b45 Merge branch 'feature/btdm_add_ble_link_timeout_config_v3.2' into 'release/v3.2'
Component/bt: add ble link timeout config in menuconfig(backport v3.2)

See merge request idf/esp-idf!4826
2019-04-25 20:05:19 +08:00
baohongde
f95826144e components/bt: Fix abort if call esp_spp_deinit without calling esp_spp_init 2019-04-24 11:34:06 +08:00
zhiweijian
96c8343e46 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:55:06 +08:00
XiaXiaotian
5059c7fac3 Decouple WiFi and BT with coexist to reduce bin size
1. Do not link WiFi code when only BT or BLE is used and WiFi is not
used.

2. Do not link coexist code when CONFIG_SW_COEXIST_ENABLE is disabled.
2019-04-17 16:59:24 +08:00