Commit Graph

2312 Commits

Author SHA1 Message Date
Rahul Tank
f376bb5d05 Add support in Nimble for ESP32H2 2022-03-14 11:57:53 +05:30
Wang Meng Yang
8b5ad2ab4f Merge branch 'bugfix/upd_nimble_warnings' into 'master'
nimble: update because of warnings

See merge request espressif/esp-idf!17354
2022-03-11 17:01:07 +08:00
Wang Meng Yang
c412cb15ac Merge branch 'feature/update_hfp_hf_version' into 'master'
component_bt:  Update HFP_HF version to 1.7.2

Closes BT-2082

See merge request espressif/esp-idf!16950
2022-03-10 20:17:06 +08:00
Marius Vikhammer
934a3951b8 Merge branch 'feature/s2_s3_support_ext_mem_stack' into 'master'
soc: support placing task stacks in external memory for S2 and S3

Closes IDF-2797 and IDF-1805

See merge request espressif/esp-idf!16186
2022-03-09 11:57:31 +08:00
Zim Kalinowski
0440aca4e3 Merge branch 'feature/reevaluate_headers_include_dirs' into 'master'
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories

See merge request espressif/esp-idf!16763
2022-03-08 01:32:24 +08:00
Sudeep Mohanty
a9fda54d39 esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
wangjialiang
089637cfa3 ble_mesh: stack: Bugfix the proxy client abnormal disconnection 2022-03-05 11:14:28 +00:00
wangjialiang
c49b5b2409 ble_mesh: stack: Add proxy server connect and disconnect event 2022-03-05 11:14:28 +00:00
xiongweichao
7ee85858b4 Update HFP_HF version to 1.7.2 2022-03-04 11:52:12 +00:00
Marius Vikhammer
36ef485c4e soc: support placing task stacks in external memory for S2 and S3 2022-03-04 15:25:52 +08:00
Anton Maklakov
924178d407 nimble: update because of warnings 2022-03-04 10:00:54 +07:00
Yang Zhao
000f398ab9 Update ESP32-C3 and ESP32-S3 bt lib and phy lib
Add the pll track feature to keep the ble connection stable when the environment
temprature increase form 0 to 74.
2022-03-03 07:39:22 +00:00
Mahavir Jain
035d7df1a0 Merge branch 'feature/mbedtls-3.1' into 'master'
Update to mbedtls-3.1

Closes IDF-3723

See merge request espressif/esp-idf!16656
2022-03-03 11:27:48 +08:00
Wang Meng Yang
cdc00140d0 Merge branch 'bugfix/a2dp_sniff_master' into 'master'
Fix crash when host exit sniff mode

Closes BT-1802

See merge request espressif/esp-idf!14434
2022-03-03 11:26:05 +08:00
Aditya Patwardhan
740f1afe20 Update nimble submodule 2022-03-03 01:37:10 +05:30
Aditya Patwardhan
45122533e0 mbedtls-3 update:
1) Fix build issue in mbedtls
2) skip the public headers check in IDF
3)Update Kconfig Macros
4)Remove deprecated config options
5) Update the sha API according to new nomenclature
6) Update mbedtls_rsa_init usage
7) Include mbedtls/build_info.h instead of mbedtls/config.h
8) Dont include check_config.h
9) Add additional error message in esp_blufi_api.h
2022-03-03 01:37:10 +05:30
xiongweichao
3fe222d17b Fix crash when host exit sniff mode 2022-03-02 03:56:52 +00:00
Marius Vikhammer
bb88338118 system: move kconfig options out of target component
Moved the following kconfig options out of the target component:
 * ESP32_X_BROWNOUT_* -> esp_system
 * ESP32_X_DEBUG_OCDAWARE -> esp_system
 * APP_NO_BLOBS -> build type (main kconfig)
2022-03-02 01:22:26 +00:00
Rahul Tank
3387d816e2 Nimble: Check stack initialization status before executing stack command
Previous commit added checks in some functions that can be called
    without stack initalization. Corrected such instances.
2022-02-18 11:47:48 +05:30
xiewenxiang
dd9e2f4ac6 components/bt: Fix ble adv_underrun issue
components/bt: Fix LLCP collision for channel map update
2022-02-16 16:35:00 +08:00
Darian Leung
57fd78f5ba freertos: Remove legacy data types
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
morris
ef00bd59dc esp_rom: extract int matrix route and cpu ticks getter 2022-02-09 13:52:20 +08:00
xiewenxiang
8ecc8cf40a component/bt: check the ble ext adv parameters 2022-02-07 16:10:50 +08:00
Anton Maklakov
7cdd151612 Merge branch 'bugfix/nocommon' into 'master'
enable and fix warnings on common symbols

Closes IDFGH-3055 and IDF-3013

