Bluetooth: controller: Refactor the internal LL interfaces

Refactored the internal LL interfaces to have return value
to match the HCI error code u8_t data type.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2018-12-17 10:46:13 +01:00 committed by Carles Cufí
commit 0989c0f8c2
2 changed files with 6 additions and 6 deletions

View file

@ -11353,7 +11353,7 @@ void ll_length_max_get(u16_t *max_tx_octets, u16_t *max_tx_time,
#endif /* CONFIG_BT_CTLR_DATA_LENGTH */
#if defined(CONFIG_BT_CTLR_PHY)
u32_t ll_phy_get(u16_t handle, u8_t *tx, u8_t *rx)
u8_t ll_phy_get(u16_t handle, u8_t *tx, u8_t *rx)
{
struct connection *conn;
@ -11369,7 +11369,7 @@ u32_t ll_phy_get(u16_t handle, u8_t *tx, u8_t *rx)
return 0;
}
u32_t ll_phy_default_set(u8_t tx, u8_t rx)
u8_t ll_phy_default_set(u8_t tx, u8_t rx)
{
/* TODO: validate against supported phy */
@ -11379,7 +11379,7 @@ u32_t ll_phy_default_set(u8_t tx, u8_t rx)
return 0;
}
u32_t ll_phy_req_send(u16_t handle, u8_t tx, u8_t flags, u8_t rx)
u8_t ll_phy_req_send(u16_t handle, u8_t tx, u8_t flags, u8_t rx)
{
struct connection *conn;