116 Commits

Author SHA1 Message Date
zwj
06c3f28c44 fix crash when adv and scan coex and optimize duplicate scan(0b600409) 2018-12-17 11:38:41 +08:00
44be6e460e fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222 (8e87ec7) 2018-12-14 17:37:58 +08:00
77bfaacde6 add more modem sleep wake up hooks and provide BT-BB reset functions for modem sleep(c6cbbbd7)
1. split sleep-enter procedure into two phases: Phase 1 for time-critical and Phase 2 for non-time-critical
2. split bluetooth baseband(BT-BB) initialization into two phases:
   Phase 1 shall be done in early stage of bluetooth IP initialization or modem sleep wakeup
   Phase 2 shall be done after PHY/RF is switched on
2018-12-11 15:59:29 +08:00
1b7ad41d25 fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222 (97a362b) 2018-12-06 15:29:42 +08:00
99f0f0e218 fix bugs that interrupt watchdog timeout caused by coex do BB operations (19bd1c0)
1. There's a ver low ratio cause interrupt watchdog in "btdm_bb_isr"
    This commit is to fix this bug.
2018-12-01 18:34:13 +08:00
6d3daa99f5 component/bt: Added the ble full scan supported feature(6582040e). 2018-11-30 19:59:23 +08:00
27ea8fa3f1 fix bug to unsupport rf reg access from hci cmd (d992edb)
Always return 0 when read rf register and do nothing when write rf register
2018-11-24 14:10:35 +08:00
2b5420e791 add update duplicate scan exceptional list(6eb4acf9) 2018-11-23 16:26:20 +08:00
50828eae83 Move function in interrupt into IRAM(51cc51c6)
1. Move function in interrupt into IRAM
2. Delete unused code, saving 240B DRAM and some code size
2018-11-22 15:56:26 +08:00
c555a204f1 Move function in interrupt into IRAM(f7899671) 2018-11-21 13:06:24 +08:00
93c0b8303a add long adv(e0aa539b) 2018-11-20 11:19:02 +08:00
cd196645e2 fix controller disable cause some problem bug (ac67b340)
1. Fix the bug that disable controller suddenly cause crash when ble is working. (585cfba1)
2. Fix the bug that when disable controller, it will cause wifi cannot RX,  TX timeout,  buffer lack and etc. (f8546145)
3. Update dport access as the newest version of IDF. (ac67b340)
2018-11-13 17:28:03 +08:00
zwj
b2c7769cac add vendor hci cmd (4f362c59) 2018-11-09 14:37:21 +08:00
d06596275d components/bt: Put function in isr into iram(1653746d) 2018-11-02 16:33:55 +08:00
16f95952ef components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null (bc0b51f1) 2018-11-01 17:29:54 +08:00
62cabd5b6f bugfix of error when entering sniff mode with attempt large than 0xFF (7c8c9b8e) 2018-10-30 19:14:06 +08:00
c1d636cb6c bugfix of error in computing sniff anchor point which can lead to connection timeout in ACL connection(1d67311f) 2018-10-30 14:25:49 +08:00
d65d35f4e0 reduce IRAM size(2608B) (6a842ec2) 2018-10-29 16:29:26 +08:00
78efc19087 fix bugs cause by coex hw blocking 2nd (b4633da)
1. add more checking about hw
2. fix ble scan performance very low when software coex is enabled,
   especially the scan interval is very large
2018-09-30 17:21:40 +08:00
761b526c13 bugfix that vhci downstream datapath is unblocked too early on waking up from sleep(a348a1e4)
This issue will cause the controller to stuck after sleep interrupt happens and clock interrupt is enabled.

1. Put off the hci transport flow_on action from sleep ISR to the later clock ISR
2. Protect the access of deepslcntl register against race conditions
2018-09-28 10:19:54 +08:00
18363e9395 fix coexist hardware blocking bug (f11ba8b)
fix the bug following:
1. after disable bluetooth controller, wifi cannot TX/RX any packets.
2. add more protection incase bluetooth hardware blocking when software
coexist is working.