See merge request espressif/esp-idf!16802
2022-01-28 14:39:51 +00:00
Anton Maklakov
85462d17a5 components/bt: move deinit_semaphore definition to source file 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
67c52657cf bluedroid: mark dequant_long_* as extern variables 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
20286b37b2 blufi: remove duplicate definition of blufi_env
Keeping the single definition in blufi_prf.c
2022-01-27 11:00:09 +07:00
Jakob Hasse
1d4061d3f2 refactor (nvs_flash)!: removed mbedtls as default dependency
mbedtls is only required in NVS if NVS encryption is enabled.
Hence the mbedtls dependency is now only added if encryption
is enabled, otherwise it is not added.

BREAKING CHANGE: Removed mbedtls as default dependency
2022-01-26 17:32:23 +08:00
Kevin (Lao Kaiyao)
bf8d4d55d0 Merge branch 'refactor/rename_esp8684_to_esp32c2' into 'master'
esp8684: rename esp8684 to esp32c2

Closes IDF-4530

See merge request espressif/esp-idf!16745
2022-01-19 09:08:58 +00:00
laokaiyao
cf049e15ed esp8684: rename target to esp32c2 2022-01-19 11:08:57 +08:00
wangmengyang
941165e380 components/bt: fix the definition of "le_scan_duplicate_option" to avoid defining common symbols 2022-01-17 10:46:00 +08:00
Wang Meng Yang
df1f9ec26e Merge branch 'bugfix/a2dp_source_congest' into 'master'
component_bt: Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink

Closes IDFGH-6485

See merge request espressif/esp-idf!16537
2022-01-10 03:00:05 +00:00
xiongweichao
6d86b07546 fixed config parse crash after flash_erase
Closes https://github.com/espressif/esp-idf/issues/6170
2022-01-06 20:17:43 +08:00
xiongweichao
83b9320d2e btc_a2dp_control_set_datachnl_stat is only used by a2dp sink 2022-01-06 14:10:18 +08:00
xiongweichao
688700f33b remove btc_a2dp_dispatch_datapath_evt and event 2022-01-06 14:02:03 +08:00
xiongweichao
c5af97759f Fixed the crash caused by calling esp_a2d_media_ctrl(ESP_A2D_MEDIA_CTRL_START) after stream started 2022-01-06 14:02:03 +08:00
xiongweichao
061ae4c07a Fixed a2dp source audio data packet congestion causing choppy audio in a2dp sink 2022-01-06 14:02:03 +08:00
jincheng
6a9afa65a2 fix cs event for rd_rem_ext_feats delayed issue 2022-01-05 14:48:04 +08:00
Wang Meng Yang
7e39aa61fa Merge branch 'bugfix/fix_null_pointer_deference_issue_master_mr' into 'master'
Fix the null pointer deference issue via Reconnection Spamming

See merge request espressif/esp-idf!16502
2022-01-04 04:06:27 +00:00
“YangZhao”
8d48a56249 There is an issue that if the the btm_cb.p_sec_dev_rec_list is full,but at the same
time we can't find old device to be replaced,then this can cause crash. So we need
to change the way to malloc the new device or replace the old in the list.
2021-12-30 15:50:07 +08:00
xiewenxiang
50748009e4 components/bt: Fix bluedroid compile issue 2021-12-30 11:54:47 +08:00
Wang Meng Yang
bc1a679052 Merge branch 'doc/update_document_of_demo_bt_discovery' into 'master'
Doc/update document of demo bt discovery

Closes BT-2133

See merge request espressif/esp-idf!16265
2021-12-29 06:07:19 +00:00
xiewenxiang
54298708fe component/bt: Support set HW CCA threshold value 2021-12-28 18:15:18 +08:00
xiewenxiang
04328cf384 component/bt: fix periodic adv parameters detection issue 2021-12-28 11:29:41 +08:00
Li Qi Gan
c3c37b95e7 Merge branch 'bugfix/fix_spp_open_err_bda' into 'master'
Component_bt/Fix SPP acceptor open with wrong remote address

Closes BT-2205

See merge request espressif/esp-idf!16503
2021-12-23 12:29:31 +00:00
liqigan
cccd22a080 fix SPP open with wrong remote bd_addr 2021-12-22 17:04:58 +08:00
liqigan
66e88fbdbe clear old event bits when malloc a slot 2021-12-22 16:44:51 +08:00
wangmengyang
219bffce9f component/bt: fixed coexistence scannable extended adv performance issue 2021-12-22 10:55:33 +08:00
baohongde
d4aeef6ced components/bt: Update the document of demo bt discovery 2021-12-21 10:54:54 +08:00
Wang Mengyang
5e95537f9c component/bt/host/nimble: fixed memory leak due to timer not destroyed during NimBLE host start-stop 2021-12-20 15:49:14 +08:00
Chinmay Chhajed
5ddce053ea Merge branch 'bugfix/bt_enc_proc_finish' into 'master'
bt/bugfix: ACL Rx data is sent to host before enc change event

