Bluetooth: Controller: Kconfig company id and subversion number
Add Kconfig option to set the Controller's company id and subversion number. Change-id: I3508aba18bf0b79fd423c7b4142b6fc57eaf55d7 Signed-off-by: Matthias Ringwald <matthias@bluekitchen-gmbh.com> Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
parent
0d75faf02d
commit
34b6c53c46
2 changed files with 28 additions and 3 deletions
|
@ -40,6 +40,22 @@ config BLUETOOTH_CONTROLLER_RX_PRIO_STACK_SIZE
|
|||
|
||||
comment "BLE Controller features"
|
||||
|
||||
config BLUETOOTH_CONTROLLER_COMPANY_ID
|
||||
prompt "Company Id"
|
||||
hex
|
||||
default 0xFFFF
|
||||
range 0x0000 0xFFFF
|
||||
help
|
||||
Set the Company Id that will be used in VERSION_IND PDU.
|
||||
|
||||
config BLUETOOTH_CONTROLLER_SUBVERSION_NUMBER
|
||||
prompt "Subversion Number"
|
||||
hex
|
||||
default 0xFFFF
|
||||
range 0x0000 0xFFFF
|
||||
help
|
||||
Set the Subversion Number that will be used in VERSION_IND PDU.
|
||||
|
||||
config BLUETOOTH_CONTROLLER_PUBLIC_ADDRESS
|
||||
hex "Public Device Address"
|
||||
default 0
|
||||
|
|
|
@ -86,9 +86,18 @@
|
|||
/*****************************************************************************
|
||||
* Controller Interface Defines
|
||||
****************************************************************************/
|
||||
#define RADIO_BLE_VERSION_NUMBER (0x08)
|
||||
#define RADIO_BLE_COMPANY_ID (0xFFFF)
|
||||
#define RADIO_BLE_SUB_VERSION_NUMBER (0xFFFF)
|
||||
#define RADIO_BLE_VERSION_NUMBER 0x08
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_COMPANY_ID)
|
||||
#define RADIO_BLE_COMPANY_ID CONFIG_BLUETOOTH_CONTROLLER_COMPANY_ID
|
||||
#else
|
||||
#define RADIO_BLE_COMPANY_ID 0xFFFF
|
||||
#endif
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_SUBVERSION_NUMBER)
|
||||
#define RADIO_BLE_SUB_VERSION_NUMBER \
|
||||
CONFIG_BLUETOOTH_CONTROLLER_SUBVERSION_NUMBER
|
||||
#else
|
||||
#define RADIO_BLE_SUB_VERSION_NUMBER 0xFFFF
|
||||
#endif
|
||||
|
||||
#define RADIO_BLE_FEATURES (BIT(BT_LE_FEAT_BIT_ENC) | \
|
||||
BIT(BT_LE_FEAT_BIT_CONN_PARAM_REQ) | \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue