@@ -3222,7 +3222,7 @@ static void le_df_connection_iq_report(struct node_rx_pdu *node_rx, struct net_b
3222
3222
phy_rx = lll -> phy_rx ;
3223
3223
3224
3224
/* Make sure the report is generated for connection on PHY UNCODED */
3225
- LL_ASSERT (phy_rx != PHY_CODED );
3225
+ LL_ASSERT_DBG (phy_rx != PHY_CODED );
3226
3226
#else
3227
3227
phy_rx = PHY_1M ;
3228
3228
#endif /* CONFIG_BT_CTLR_PHY */
@@ -4412,7 +4412,7 @@ static void le_cis_request(struct pdu_data *pdu_data,
4412
4412
* event.
4413
4413
*/
4414
4414
node = pdu_data ;
4415
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4415
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4416
4416
4417
4417
req = node ;
4418
4418
if (!(ll_feat_get () & BIT64 (BT_LE_FEAT_BIT_ISO_CHANNELS )) ||
@@ -4459,7 +4459,7 @@ static void le_cis_established(struct pdu_data *pdu_data,
4459
4459
* event.
4460
4460
*/
4461
4461
node = pdu_data ;
4462
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4462
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4463
4463
4464
4464
est = node ;
4465
4465
sep -> status = est -> status ;
@@ -4518,7 +4518,7 @@ static void le_per_adv_sync_transfer_received(struct pdu_data *pdu_data_rx,
4518
4518
* event.
4519
4519
*/
4520
4520
node = pdu_data_rx ;
4521
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_past_received ));
4521
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_past_received ));
4522
4522
4523
4523
se = node ;
4524
4524
sep -> status = se -> rx_sync .status ;
@@ -5520,7 +5520,7 @@ static void vs_le_df_connection_iq_report(struct node_rx_pdu *node_rx, struct ne
5520
5520
phy_rx = lll -> phy_rx ;
5521
5521
5522
5522
/* Make sure the report is generated for connection on PHY UNCODED */
5523
- LL_ASSERT (phy_rx != PHY_CODED );
5523
+ LL_ASSERT_DBG (phy_rx != PHY_CODED );
5524
5524
#else
5525
5525
phy_rx = PHY_1M ;
5526
5526
#endif /* CONFIG_BT_CTLR_PHY */
@@ -6300,7 +6300,7 @@ int hci_iso_handle(struct net_buf *buf, struct net_buf **evt)
6300
6300
6301
6301
/* Start Fragmentation */
6302
6302
/* FIXME: need to ensure ISO-AL returns proper isoal_status.
6303
- * Currently there are cases where ISO-AL calls LL_ASSERT .
6303
+ * Currently there are cases where ISO-AL calls LL_ASSERT_ERR .
6304
6304
*/
6305
6305
isoal_status_t isoal_status =
6306
6306
isoal_tx_sdu_fragment (stream -> dp -> source_hdl , & sdu_frag_tx );
@@ -6554,7 +6554,7 @@ static inline void le_dir_adv_report(struct pdu_adv *adv, struct net_buf *buf,
6554
6554
return ;
6555
6555
}
6556
6556
6557
- LL_ASSERT (adv -> type == PDU_ADV_TYPE_DIRECT_IND );
6557
+ LL_ASSERT_DBG (adv -> type == PDU_ADV_TYPE_DIRECT_IND );
6558
6558
6559
6559
#if CONFIG_BT_CTLR_DUP_FILTER_LEN > 0
6560
6560
if (dup_scan &&
@@ -6624,7 +6624,7 @@ static inline void le_mesh_scan_report(struct pdu_adv *adv,
6624
6624
uint32_t instant ;
6625
6625
uint8_t chan ;
6626
6626
6627
- LL_ASSERT (adv -> type == PDU_ADV_TYPE_NONCONN_IND );
6627
+ LL_ASSERT_DBG (adv -> type == PDU_ADV_TYPE_NONCONN_IND );
6628
6628
6629
6629
/* Filter based on currently active Scan Filter */
6630
6630
if (sf_curr < ARRAY_SIZE (scan_filters ) &&
@@ -7093,7 +7093,7 @@ static void ext_adv_pdu_frag(uint8_t evt_type, uint8_t phy, uint8_t sec_phy,
7093
7093
* data_len_total -= data_len_frag ;
7094
7094
7095
7095
* evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
7096
- LL_ASSERT (* evt_buf );
7096
+ LL_ASSERT_ERR (* evt_buf );
7097
7097
7098
7098
net_buf_frag_add (buf , * evt_buf );
7099
7099
@@ -7630,7 +7630,7 @@ static void le_ext_adv_report(struct pdu_data *pdu_data,
7630
7630
* event.
7631
7631
*/
7632
7632
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
7633
- LL_ASSERT (evt_buf );
7633
+ LL_ASSERT_ERR (evt_buf );
7634
7634
7635
7635
net_buf_frag_add (buf , evt_buf );
7636
7636
@@ -7726,7 +7726,7 @@ static void le_per_adv_sync_established(struct pdu_data *pdu_data,
7726
7726
* event.
7727
7727
*/
7728
7728
node = pdu_data ;
7729
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_sync ));
7729
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_sync ));
7730
7730
7731
7731
se = node ;
7732
7732
sep -> status = se -> status ;
@@ -8006,7 +8006,7 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
8006
8006
data_status = BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_PARTIAL ;
8007
8007
8008
8008
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
8009
- LL_ASSERT (evt_buf );
8009
+ LL_ASSERT_ERR (evt_buf );
8010
8010
8011
8011
net_buf_frag_add (buf , evt_buf );
8012
8012
@@ -8062,7 +8062,7 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
8062
8062
*/
8063
8063
if (!evt_buf ) {
8064
8064
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
8065
- LL_ASSERT (evt_buf );
8065
+ LL_ASSERT_ERR (evt_buf );
8066
8066
8067
8067
net_buf_frag_add (buf , evt_buf );
8068
8068
}
@@ -8147,7 +8147,7 @@ static void le_big_sync_established(struct pdu_data *pdu,
8147
8147
* established event.
8148
8148
*/
8149
8149
node = pdu ;
8150
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_sync_iso ));
8150
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_sync_iso ));
8151
8151
8152
8152
se = node ;
8153
8153
sep -> status = se -> status ;
@@ -8451,7 +8451,7 @@ static void le_conn_complete(struct pdu_data *pdu_data, uint16_t handle,
8451
8451
* complete event.
8452
8452
*/
8453
8453
node = pdu_data ;
8454
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_cc ));
8454
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_cc ));
8455
8455
8456
8456
cc = node ;
8457
8457
status = cc -> status ;
@@ -8588,7 +8588,7 @@ static void le_conn_update_complete(struct pdu_data *pdu_data, uint16_t handle,
8588
8588
* update complete event.
8589
8589
*/
8590
8590
node = pdu_data ;
8591
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_cu ));
8591
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_cu ));
8592
8592
8593
8593
cu = node ;
8594
8594
sep -> status = cu -> status ;
@@ -8845,7 +8845,7 @@ static void encode_control(struct node_rx_pdu *node_rx,
8845
8845
#elif defined(CONFIG_BT_CTLR_VS_SCAN_REQ_RX )
8846
8846
le_vs_scan_req_received (pdu_data , node_rx , buf );
8847
8847
#else
8848
- LL_ASSERT (0 );
8848
+ LL_ASSERT_DBG (0 );
8849
8849
#endif /* CONFIG_BT_CTLR_ADV_EXT */
8850
8850
break ;
8851
8851
#endif /* CONFIG_BT_CTLR_SCAN_REQ_NOTIFY */
@@ -8984,7 +8984,7 @@ static void encode_control(struct node_rx_pdu *node_rx,
8984
8984
#endif /* CONFIG_BT_CTLR_USER_EVT_RANGE > 0 */
8985
8985
8986
8986
default :
8987
- LL_ASSERT (0 );
8987
+ LL_ASSERT_DBG (0 );
8988
8988
return ;
8989
8989
}
8990
8990
}
@@ -9212,7 +9212,7 @@ static void encode_data_ctrl(struct node_rx_pdu *node_rx,
9212
9212
break ;
9213
9213
9214
9214
default :
9215
- LL_ASSERT (0 );
9215
+ LL_ASSERT_DBG (0 );
9216
9216
return ;
9217
9217
}
9218
9218
}
@@ -9243,20 +9243,20 @@ void hci_acl_encode(struct node_rx_pdu *node_rx, struct net_buf *buf)
9243
9243
memcpy (data , pdu_data -> lldata , pdu_data -> len );
9244
9244
#if defined(CONFIG_BT_HCI_ACL_FLOW_CONTROL )
9245
9245
if (hci_hbuf_total > 0 ) {
9246
- LL_ASSERT ((hci_hbuf_sent - hci_hbuf_acked ) <
9246
+ LL_ASSERT_DBG ((hci_hbuf_sent - hci_hbuf_acked ) <
9247
9247
hci_hbuf_total );
9248
9248
hci_hbuf_sent ++ ;
9249
9249
/* Note: This requires linear handle values starting
9250
9250
* from 0
9251
9251
*/
9252
- LL_ASSERT (handle < ARRAY_SIZE (hci_hbuf_pend ));
9252
+ LL_ASSERT_DBG (handle < ARRAY_SIZE (hci_hbuf_pend ));
9253
9253
hci_hbuf_pend [handle ]++ ;
9254
9254
}
9255
9255
#endif /* CONFIG_BT_HCI_ACL_FLOW_CONTROL */
9256
9256
break ;
9257
9257
9258
9258
default :
9259
- LL_ASSERT (0 );
9259
+ LL_ASSERT_DBG (0 );
9260
9260
break ;
9261
9261
}
9262
9262
}
0 commit comments