File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
subsys/bluetooth/controller/ll_sw Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4017,12 +4017,12 @@ static inline void event_phy_upd_ind_prep(struct ll_conn *conn,
4017
4017
rx -> hdr .link -> mem = conn -> llcp_rx ;
4018
4018
conn -> llcp_rx = rx ;
4019
4019
4020
- #if defined(CONFIG_BT_CTLR_DATA_LENGTH )
4021
4020
/* reserve rx node for DLE event generation */
4022
- rx = ll_pdu_rx_alloc ();
4023
- rx -> hdr .link -> mem = conn -> llcp_rx ;
4024
- conn -> llcp_rx = rx ;
4025
- #endif /* CONFIG_BT_CTLR_DATA_LENGTH */
4021
+ if (IS_ENABLED (CONFIG_BT_CTLR_DATA_LENGTH )) {
4022
+ rx = ll_pdu_rx_alloc ();
4023
+ rx -> hdr .link -> mem = conn -> llcp_rx ;
4024
+ conn -> llcp_rx = rx ;
4025
+ }
4026
4026
}
4027
4027
4028
4028
/* place the phy update ind packet as next in
@@ -4107,8 +4107,11 @@ static inline void event_phy_upd_ind_prep(struct ll_conn *conn,
4107
4107
/* enqueue rx node towards Thread */
4108
4108
ll_rx_put (rx -> hdr .link , rx );
4109
4109
4110
+ /* Release rx node that was reserved for Data Length
4111
+ * notification.
4112
+ */
4110
4113
if (IS_ENABLED (CONFIG_BT_CTLR_DATA_LENGTH )) {
4111
- /* get the DLE rx node reserved for ULL->LL */
4114
+ /* Get the DLE rx node reserved for ULL->LL */
4112
4115
rx = conn -> llcp_rx ;
4113
4116
LL_ASSERT (rx && rx -> hdr .link );
4114
4117
conn -> llcp_rx = rx -> hdr .link -> mem ;
You can’t perform that action at this time.
0 commit comments