Skip to content

Commit 51ed317

Browse files
author
ganghe
committed
[int][bug][zbt] Update setting length MACRO defines.
Project: Bluetooth redmine: #5146, REDMINE-id ext-redmine: bug|feat#id [Description in detail] Affected branch: [master] Change-Id: I3e81cdd7f1fb30c4fbaa6c76a2f934b251cd5360
1 parent 66ae521 commit 51ed317

File tree

6 files changed

+254
-40
lines changed

6 files changed

+254
-40
lines changed

zephyr_bt/Kconfig.zbt

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,33 @@ config LIBLC3
1212
default y if ZBT
1313
default n if !ZBT
1414
help
15-
This option enables the Android liblc3 library for Bluetooth LE Audio
15+
This option enables the Android liblc3 library for Bluetooth LE Audio
16+
17+
config BT_HCI_SETUP
18+
bool
19+
help
20+
Enable the HCI vendor-specific Setup function.
21+
22+
This option has to be enabled when the BT Controller requires execution
23+
of the vendor-specific commands sequence to initialize the BT Controller
24+
before the BT Host executes a Reset sequence.
25+
26+
The user should generally avoid changing it via menuconfig or in
27+
configuration files. This option are enabled by the vendor-specific
28+
HCI extension, where the Setup function is implemented.
29+
30+
config BT_HCI_SET_PUBLIC_ADDR
31+
bool
32+
default y if ZBT
33+
default n
34+
select BT_HCI_SETUP
35+
help
36+
Pass the controller's public address to the HCI driver in setup()
37+
38+
This option should be enabled by drivers for controllers that support setting the
39+
public identity through vendor-specific commands. They can then implement the
40+
setup() HCI driver API function and get the address to set from the public_addr field.
41+
42+
From the application side, the public address is set using the first call to
43+
bt_id_create(), before calling bt_enable().
44+

zephyr_bt/common/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ config BT_BUF_CMD_TX_SIZE2
174174

175175
config BT_BUF_CMD_TX_COUNT
176176
int "Number of HCI command buffers"
177-
default 2
177+
default 3
178178
range 2 64
179179
help
180180
Number of buffers available for outgoing HCI commands from the Host.

zephyr_bt/include/zbt_rtt.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,16 @@
955955
#define CONFIG_BT_HCI_RAW_H4 BT_HCI_RAW_H4
956956
#endif
957957

958+
//BT_HCI_SETUP
959+
#ifdef BT_HCI_SETUP
960+
#define CONFIG_BT_HCI_SETUP BT_HCI_SETUP
961+
#endif
962+
963+
//BT_HCI_SET_PUBLIC_ADDR
964+
#ifdef BT_HCI_SET_PUBLIC_ADDR
965+
#define CONFIG_BT_HCI_SET_PUBLIC_ADDR BT_HCI_SET_PUBLIC_ADDR
966+
#endif
967+
958968
//BT_HCI_TX_PRIO
959969
#ifdef BT_HCI_TX_PRIO
960970
#define CONFIG_BT_HCI_TX_PRIO BT_HCI_TX_PRIO

zephyr_bt/rtt4zephyr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ void sys_rand_get(void *dst, size_t len)
655655
int sys_csrand_get(void *dst, size_t len)
656656
{
657657
sys_rand_get(dst, len);
658+
return 0;
658659
}
659660

660661
/********************************** Shell **************************************/

0 commit comments

Comments
 (0)