Skip to content

Commit f95a7fa

Browse files
cvinayakaescolar
authored andcommitted
Bluetooth: controller: split: Fix compiler warnings
Fix compiler warnings when PHY update feature is not selected. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 9bd8518 commit f95a7fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,6 +3321,7 @@ static inline void event_len_prep(struct ll_conn *conn)
33213321
}
33223322
}
33233323

3324+
#if defined(CONFIG_BT_CTLR_PHY)
33243325
static u16_t calc_eff_time(u8_t max_octets, u8_t phy, u16_t default_time)
33253326
{
33263327
u16_t time = PKT_US(max_octets, phy);
@@ -3337,6 +3338,7 @@ static u16_t calc_eff_time(u8_t max_octets, u8_t phy, u16_t default_time)
33373338

33383339
return eff_time;
33393340
}
3341+
#endif /* CONFIG_BT_CTLR_PHY */
33403342
#endif /* CONFIG_BT_CTLR_DATA_LENGTH */
33413343

33423344
#if defined(CONFIG_BT_CTLR_PHY)
@@ -4466,8 +4468,6 @@ static inline int length_req_rsp_recv(struct ll_conn *conn, memq_link_t *link,
44664468
struct pdu_data_llctrl_length_req *lr;
44674469
u16_t max_rx_octets;
44684470
u16_t max_tx_octets;
4469-
u16_t max_rx_time;
4470-
u16_t max_tx_time;
44714471

44724472
lr = &pdu_rx->llctrl.length_req;
44734473

@@ -4490,6 +4490,9 @@ static inline int length_req_rsp_recv(struct ll_conn *conn, memq_link_t *link,
44904490
}
44914491

44924492
#if defined(CONFIG_BT_CTLR_PHY)
4493+
u16_t max_rx_time;
4494+
u16_t max_tx_time;
4495+
44934496
/* use the minimal of our default_tx_time and
44944497
* peer max_rx_time
44954498
*/

0 commit comments

Comments
 (0)