See merge request espressif/esp-idf!16346
2021-12-15 12:07:59 +00:00
Wang Meng Yang
7e2a9feb27 Merge branch 'bugfix/fix_blufi_encryption_fail' into 'master'
components/bt: fix blufi encryption fail

See merge request espressif/esp-idf!16313
2021-12-14 03:17:03 +00:00
xiewenxiang
0030fba89c components/bt: Fix high duty cycle directed advertising will not be stopped when timeout 2021-12-13 20:10:21 +08:00
xiewenxiang
132875a6eb components/bt: Support low duty cycle directed advertising 2021-12-13 17:07:23 +08:00
Chinmay Chhajed
556cd73a7e bt/bugfix: ACL Rx data is sent to host before enc change event 2021-12-09 15:23:50 +08:00
xiewenxiang
9006d20355 components/bt: fix blufi encryption fail 2021-12-09 10:40:01 +08:00
baohongde
c138e47f45 components/bt: Update licenses 2021-12-08 10:59:06 +08:00
Sudeep Mohanty
40c1f3e06e freertos: update module handles to struct type
This commit updates the handles for the timer, task and event_group
modules to struct type. This matches upstream freertos source.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-12-06 08:37:06 +05:30
Sudeep Mohanty
88aa3e78c3 NimBLE: Invoke xTimerGetExpiryTime in npl porting layer only when freertos timer is used
This commit adds an esp timer guard check to call in the function
npl_freertos_callout_remaining_ticks() to enable fetching remaning ticks
when esp timer is enabled.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-12-03 15:57:19 +05:30
liqigan
aa6f86fbc5 fix SPP server bugs when the BTC layer can not allocate a slot for the listen port 2021-12-01 14:59:14 +08:00
Wang Meng Yang
fe289ec670 Merge branch 'bugfix/fix_can_not_find_mac_addr_error_mr' into 'master'
fix can not find mac addr error

Closes BT-2032

See merge request espressif/esp-idf!16143
2021-12-01 02:53:34 +00:00
Yang Zhao
4b7a71673e Add the feature that switch random address to origin mac addr in the ADV
report data.
2021-11-30 14:14:42 +08:00
Cao Sen Miao
eddc196081 esp_clk: refactor target/clk.h to private/esp_clk.h 2021-11-26 14:56:30 +08:00
xiewenxiang
6d35819d16 component/bt: fix assert fail when interrupt hlevel disable 2021-11-24 20:10:00 +08:00
Wang Meng Yang
c788274658 Merge branch 'feature/add_coex_hci_command_master' into 'master'
Add hci command to set coexistence status

Closes BT-1886

See merge request espressif/esp-idf!14830
2021-11-23 03:08:50 +00:00
Wang Meng Yang
ee5192960c Merge branch 'bugfix/fix_static_check_error_mr' into 'master'
Fix the high-impact issues from the code analysis report from customer.

Closes BT-2079

See merge request espressif/esp-idf!15976
2021-11-23 03:07:05 +00:00
xiongweichao
c80ac536d7 Add hci command to set coexistence status 2021-11-22 19:57:01 +08:00
“YangZhao”
12ec4866b8 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-11-22 17:38:02 +08:00
wangmengyang
8cfffa260b [nimble]: clear timer handler during de-initialization 2021-11-19 15:08:55 +08:00
Wang Meng Yang
2ee3c7b542 Merge branch 'bugfix/wifi_prov_mgr_crash' into 'master'
NimBLE: Fixed wifi_prov_mgr crash after provisioning

See merge request espressif/esp-idf!15793
2021-11-19 02:59:12 +00:00
Wang Meng Yang
83a5823564 Merge branch 'bugfix/fix_device_name_len_limited_mr' into 'master'
Fix the issue of device name len limited

Closes BT-2066

See merge request espressif/esp-idf!15880
2021-11-19 02:36:25 +00:00
Wang Meng Yang
412808909c Merge branch 'bugfix/fix_modem_sleep_hw_error_mr_master' into 'master'
fix modem sleep hw error

