Bluetooth: controller: llcp: update max dle times on feature exchange
On a completion of feature exchange the max DLE times needs to be updated if Coded PHY has become supported. For this now also keep a separate store of the default_tx_octets/time for the sake of re-calculation of local versions of DLE values Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
parent
550f1b096d
commit
7daba33f2d
3 changed files with 21 additions and 4 deletions
|
@ -644,6 +644,13 @@ static void lp_comm_rx_decode(struct ll_conn *conn, struct proc_ctx *ctx, struct
|
|||
#endif /* CONFIG_BT_CTLR_LE_PING */
|
||||
case PDU_DATA_LLCTRL_TYPE_FEATURE_RSP:
|
||||
llcp_pdu_decode_feature_rsp(conn, pdu);
|
||||
#if defined(CONFIG_BT_CTLR_DATA_LENGTH) && defined(CONFIG_BT_CTLR_PHY)
|
||||
/* If Coded PHY is now supported we must update local max tx/rx times to reflect */
|
||||
if (feature_phy_coded(conn)) {
|
||||
ull_dle_max_time_get(conn, &conn->lll.dle.local.max_rx_time,
|
||||
&conn->lll.dle.local.max_tx_time);
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_DATA_LENGTH && CONFIG_BT_CTLR_PHY */
|
||||
break;
|
||||
#if defined(CONFIG_BT_CTLR_MIN_USED_CHAN)
|
||||
case PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND:
|
||||
|
@ -795,6 +802,13 @@ static void rp_comm_rx_decode(struct ll_conn *conn, struct proc_ctx *ctx, struct
|
|||
case PDU_DATA_LLCTRL_TYPE_PER_INIT_FEAT_XCHG:
|
||||
#endif /* CONFIG_BT_CTLR_PER_INIT_FEAT_XCHG && CONFIG_BT_CENTRAL */
|
||||
llcp_pdu_decode_feature_req(conn, pdu);
|
||||
#if defined(CONFIG_BT_CTLR_DATA_LENGTH) && defined(CONFIG_BT_CTLR_PHY)
|
||||
/* If Coded PHY is now supported we must update local max tx/rx times to reflect */
|
||||
if (feature_phy_coded(conn)) {
|
||||
ull_dle_max_time_get(conn, &conn->lll.dle.local.max_rx_time,
|
||||
&conn->lll.dle.local.max_tx_time);
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_DATA_LENGTH && CONFIG_BT_CTLR_PHY */
|
||||
break;
|
||||
#if defined(CONFIG_BT_CTLR_MIN_USED_CHAN) && defined(CONFIG_BT_CENTRAL)
|
||||
case PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue