@@ -190,12 +190,6 @@ static uint32_t conn_count;
190
190
static uint32_t cis_pending_count ;
191
191
#endif
192
192
193
- #if !defined(CONFIG_BT_HCI_RAW ) && defined(CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT )
194
- #define ADV_REPORT_EVT_MAX_LEN CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE
195
- #else
196
- #define ADV_REPORT_EVT_MAX_LEN CONFIG_BT_BUF_EVT_RX_SIZE
197
- #endif
198
-
199
193
/* In HCI event PHY indices start at 1 compare to 0 indexed in aux_ptr field in
200
194
* the Common Extended Payload Format in the PDUs.
201
195
*/
@@ -6186,7 +6180,7 @@ static void le_ext_adv_report(struct pdu_data *pdu_data,
6186
6180
6187
6181
/* HCI fragment */
6188
6182
evt_buf = buf ;
6189
- data_len_max = ADV_REPORT_EVT_MAX_LEN -
6183
+ data_len_max = CONFIG_BT_BUF_EVT_RX_SIZE -
6190
6184
sizeof (struct bt_hci_evt_le_meta_event ) -
6191
6185
sizeof (struct bt_hci_evt_le_ext_advertising_report ) -
6192
6186
sizeof (struct bt_hci_evt_le_ext_advertising_info );
@@ -6535,7 +6529,7 @@ static void le_per_adv_sync_report(struct pdu_data *pdu_data,
6535
6529
accept = ftr -> sync_rx_enabled ;
6536
6530
}
6537
6531
6538
- data_len_max = ADV_REPORT_EVT_MAX_LEN -
6532
+ data_len_max = CONFIG_BT_BUF_EVT_RX_SIZE -
6539
6533
sizeof (struct bt_hci_evt_le_meta_event ) -
6540
6534
sizeof (struct bt_hci_evt_le_per_advertising_report );
6541
6535
data_len_total = node_rx -> hdr .rx_ftr .aux_data_len ;
@@ -7668,13 +7662,6 @@ uint8_t hci_get_class(struct node_rx_pdu *node_rx)
7668
7662
defined(CONFIG_BT_CTLR_PROFILE_ISR )
7669
7663
#if defined(CONFIG_BT_OBSERVER )
7670
7664
case NODE_RX_TYPE_REPORT :
7671
-
7672
- #if defined(CONFIG_BT_CTLR_ADV_EXT )
7673
- __fallthrough ;
7674
- case NODE_RX_TYPE_EXT_1M_REPORT :
7675
- case NODE_RX_TYPE_EXT_2M_REPORT :
7676
- case NODE_RX_TYPE_EXT_CODED_REPORT :
7677
- #endif /* CONFIG_BT_CTLR_ADV_EXT */
7678
7665
#endif /* CONFIG_BT_OBSERVER */
7679
7666
7680
7667
#if defined(CONFIG_BT_CTLR_SCAN_REQ_NOTIFY )
@@ -7703,18 +7690,20 @@ uint8_t hci_get_class(struct node_rx_pdu *node_rx)
7703
7690
#if defined(CONFIG_BT_CTLR_ADV_EXT )
7704
7691
#if defined(CONFIG_BT_BROADCASTER )
7705
7692
case NODE_RX_TYPE_EXT_ADV_TERMINATE :
7693
+
7706
7694
#if defined(CONFIG_BT_CTLR_ADV_ISO )
7707
7695
case NODE_RX_TYPE_BIG_COMPLETE :
7708
7696
case NODE_RX_TYPE_BIG_TERMINATE :
7709
7697
#endif /* CONFIG_BT_CTLR_ADV_ISO */
7710
7698
#endif /* CONFIG_BT_BROADCASTER */
7711
7699
7712
7700
#if defined(CONFIG_BT_OBSERVER )
7713
- __fallthrough ;
7701
+ case NODE_RX_TYPE_EXT_1M_REPORT :
7702
+ case NODE_RX_TYPE_EXT_2M_REPORT :
7703
+ case NODE_RX_TYPE_EXT_CODED_REPORT :
7714
7704
case NODE_RX_TYPE_EXT_SCAN_TERMINATE :
7715
7705
7716
7706
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC )
7717
- __fallthrough ;
7718
7707
case NODE_RX_TYPE_SYNC :
7719
7708
case NODE_RX_TYPE_SYNC_REPORT :
7720
7709
case NODE_RX_TYPE_SYNC_LOST :
@@ -7724,7 +7713,6 @@ uint8_t hci_get_class(struct node_rx_pdu *node_rx)
7724
7713
#endif /* CONFIG_BT_CTLR_DF_SCAN_CTE_RX */
7725
7714
7726
7715
#if defined(CONFIG_BT_CTLR_SYNC_ISO )
7727
- __fallthrough ;
7728
7716
case NODE_RX_TYPE_SYNC_ISO :
7729
7717
case NODE_RX_TYPE_SYNC_ISO_LOST :
7730
7718
#endif /* CONFIG_BT_CTLR_SYNC_ISO */
@@ -7744,9 +7732,11 @@ uint8_t hci_get_class(struct node_rx_pdu *node_rx)
7744
7732
#if defined(CONFIG_BT_CTLR_CONN_ISO )
7745
7733
case NODE_RX_TYPE_CIS_ESTABLISHED :
7746
7734
#endif /* CONFIG_BT_CTLR_CONN_ISO */
7735
+
7747
7736
#if defined(CONFIG_BT_CTLR_DF_CONN_CTE_RX )
7748
7737
case NODE_RX_TYPE_CONN_IQ_SAMPLE_REPORT :
7749
7738
#endif /* CONFIG_BT_CTLR_DF_CONN_CTE_RX */
7739
+
7750
7740
return HCI_CLASS_EVT_REQUIRED ;
7751
7741
7752
7742
case NODE_RX_TYPE_TERMINATE :
@@ -7759,17 +7749,22 @@ uint8_t hci_get_class(struct node_rx_pdu *node_rx)
7759
7749
#if defined(CONFIG_BT_CTLR_CONN_RSSI_EVENT )
7760
7750
case NODE_RX_TYPE_RSSI :
7761
7751
#endif /* CONFIG_BT_CTLR_CONN_RSSI_EVENT */
7752
+
7762
7753
#if defined(CONFIG_BT_CTLR_LE_PING )
7763
7754
case NODE_RX_TYPE_APTO :
7764
7755
#endif /* CONFIG_BT_CTLR_LE_PING */
7756
+
7765
7757
#if defined(CONFIG_BT_CTLR_CHAN_SEL_2 )
7766
7758
case NODE_RX_TYPE_CHAN_SEL_ALGO :
7767
7759
#endif /* CONFIG_BT_CTLR_CHAN_SEL_2 */
7760
+
7768
7761
#if defined(CONFIG_BT_CTLR_PHY )
7769
7762
case NODE_RX_TYPE_PHY_UPDATE :
7770
7763
#endif /* CONFIG_BT_CTLR_PHY */
7764
+
7771
7765
return HCI_CLASS_EVT_CONNECTION ;
7772
7766
#endif /* CONFIG_BT_CONN */
7767
+
7773
7768
#if defined(CONFIG_BT_CTLR_SYNC_ISO ) || defined(CONFIG_BT_CTLR_CONN_ISO )
7774
7769
case NODE_RX_TYPE_ISO_PDU :
7775
7770
return HCI_CLASS_ISO_DATA ;
0 commit comments