Bluetooth: controller: Replace use if LL_FEAT with ll_feat_get()
Replace the use of LL_FEAT define with ll_feat_get() so that feature set value can be updated at runtime with host feature bit values. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
c1080f3ceb
commit
ed59ceba62
7 changed files with 20 additions and 11 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <zephyr.h>
|
||||
|
||||
#include "ll_feat.h"
|
||||
|
||||
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
|
||||
#define LOG_MODULE_NAME bt_ctlr_ll_feat
|
||||
#include "common/log.h"
|
||||
|
@ -18,3 +20,8 @@ uint8_t ll_set_host_feature(uint8_t bit_number, uint8_t bit_value)
|
|||
|
||||
return BT_HCI_ERR_CMD_DISALLOWED;
|
||||
}
|
||||
|
||||
uint64_t ll_feat_get(void)
|
||||
{
|
||||
return LL_FEAT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue