xiongweichao
24e47c1def
Fix rtc watchdog timeout when waking up light sleep because some functions are not in IRAM
2022-07-05 11:16:19 +08:00
xiongweichao
222a3da891
Bluetooth build fail when power management is enabled
...
Closes https://github.com/espressif/esp-idf/issues/9081
2022-06-06 20:16:53 +08:00
Karl Wang
cd43531831
components/bt: disable Bluetooth PLL track function for ESP32-C3/ESP32-S3 as it introduced coexistence issuescomponents/bt: disable Bluetooth PLL track function for ESP32-C3 as it introduced coexistence issues
2022-05-17 20:58:31 +08:00
xiongweichao
d6f857a2f0
Fix ESP32C3 build error after enable light sleep
2022-05-05 10:50:33 +08:00
xiewenxiang
9b0e8266c8
Update esp c3 phy lib (aa05aec)
2022-04-21 11:08:30 +08:00
baohongde
99adcfbda0
components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller
2022-03-11 10:48:21 +00:00
baohongde
4b0c1d6f71
Fix bt init error with psram
2022-03-11 10:48:21 +00:00
baohongde
2f8b58d88f
components/bt: Combine 3 Bluetooth controller menu
2022-03-11 10:48:21 +00:00
baohongde
6f86e1bb63
components/bt: Fix link error of Kconfig
2022-03-11 10:48:21 +00:00
“YangZhao”
c399f5d1e7
Update ESP32-C3 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-08 01:45:06 +00:00
xiongweichao
e98d72ee76
Fix crash when host exit sniff mode
2022-03-03 16:20:13 +08:00
xiewenxiang
2d65703547
components/bt: Fix ble adv_underrun issue
...
components/bt: Fix LLCP collision for channel map update
2022-02-16 00:37:38 +08:00
jincheng
53f20589a4
fix cs event for rd_rem_ext_feats delayed issue
2022-01-24 10:31:27 +08:00
xiewenxiang
aaeecdf0e7
component/bt: Support set HW CCA threshold value
2021-12-29 15:40:26 +08:00
Yang Zhao
65edf90e93
Update esp32c3 phy lib and bb lib
...
Fix the ble task watchdog timeout issue caused by phy enable when exit modem sleep.
2021-12-23 20:30:12 +08:00
wangmengyang
3f63a4caee
component/bt: fixed coexistence scannable extended adv performance issue
2021-12-21 12:55:13 +08:00
Jiang Jiang Jian
0c77b89e13
Merge branch 'feature/add_coex_hci_command_v4.3' into 'release/v4.3'
...
Add hci command to set coexistence status (4.3)
See merge request espressif/esp-idf!16054
2021-11-25 08:02:14 +00:00
xiewenxiang
1fbf3bcfef
component/bt: fix crash when shutdown bt
2021-11-23 20:01:16 +08:00
Jiang Jiang Jian
b57fff983f
Merge branch 'bugfix/fix_memory_leak_controller_deinit_v4.3' into 'release/v4.3'
...
ESP32: Fix memory leak in controller deinit function v4.3
See merge request espressif/esp-idf!15969
2021-11-23 06:19:52 +00:00
xiongweichao
8a9ca26d61
Add hci command to set coexistence status
2021-11-23 11:40:17 +08:00
Yang Zhao
5a7ae2d8c8
1.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.
2.fix HCI_Read_Clock error
3.fix HCI_Create_Connection_Cancel error
4.fix ASSERT_WARN during epr
2021-11-19 16:50:30 +08:00
Rahul Tank
0f96ebce13
ESP32: Fix memory leak in controller deinit function
...
Added change to dealloc s_pm_lock in controller deinit as it gets allocated
during init procedure.
Closes https://github.com/espressif/esp-idf/issues/7653
2021-11-16 10:43:38 +05:30
xiongweichao
25a7cdcbd3
Remove assert when inq done
...
Closes https://github.com/espressif/esp-idf/issues/6759
2021-10-27 11:34:51 +08:00
Yang Zhao
521c0ef956
1.Fix the ble scan failed issue, this may happen in coexit environment
...
2.Fix connection failed with LG 5.0 phone
3.Check only for same X component of public key in BR/EDR
2021-10-21 10:45:25 +08:00
baohongde
0e18b8b4cb
components/bt: Sync bt lib with the high level interrupt version
2021-09-23 16:58:37 +08:00
xiewenxiang
371e1bb4c9
component/bt: Fixed default LE Event Mask(release v4.3)
2021-09-17 17:53:02 +08:00
Wang Meng Yang
de48a67083
Merge branch 'bugfix/btdm_ble_connection_will_crash_durning_erase_flash_v4.3' into 'release/v4.3'
...
[BLE] Fixed ble conn will crash during erasing flash(backport v4.3)
See merge request espressif/esp-idf!14795
2021-09-13 01:50:09 +00:00
xiongweichao
dc13a3d161
Fix that when EXT CRYS is configured but not detected, light sleep is still allowed to be used
2021-08-17 17:18:33 +08:00
xiewenxiang
82f094669a
component/bt: Fixed ble conn will crash durning erase flash
2021-08-13 18:08:22 +08:00
Yang Zhao
edcb5942ba
The controller may miss the sleep time caculated before. So it will stuck
...
in the loop to get the deep sleep HW flag. Then the watchdog issue happen.
2021-08-11 14:07:00 +08:00
Yang Zhao
658aaa4f93
This is to fix the hardware bug. The device may report scan event timeout
...
when scaning.If check this error,then reset the rwble core.
2021-07-20 20:02:14 +08:00
xiongweichao
bc3f0c7cdd
Add remove sniff when peer not accepted sniff mode
2021-07-16 17:55:10 +08:00
Chinmay Chhajed
ee8a78025c
bt/controller: Fix for BLE ACL tx flush issue during reset.
2021-07-16 17:54:27 +08:00
Wang Meng Yang
95ddb84df1
Merge branch 'bugfix/fix_c3_some_bugs_06_15_v4.3' into 'release/v4.3'
...
Bugfix/fix c3 some bugs 06 15 v4.3
See merge request espressif/esp-idf!14017
2021-06-28 00:00:06 +00:00
Wang Meng Yang
3844f6bb84
Merge branch 'bugfix/ble_start_scan_crash_issue_mr_4.3' into 'release/v4.3'
...
ble start scan crash issue
See merge request espressif/esp-idf!14081
2021-06-25 11:25:36 +00:00
zwj
4d3715c836
support hw recorrect
2021-06-25 15:32:50 +08:00
wangmengyang
ffe43f2c45
component/bt: fixed the assert in checking hardware sleep state during wake-up
...
The hardware sleep state change can take some time after wake-up interrupt. Use busy waiting instead of directly assert
2021-06-24 08:28:24 +08:00
wangmengyang
4657069afd
components/bt: Disable CS-RXDONEMSK to avoid RX interrupt flooding during scan event in Wi-Fi coexistence scenario
2021-06-23 19:14:41 +08:00
sushant.chougule
e6115da7e9
bt/component: Fix MIC error issue during start_encryption procedure in esp32c3 ble controller
2021-06-22 17:17:29 +08:00
“YangZhao”
fe9ecf2f7a
If the scan window set as 4 slots and the scan interval set as 5 slots
...
,then the device will crash when starting scanning.This commit is to fix
this bug.
2021-06-21 21:56:03 +08:00
wangmengyang
ef6910467c
components/bt: fixed performance issue for extended active scan in coexistence scenario: use the same priority for Rx of AUX_ADV_IND and AUX_SCAN_RSP
2021-06-17 19:34:03 +08:00
liaowenhao
7e4f7867f0
bugfix/fix crash when lmp flooding
2021-06-02 15:31:33 +08:00
baohongde
f0679fe175
components/bt: Delete BLE ADV priority high
2021-06-01 16:19:24 +00:00
Chinmay Chhajed
b7ab286edf
bt controller: Fixed handling for invalid feature page.
2021-06-01 16:19:24 +00:00
wangmengyang
9c872b1851
components/bt: fixed bugs in Bluetooth Controller and Baseband
...
1. Removed the interrupt lock operation during controller enable/disable/reset, to avoid trigger interrupt watchdog time-out due to use of mutex/semaphore in coex_st_set
2: Update libbtbb.a for ESP32-C3 to fix the Rx performance issue for CODED PHY, especially in coexistence scenario
2021-04-29 03:58:29 +00:00
zwj
5e9aa539ea
fix c3 ble disconnect due to connection parameters update
2021-04-23 20:39:40 +08:00
wangmengyang
cdcb85fd70
component/bt: add another bt-lib submodule and refactor the directories
...
# Conflicts:
# .gitmodules
# components/bt/component.mk
2021-04-22 07:46:55 +08:00
wangmengyang
257047c073
remove original esp32-bt-lib submodule
2021-04-21 20:40:35 +08:00
“YangZhao”
e45ce5c058
bugfix: Fix the issue that the controller do not report the timeout
...
disconnect event. This issue is caused by modem sleep.The sleep interrupt
will come the second time before the CLKN interrupt. If we disable the sleep
interrupt when it comes in the first time, the CLKN will never come.
2021-04-21 15:02:40 +08:00
zwj
2a7df3bcd8
optimize C3 multi-connection
2021-04-20 02:53:07 +00:00
xiongweichao
e16ec9a574
modify E8192 ELx200 ELx40 log level to LOGD
2021-04-14 19:33:03 +08:00
Jiang Jiang Jian
413bbe4de4
Merge branch 'bugfix/btdm_incorrectly_spelled_v4.3' into 'release/v4.3'
...
component/bt: fix Spelling mistakes(release v4.3)
See merge request espressif/esp-idf!12815
2021-03-29 05:07:57 +00:00
baohongde
72b27f1782
components/bt: Synchronize multiple branch of bt lib
2021-03-25 15:58:42 +08:00
baohongde
8e482c9423
components/bt: Fix assert without sw coexist enabled
2021-03-25 15:58:42 +08:00
baohongde
1fb45977fa
component/coex: Decouple Wi-Fi and bluetooth with coexist to reduce binary file size
2021-03-25 15:58:42 +08:00
“YangZhao”
257728feab
Fix the bug of modem sleep which may lead to the crash issue "assert(-218959118,0)"
2021-03-25 15:58:22 +08:00
wangmengyang
67402f035f
component/bt: [ESP32S3] fix missing IRAM_ATTR for function in libbtdm_app.a
2021-03-24 03:38:56 +00:00
wangmengyang
7dd5568cb7
fixed incorrect Tx power mappings for ESP32C3 chip
2021-03-24 03:38:56 +00:00
XieWenxiang
dba5597edf
component/bt: Modify some ambiguous descriptions(release v4.3)
2021-03-23 23:02:18 +08:00
Chinmay Chhajed
d01efe4b8c
Fix for C2H flow control param check when only BLE mode is configured.
2021-03-11 12:04:01 +08:00
baohongde
e6ace495b4
Fix issues during light sleep and DFS
2021-03-10 14:14:49 +08:00
baohongde
b449909b35
Fix controller task watchdog in Wi-Fi test
2021-03-10 14:14:29 +08:00
gengyuchao
0253d825e9
Fix IRAM_ATTR missing
2021-03-10 14:14:04 +08:00
baohongde
1e77586120
components/bt: Fix crash in Bluetooth when esp_restart
2021-03-05 20:19:18 +08:00
Chinmay Chhajed
368ba6b077
component/bt: Added check for NULL valued combination key.
2021-02-09 12:09:32 +05:30
Chinmay Chhajed
5596f37af1
bt: removed esp_bt_get_mac()
...
There was no need for this function as there is already a way present to
fetch own mac address. Own mac addr can be fetched by calling
controller_get_interface().
2021-02-09 12:09:15 +05:30
wangmengyang
44dd496bea
update esp32c3 btbb lib 21-02-08 and set coexist state when in scan(initiating) mode
2021-02-08 21:19:59 +08:00
wangmengyang
2dd730d35c
component/bt: [esp32c3] modify Bluetooth coexistence options
2021-02-05 09:16:29 +00:00
baohongde
eef66789d4
Mac BB power down in light sleep
...
components/bt: Do not use feature: timer support isr dispatch method
disable controller after wake up finished.
protect critical section of power down
choose clk in sleep
components/coex: mac bb power down in light sleep
components/coex: Macro changed
components/os: protect reserved interrupt number
update phy to phy_version 300,6e46ba7,Jan 25 2021
some bugfix
2021-01-28 22:28:04 +08:00
wangmengyang
ee480b7776
Refactor Bluetooth init/deinit mechanism
...
free osi_funcs struct memory duiring failure of controller_init when necessary
components/bt: use s_lp_stat.phy_enabled to control the on/off of phy module
clean up style for controller_disable
clean up some empty functions and unnecessary comments
Added async wakeup src "BTDM_ASYNC_WAKEUP_SRC_TMR"
remove use of assert in controller_init, set error code upon some exceptions
move stop esp_timer early to phase0, add state variable wakeup_timer_started
2021-01-28 19:27:17 +08:00
wangmengyang
06ea8a3028
remove use of macro "CONFIG_SPIRAM_USE_MALLOC"
2021-01-28 19:25:03 +08:00
wangmengyang
086b36d737
Refactor Bluetooth sleep mechanism
...
Refactor bluetooth hardware PowerUp/PowerDown functions
component/bt: fix use of a deprecated MACRO "CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE"
component/bt: fix sleep wakeup in controller disable procedure
remove use of s_pm_lock_sem
1. Modified the waking up approach from async to sync: post a message to controller task upon vhci downstream packets or controller disable, and in response, controller task goes through the wake-up procedure
2. Added Controller status check for the esp_vhci APIs
3. Adjust the procedure during controller_init, check the validity of arguments first
Some minor modifications for bluetooth sleep control and configuration
1. use variable flag s_btdm_allow_light_sleep to control the use of s_light_sleep_pm_lock
2. use variable btdm_lpclk_sel to choose bluetooth sleep clock, support only for external 32kHz crystal temporarily
component/bt: improve async_wakeup function
1. check power state first and then decide if wakeup needs to be performed
2. change the meaning of the return value, if wakeup request is posted to controller task, then return true, otherwise return false
put sleep control logics in controller init/deinit/enable/disable together
Use s_lp_cntl struct: replace bool-typed variable sleep_backup_en with s_lp_cntl.mac_bb_pd
Use s_lp_cntl struct: replace bool-typed variable s_btdm_allow_light_sleep with s_lp_cntl.no_light_sleep
Use s_lp_cntl struct: replace global variable btdm_lpclk_sel with s_lp_cntl.lpclk_sel
create semaphore s_wakeup_req_sem only when low power mode is required
Use s_lp_cntl struct: use s_lp_cntl.wakeup_timer_required to control the wakeup timer
use s_lp_stat to replace original state variable sleep_backup_done and s_pm_lock_acquired
one minor change for mac_bb_pd settings init: return error status if memeory allocation failed
2021-01-28 19:23:09 +08:00
wangmengyang
9742aa6f05
component/bt: handle sleep wakeup event in the context of controller task instead of timer task
2021-01-28 16:04:21 +08:00
wangmengyang
51be1af028
add coexist hook functions and fix bugs for coexistence
2021-01-27 06:37:04 +00:00
zwj
ea42d8e043
fix bluedroid deinit crash
2021-01-15 21:08:14 +08:00
zwj
7c1c669799
component/bt: add BLE v5.0 feature for bluedroid host
2021-01-15 17:55:12 +08:00
Island
1e73d90c29
Merge branch 'bugfix/bluedroid_avoid_same_bdaddr_conn' into 'master'
...
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.
See merge request espressif/esp-idf!11806
2021-01-14 14:47:21 +08:00
Chinmay Chhajed
e016b6b79b
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.
2021-01-05 14:54:15 +05:30
baohongde
3b0fc48ab4
components/bt: Shutdown Bluetooth before esp_restart.
2020-12-21 20:08:10 +08:00
gengyuchao
247484c454
bugfix: clear the timer after remote reject when respond the parameters update
2020-12-17 22:19:44 +08:00
wangcheng
386a8e37f1
components/bt:fix exl200, add btdm_disable_adv_delay, fix RPA addr update error.
2020-12-17 10:57:54 +08:00
Wei Tian Hua
6b7c878581
Free ACL RX Buf in EM when disconnection
2020-12-16 18:02:39 +08:00
weitianhua
56f0978caa
Add protection for interval_min when it comes to zero
2020-11-19 11:05:40 +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
weitianhua
ed2654bdf3
Remove dummy assert when receive passkey requst
2020-11-10 15:58:24 +08:00
gengyuchao
5aecf71021
Fix two bugs:
...
1.Fix supervision timeout in LLC DISC busy statue can not disconnect issue.
2.Solve the problem that the ble terminate ack packet may lose with a high probability in coex mode.
2020-11-10 03:02:57 +00:00
wangcheng
e5af56db41
components/bt: fix hci timeout, add timer to monitor scan evt.
2020-11-06 14:04:17 +08:00
weitianhua
1de3b17192
Fix BT controller dead issue caused by clk overflow
2020-10-29 10:49:30 +08:00
wangcheng
6d7c9907c3
components/bt: fixed memory damage caused by bluetooth memory release
2020-10-28 06:59:03 +00:00
wangcheng
8cf0c1c3b8
components/bt: fix assert(10, 9), when the AFPM happens
2020-10-28 06:59:03 +00:00
wangcheng
94fae76de1
components/bt: fixed tx_prog insert error
2020-10-21 20:22:17 +08:00
baohongde
3b82670a50
components/bt: Fix waking up fail while sleeping
2020-10-14 20:20:57 +08:00
baohongde
3f97f1d67a
components/bt: Make sleep avaliable in hli(for future use)
2020-10-13 19:45:03 +08:00
wangcheng
49a52cda6e
components/bt: btdm fix cache disable crash
2020-10-11 15:14:34 +08:00
baohongde
628655b6be
components/coex: Some bugfix about ble dynamic prio
...
Rewrite ble dynamic prio to fix ble disconn in conn_param_update/channel_map_update
Rewrite ble dynamic prio in connection establishment
Fix ble dynamic prio with latency
Fix status bit set error when conn fail
2020-09-29 21:08:13 +08:00
wangcheng
8ddbadafe7
component/bt: Insert the llcp packet to the top of the tx_preg linked list.
2020-09-25 18:27:10 +08:00
Xia Xiaotian
bdbe74693f
esp_wifi: refactor wifi code in order to adapter to new chips
2020-09-24 10:15:50 +08:00
Xia Xiaotian
2e0c60461c
esp_wifi: refactor PHY access
...
- Simplify PHY access API
- Move coexist initializing and deinitializing out from PHY API
to Wi-Fi and Bluetooth
- Remove coexist pause and resume for they are no longer needed.
2020-09-22 15:00:05 +08:00
weitianhua
c598b816ba
Confirmed bugfix from Baidu project
2020-09-15 19:36:20 +08:00
weitianhua
9b57366908
Change PCM config to the right position
2020-09-01 16:05:01 +08:00