See merge request espressif/esp-idf!15824
2021-11-19 02:34:39 +00:00
xiongweichao
ce2d72ddfb Missing break in switch 2021-11-18 19:47:09 +08:00
xiongweichao
5152b33385 Dereference null return value 2021-11-18 19:47:09 +08:00
xiongweichao
1bada6c0f6 already defined in bt_target.h 2021-11-18 19:47:09 +08:00
xiongweichao
752b1976c0 Dereference after null check 2021-11-18 19:47:07 +08:00
xiongweichao
101ad32110 Dereference before null check 2021-11-18 19:38:48 +08:00
xiongweichao
564f9e8f68 Logically dead code 2021-11-18 19:38:48 +08:00
Yang Zhao
3b84612582 Update esp32 bt-lib
It is abnormal when getting the deep sleep state bit. So we need to check
the state again and run the "ble_master_soft_rst()" if neesed.
2021-11-18 15:23:36 +08:00
isha pardikar
e2a37b2712 Merge branch 'bugfix/wifi_prov_mgr_crash' into 'master'
NimBLE: Fixed wifi_prov_mgr crash after provisioning

See merge request espressif/esp-idf!15793
2021-11-17 18:35:40 +05:30
morris
2e008825a9 Merge branch 'feat/rm_makefiles' into 'master'
Build & config: Remove leftover files from the unsupported make build system

Closes IDF-4273 and IDF-2827

See merge request espressif/esp-idf!15829
2021-11-16 03:44:41 +00:00
Wang Meng Yang
6322632a37 Merge branch 'bugfix/add_warning_print_timer' into 'master'
NimBLE: Modified timer not started / running warning print

See merge request espressif/esp-idf!15177
2021-11-15 08:32:47 +00:00
Roland Dobai
766aa57084 Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
Omar Chebib
44df880c12 Merge branch 'feature/move_ipc_to_esp_system' into 'master'
IPC: Move ipc sources to esp_system

Closes IDF-2160

See merge request espressif/esp-idf!15234
2021-11-11 06:57:44 +00:00
Wang Meng Yang
534cd5bb31 Merge branch 'bugfix/fix_custmoer_issues' into 'master'
bugfix/fix_3_controller_issues

Closes ESPCS-721, IDFGH-5407, IDFGH-5712, and IDFGH-6082

See merge request espressif/esp-idf!15821
2021-11-11 03:39:37 +00:00
Jiang Jiang Jian
3a443d523f Merge branch 'bugfix/fix_memory_leak_controller_deinit' into 'master'
ESP32: Fix memory leak in controller deinit function

See merge request espressif/esp-idf!15449
2021-11-11 03:36:18 +00:00
Yang Zhao
66fa67cde6 Fix the issue of device name len limited 2021-11-11 11:35:36 +08:00
Jiang Jiang Jian
c6ad0e4658 Merge branch 'bugfix/power_down_bluetooth_module_when_deinit' into 'master'
component/bt: Power down bluetooth module when deinit

Closes WIFI-4180

See merge request espressif/esp-idf!15716
2021-11-11 03:23:46 +00:00
Omar Chebib
9d5923a13e IPC: Move ipc sources to esp_system
IPC shall be put back into esp_system as it is an 'OS additions'.
2021-11-11 10:30:01 +08:00
Rahul Tank
897926d21c NimBLE: Modified timer not started / running warning print
Current check for valid timer throws a print which can mislead to be a crash. Modified the same

 Closes: https://github.com/espressif/esp-idf/issues/7550
2021-11-10 12:44:39 +05:30
jincheng
74e121af88 fix HCI_Read_Clock error
fix HCI_Create_Connection_Cancel error
fix ASSERT_WARN during epr
2021-11-09 14:37:13 +08:00
baohongde
11656377af components/bt: Fix the issue caused by the power off the bt power domain 2021-11-09 12:03:49 +08:00
morris
16677b0d3c global: make periph enable/disable APIs private
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
Cao Sen Miao
599227a1b6 ESP8684: Add esp8684 target to other repo for passing build 2021-11-06 17:33:45 +08:00
Xie Wen Xiang
579aa4bd90 Merge branch 'bugfix/fix_crash_when_shutdown_bt' into 'master'
component/bt: fix crash when shutdown bt

See merge request espressif/esp-idf!15705
2021-11-05 03:00:09 +00:00
Wang Meng Yang
328450b8c2 Merge branch 'bugfix/fix_ble_prefered_ext_conn_parameter_detection' into 'master'
component/bt: check the ble ext conn parameter

See merge request espressif/esp-idf!15767
2021-11-04 12:23:42 +00:00
Island
417ef24b06 Merge branch 'bugfix/ble_mesh_host_init' into 'master'
ble_mesh: nimble: return error if init host twice

See merge request espressif/esp-idf!13065
2021-11-03 02:25:03 +00:00
lly
a1535faad5 ble_mesh: nimble: return error if init host twice 2021-11-02 20:40:49 +08:00
lly
277a5947ee ble_mesh: stack: Apply the errata E16350 from Bluetooth SIG 2021-11-02 20:39:56 +08:00
xiewenxiang
f0ef891901 component/bt: check the ble ext conn parameter 2021-11-02 14:33:24 +08:00