Bluetooth: controller: Fix compilation regression
Fix compilation regression due to addition of const qualifier to tx_pwr_lvl parameter of ll_tx_pwr_lvl_set function. Support for BT_CTLR_TX_PWR_DYNAMIC_CONTROL needs the tx_pwr_lvl to be updated and returned. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
ccc53f9872
commit
a20ecb6722
2 changed files with 3 additions and 3 deletions
|
@ -110,8 +110,8 @@ uint8_t ll_rssi_get(uint16_t handle, uint8_t *const rssi);
|
|||
uint8_t ll_tx_pwr_lvl_get(uint8_t handle_type,
|
||||
uint16_t handle, uint8_t type, int8_t *const tx_pwr_lvl);
|
||||
void ll_tx_pwr_get(int8_t *const min, int8_t *const max);
|
||||
uint8_t ll_tx_pwr_lvl_set(uint8_t handle_type,
|
||||
uint16_t handle, int8_t const *const tx_pwr_lvl);
|
||||
uint8_t ll_tx_pwr_lvl_set(uint8_t handle_type, uint16_t handle,
|
||||
int8_t *const tx_pwr_lvl);
|
||||
|
||||
uint8_t ll_apto_get(uint16_t handle, uint16_t *const apto);
|
||||
uint8_t ll_apto_set(uint16_t handle, uint16_t apto);
|
||||
|
|
|
@ -119,7 +119,7 @@ uint8_t ll_tx_pwr_lvl_get(uint8_t handle_type,
|
|||
|
||||
|
||||
uint8_t ll_tx_pwr_lvl_set(uint8_t handle_type, uint16_t handle,
|
||||
int8_t const *const tx_pwr_lvl)
|
||||
int8_t *const tx_pwr_lvl)
|
||||
{
|
||||
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
|
||||
if (*tx_pwr_lvl == BT_HCI_VS_LL_TX_POWER_LEVEL_NO_PREF) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue