@@ -3173,7 +3173,7 @@ static void le_df_connection_iq_report(struct node_rx_pdu *node_rx, struct net_b
3173
3173
phy_rx = lll -> phy_rx ;
3174
3174
3175
3175
/* Make sure the report is generated for connection on PHY UNCODED */
3176
- LL_ASSERT (phy_rx != PHY_CODED );
3176
+ LL_ASSERT_DBG (phy_rx != PHY_CODED );
3177
3177
#else
3178
3178
phy_rx = PHY_1M ;
3179
3179
#endif /* CONFIG_BT_CTLR_PHY */
@@ -4363,7 +4363,7 @@ static void le_cis_request(struct pdu_data *pdu_data,
4363
4363
* event.
4364
4364
*/
4365
4365
node = pdu_data ;
4366
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4366
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4367
4367
4368
4368
req = node ;
4369
4369
if (!(ll_feat_get () & BIT64 (BT_LE_FEAT_BIT_ISO_CHANNELS )) ||
@@ -4410,7 +4410,7 @@ static void le_cis_established(struct pdu_data *pdu_data,
4410
4410
* event.
4411
4411
*/
4412
4412
node = pdu_data ;
4413
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4413
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_conn_iso_estab ));
4414
4414
4415
4415
est = node ;
4416
4416
sep -> status = est -> status ;
@@ -4469,7 +4469,7 @@ static void le_per_adv_sync_transfer_received(struct pdu_data *pdu_data_rx,
4469
4469
* event.
4470
4470
*/
4471
4471
node = pdu_data_rx ;
4472
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_past_received ));
4472
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_past_received ));
4473
4473
4474
4474
se = node ;
4475
4475
sep -> status = se -> rx_sync .status ;
@@ -5460,7 +5460,7 @@ static void vs_le_df_connection_iq_report(struct node_rx_pdu *node_rx, struct ne
5460
5460
phy_rx = lll -> phy_rx ;
5461
5461
5462
5462
/* Make sure the report is generated for connection on PHY UNCODED */
5463
- LL_ASSERT (phy_rx != PHY_CODED );
5463
+ LL_ASSERT_DBG (phy_rx != PHY_CODED );
5464
5464
#else
5465
5465
phy_rx = PHY_1M ;
5466
5466
#endif /* CONFIG_BT_CTLR_PHY */
@@ -6240,7 +6240,7 @@ int hci_iso_handle(struct net_buf *buf, struct net_buf **evt)
6240
6240
6241
6241
/* Start Fragmentation */
6242
6242
/* FIXME: need to ensure ISO-AL returns proper isoal_status.
6243
- * Currently there are cases where ISO-AL calls LL_ASSERT .
6243
+ * Currently there are cases where ISO-AL calls LL_ASSERT_ERR .
6244
6244
*/
6245
6245
isoal_status_t isoal_status =
6246
6246
isoal_tx_sdu_fragment (stream -> dp -> source_hdl , & sdu_frag_tx );
@@ -6494,7 +6494,7 @@ static inline void le_dir_adv_report(struct pdu_adv *adv, struct net_buf *buf,
6494
6494
return ;
6495
6495
}
6496
6496
6497
- LL_ASSERT (adv -> type == PDU_ADV_TYPE_DIRECT_IND );
6497
+ LL_ASSERT_DBG (adv -> type == PDU_ADV_TYPE_DIRECT_IND );
6498
6498
6499
6499
#if CONFIG_BT_CTLR_DUP_FILTER_LEN > 0
6500
6500
if (dup_scan &&
@@ -6564,7 +6564,7 @@ static inline void le_mesh_scan_report(struct pdu_adv *adv,
6564
6564
uint32_t instant ;
6565
6565
uint8_t chan ;
6566
6566
6567
- LL_ASSERT (adv -> type == PDU_ADV_TYPE_NONCONN_IND );
6567
+ LL_ASSERT_DBG (adv -> type == PDU_ADV_TYPE_NONCONN_IND );
6568
6568
6569
6569
/* Filter based on currently active Scan Filter */
6570
6570
if (sf_curr < ARRAY_SIZE (scan_filters ) &&
@@ -7033,7 +7033,7 @@ static void ext_adv_pdu_frag(uint8_t evt_type, uint8_t phy, uint8_t sec_phy,
7033
7033
* data_len_total -= data_len_frag ;
7034
7034
7035
7035
* evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
7036
- LL_ASSERT (* evt_buf );
7036
+ LL_ASSERT_ERR (* evt_buf );
7037
7037
7038
7038
net_buf_frag_add (buf , * evt_buf );
7039
7039
@@ -7570,7 +7570,7 @@ static void le_ext_adv_report(struct pdu_data *pdu_data,
7570
7570
* event.
7571
7571
*/
7572
7572
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
7573
- LL_ASSERT (evt_buf );
7573
+ LL_ASSERT_ERR (evt_buf );
7574
7574
7575
7575
net_buf_frag_add (buf , evt_buf );
7576
7576
@@ -7666,7 +7666,7 @@ static void le_per_adv_sync_established(struct pdu_data *pdu_data,
7666
7666
* event.
7667
7667
*/
7668
7668
node = pdu_data ;
7669
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_sync ));
7669
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_sync ));
7670
7670
7671
7671
se = node ;
7672
7672
sep -> status = se -> status ;
@@ -7946,7 +7946,7 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
7946
7946
data_status = BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_PARTIAL ;
7947
7947
7948
7948
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
7949
- LL_ASSERT (evt_buf );
7949
+ LL_ASSERT_ERR (evt_buf );
7950
7950
7951
7951
net_buf_frag_add (buf , evt_buf );
7952
7952
@@ -8002,7 +8002,7 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
8002
8002
*/
8003
8003
if (!evt_buf ) {
8004
8004
evt_buf = bt_buf_get_rx (BT_BUF_EVT , BUF_GET_TIMEOUT );
8005
- LL_ASSERT (evt_buf );
8005
+ LL_ASSERT_ERR (evt_buf );
8006
8006
8007
8007
net_buf_frag_add (buf , evt_buf );
8008
8008
}
@@ -8087,7 +8087,7 @@ static void le_big_sync_established(struct pdu_data *pdu,
8087
8087
* established event.
8088
8088
*/
8089
8089
node = pdu ;
8090
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_sync_iso ));
8090
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_sync_iso ));
8091
8091
8092
8092
se = node ;
8093
8093
sep -> status = se -> status ;
@@ -8391,7 +8391,7 @@ static void le_conn_complete(struct pdu_data *pdu_data, uint16_t handle,
8391
8391
* complete event.
8392
8392
*/
8393
8393
node = pdu_data ;
8394
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_cc ));
8394
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_cc ));
8395
8395
8396
8396
cc = node ;
8397
8397
status = cc -> status ;
@@ -8528,7 +8528,7 @@ static void le_conn_update_complete(struct pdu_data *pdu_data, uint16_t handle,
8528
8528
* update complete event.
8529
8529
*/
8530
8530
node = pdu_data ;
8531
- LL_ASSERT (IS_PTR_ALIGNED (node , struct node_rx_cu ));
8531
+ LL_ASSERT_DBG (IS_PTR_ALIGNED (node , struct node_rx_cu ));
8532
8532
8533
8533
cu = node ;
8534
8534
sep -> status = cu -> status ;
@@ -8763,7 +8763,7 @@ static void encode_control(struct node_rx_pdu *node_rx,
8763
8763
#elif defined(CONFIG_BT_CTLR_VS_SCAN_REQ_RX )
8764
8764
le_vs_scan_req_received (pdu_data , node_rx , buf );
8765
8765
#else
8766
- LL_ASSERT (0 );
8766
+ LL_ASSERT_DBG (0 );
8767
8767
#endif /* CONFIG_BT_CTLR_ADV_EXT */
8768
8768
break ;
8769
8769
#endif /* CONFIG_BT_CTLR_SCAN_REQ_NOTIFY */
@@ -8896,7 +8896,7 @@ static void encode_control(struct node_rx_pdu *node_rx,
8896
8896
#endif /* CONFIG_BT_CTLR_USER_EVT_RANGE > 0 */
8897
8897
8898
8898
default :
8899
- LL_ASSERT (0 );
8899
+ LL_ASSERT_DBG (0 );
8900
8900
return ;
8901
8901
}
8902
8902
}
@@ -9124,7 +9124,7 @@ static void encode_data_ctrl(struct node_rx_pdu *node_rx,
9124
9124
break ;
9125
9125
9126
9126
default :
9127
- LL_ASSERT (0 );
9127
+ LL_ASSERT_DBG (0 );
9128
9128
return ;
9129
9129
}
9130
9130
}
@@ -9155,20 +9155,20 @@ void hci_acl_encode(struct node_rx_pdu *node_rx, struct net_buf *buf)
9155
9155
memcpy (data , pdu_data -> lldata , pdu_data -> len );
9156
9156
#if defined(CONFIG_BT_HCI_ACL_FLOW_CONTROL )
9157
9157
if (hci_hbuf_total > 0 ) {
9158
- LL_ASSERT ((hci_hbuf_sent - hci_hbuf_acked ) <
9158
+ LL_ASSERT_DBG ((hci_hbuf_sent - hci_hbuf_acked ) <
9159
9159
hci_hbuf_total );
9160
9160
hci_hbuf_sent ++ ;
9161
9161
/* Note: This requires linear handle values starting
9162
9162
* from 0
9163
9163
*/
9164
- LL_ASSERT (handle < ARRAY_SIZE (hci_hbuf_pend ));
9164
+ LL_ASSERT_DBG (handle < ARRAY_SIZE (hci_hbuf_pend ));
9165
9165
hci_hbuf_pend [handle ]++ ;
9166
9166
}
9167
9167
#endif /* CONFIG_BT_HCI_ACL_FLOW_CONTROL */
9168
9168
break ;
9169
9169
9170
9170
default :
9171
- LL_ASSERT (0 );
9171
+ LL_ASSERT_DBG (0 );
9172
9172
break ;
9173
9173
}
9174
9174
}
0 commit comments