feature:
1. add libbtdm_app.a git commit local and remote checking
2018-09-25 20:55:04 +08:00
3f564c30f0 fix crash when test multi_connect(e1a06281) 2018-09-14 11:17:23 +08:00
4c71417a4f add scan duplicate by adv data(e5b37521) 2018-09-07 16:46:46 +08:00
c272133d6d fix security vulnerability(ECC public key check) (46a064b) 2018-08-30 11:38:24 +08:00
17e29e6ed4 fix get acl number incorrect due to memory release (bbdc6a7)
1. after memory release MR merged, due to the get acl number condition is not completed, it will cause get acl number value incorrect
2. It may cause set Security Mode (BR/EDR) enable failed
2018-08-28 15:35:12 +08:00
zwj
a034ac0cdc fix crash when BLE do con and discon stress test (a90a5555) 2018-08-27 10:54:33 +08:00
9b7ad605a0 check LM feature of remote slave device before sending LMP_set_AFH(b2b2ea84) 2018-08-21 19:28:18 +08:00
fb64c036ce decrease memory consumption by conn number (54d2537)
1. support configure BLE connection number to save memory
    2. support configure BR/EDR ACL connection number to save memory
    3. support configure BR/EDR Sync(SCO/eSCO) connection number to save memory
    4. Decrease 1.2k of VHCI tx cache
    5. decrease .bss size about 1.4K
2018-08-07 11:41:53 +08:00
d3c834d661 Fix bug of SPP crash on reset(a9156c15) 2018-08-01 15:38:51 +08:00
36d562f0b3 bugfix for incomplete LMP transaction state after rejecting the sniff request from slave(b9c7f667) 2018-07-31 17:08:52 +08:00
686982e157 bugfix of crash during stopping sco link on supervision timeout(416ad78d) 2018-07-26 14:37:16 +08:00
0a6019ccd3 fix controller deinit bug (69919d3)
1. make controller disable/enable more safe, especially dual-core.
2. before this bugfix, the normal problem is crash or assert in btdm isr
handler
2018-07-17 19:54:28 +08:00
e554aab884 set hci sync data packet status flag according to the settings of erroneous_data_reporting flag(9525061b) 2018-07-09 13:42:35 +08:00
69f3de0011 bugfix of non-filled sco_link_id for LC_SYNC_TX_CFM message(8570be4c)
This bug can cause invalid SCO handle in HCI number_of_completed_packets event
2018-07-05 11:50:44 +08:00
48b2459bcb recalculate BR/EDR coexist duration for improve BR/EDR connect succeed ratio (b86be39) 2018-06-29 16:27:16 +08:00
e0740ac07b handle sigular finetime correction value when waking up from sleep(37949da3) 2018-06-27 18:53:26 +08:00
a92360b323 add 1-slot margin to program the first master Tx event during BLE connection(44d04c1c) 2018-06-26 11:08:47 +08:00
2e3296c0ad fix slave can not receive long packets in smp(00f6998c) 2018-06-22 18:08:41 +08:00
a3070a4a8c component/bt: Fix the bug of when operating the list inside an interrupt function, there is no lock protection(c8f540d6). 2018-06-19 20:59:47 +08:00
e6e6caf877 fix tx power value corresponding to libphy.a (7b64b4e7) 2018-06-04 18:26:33 +08:00
cfd66eb9b7 fix bug assert rwbt.c line 8192(bc70352) 2018-05-24 15:43:25 +08:00
7c55331605 fix scan duplicate(483af972) 2018-05-21 15:22:13 +08:00
16516d7009 add API to configure default SCO data path(e8771475) 2018-05-19 18:21:51 +08:00
700d2bc914 implement bluetooth modem sleep, one for BLE only and another for bluetooth dual mode(7dbe541e)
1. add API and callout functions to set lowe power clock, enable/disable sleep, perform time conversion, check power state, request to wake up, etc.
2. add function hooks when controller exits or enters sleep
3. modify VHCI interface to use blocking mode in sending downstream packets
4. separate two sleep modes using check of sdk configuration
2018-05-18 19:49:12 +08:00
a3e98f8314 fix update con params is rejected in smp(25dea9ed) 2018-05-07 14:45:41 +08:00
34b64038d0 Update the BLE throughput code(a4252a21). 2018-04-27 21:11:57 +08:00
d1e2bce558 add BR/EDR tx power set(fad425d) 2018-04-20 20:57:35 +08:00
74a772d0b8 Add assert when there is no device name(48877dc7) 2018-04-03 19:34:30 +08:00
9a93239bc8 support coex_0.9.0 and fix some bugs (ae44fa3c)
1. support coex v0.9.0
2. make A2DP smooth when coex enabled
3. fix interrupt react slowly cause assert
2018-03-28 14:42:31 +08:00
b76cf6aa30 fix the bug caused by slow interrupt reaction(8c188951)
Some application lock interrupt(portENTER_CRITICAL) too long time,
it will cause bluetooth cannot react interrupt in time, then it will
cause some assert, assert info following:
1. ld_acl.c 1900
2. ld_fm.c 340
3. other assert reference to this.
2018-03-28 12:00:37 +08:00