18e99ea8dSJohannes Berg /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 28e99ea8dSJohannes Berg /* 3*6324c173SMordechay Goodstein * Copyright (C) 2012-2014, 2018, 2020 - 2021 Intel Corporation 48e99ea8dSJohannes Berg * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 58e99ea8dSJohannes Berg * Copyright (C) 2016-2017 Intel Deutschland GmbH 68e99ea8dSJohannes Berg */ 7d172a5efSJohannes Berg #ifndef __iwl_fw_api_stats_h__ 8d172a5efSJohannes Berg #define __iwl_fw_api_stats_h__ 9d172a5efSJohannes Berg #include "mac.h" 10d172a5efSJohannes Berg 11d172a5efSJohannes Berg struct mvm_statistics_dbg { 12d172a5efSJohannes Berg __le32 burst_check; 13d172a5efSJohannes Berg __le32 burst_count; 14d172a5efSJohannes Berg __le32 wait_for_silence_timeout_cnt; 15d172a5efSJohannes Berg u8 reserved[12]; 16d172a5efSJohannes Berg } __packed; /* STATISTICS_DEBUG_API_S_VER_2 */ 17d172a5efSJohannes Berg 18d172a5efSJohannes Berg struct mvm_statistics_div { 19d172a5efSJohannes Berg __le32 tx_on_a; 20d172a5efSJohannes Berg __le32 tx_on_b; 21d172a5efSJohannes Berg __le32 exec_time; 22d172a5efSJohannes Berg __le32 probe_time; 23d172a5efSJohannes Berg __le32 rssi_ant; 24d172a5efSJohannes Berg __le32 reserved2; 25d172a5efSJohannes Berg } __packed; /* STATISTICS_SLOW_DIV_API_S_VER_2 */ 26d172a5efSJohannes Berg 27d172a5efSJohannes Berg /** 28d172a5efSJohannes Berg * struct mvm_statistics_rx_non_phy 29d172a5efSJohannes Berg * @bogus_cts: CTS received when not expecting CTS 30d172a5efSJohannes Berg * @bogus_ack: ACK received when not expecting ACK 31d172a5efSJohannes Berg * @non_channel_beacons: beacons with our bss id but not on our serving channel 32d172a5efSJohannes Berg * @channel_beacons: beacons with our bss id and in our serving channel 33d172a5efSJohannes Berg * @num_missed_bcon: number of missed beacons 34d172a5efSJohannes Berg * @adc_rx_saturation_time: count in 0.8us units the time the ADC was in 35d172a5efSJohannes Berg * saturation 36d172a5efSJohannes Berg * @ina_detection_search_time: total time (in 0.8us) searched for INA 37d172a5efSJohannes Berg * @beacon_silence_rssi_a: RSSI silence after beacon frame 38d172a5efSJohannes Berg * @beacon_silence_rssi_b: RSSI silence after beacon frame 39d172a5efSJohannes Berg * @beacon_silence_rssi_c: RSSI silence after beacon frame 40d172a5efSJohannes Berg * @interference_data_flag: flag for interference data availability. 1 when data 41d172a5efSJohannes Berg * is available. 42d172a5efSJohannes Berg * @channel_load: counts RX Enable time in uSec 43d295a898SMordechay Goodstein * @beacon_rssi_a: beacon RSSI on antenna A 44d172a5efSJohannes Berg * @beacon_rssi_b: beacon RSSI on antenna B 45d172a5efSJohannes Berg * @beacon_rssi_c: beacon RSSI on antenna C 46d172a5efSJohannes Berg * @beacon_energy_a: beacon energy on antenna A 47d172a5efSJohannes Berg * @beacon_energy_b: beacon energy on antenna B 48d172a5efSJohannes Berg * @beacon_energy_c: beacon energy on antenna C 49d172a5efSJohannes Berg * @num_bt_kills: number of BT "kills" (frame TX aborts) 50d172a5efSJohannes Berg * @mac_id: mac ID 51d172a5efSJohannes Berg */ 52d172a5efSJohannes Berg struct mvm_statistics_rx_non_phy { 53d172a5efSJohannes Berg __le32 bogus_cts; 54d172a5efSJohannes Berg __le32 bogus_ack; 55d172a5efSJohannes Berg __le32 non_channel_beacons; 56d172a5efSJohannes Berg __le32 channel_beacons; 57d172a5efSJohannes Berg __le32 num_missed_bcon; 58d172a5efSJohannes Berg __le32 adc_rx_saturation_time; 59d172a5efSJohannes Berg __le32 ina_detection_search_time; 60d172a5efSJohannes Berg __le32 beacon_silence_rssi_a; 61d172a5efSJohannes Berg __le32 beacon_silence_rssi_b; 62d172a5efSJohannes Berg __le32 beacon_silence_rssi_c; 63d172a5efSJohannes Berg __le32 interference_data_flag; 64d172a5efSJohannes Berg __le32 channel_load; 65d172a5efSJohannes Berg __le32 beacon_rssi_a; 66d172a5efSJohannes Berg __le32 beacon_rssi_b; 67d172a5efSJohannes Berg __le32 beacon_rssi_c; 68d172a5efSJohannes Berg __le32 beacon_energy_a; 69d172a5efSJohannes Berg __le32 beacon_energy_b; 70d172a5efSJohannes Berg __le32 beacon_energy_c; 71d172a5efSJohannes Berg __le32 num_bt_kills; 72d172a5efSJohannes Berg __le32 mac_id; 73d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_NON_PHY_API_S_VER_4 */ 74d172a5efSJohannes Berg 75d172a5efSJohannes Berg struct mvm_statistics_rx_non_phy_v3 { 76d172a5efSJohannes Berg __le32 bogus_cts; /* CTS received when not expecting CTS */ 77d172a5efSJohannes Berg __le32 bogus_ack; /* ACK received when not expecting ACK */ 78d172a5efSJohannes Berg __le32 non_bssid_frames; /* number of frames with BSSID that 79d172a5efSJohannes Berg * doesn't belong to the STA BSSID */ 80d172a5efSJohannes Berg __le32 filtered_frames; /* count frames that were dumped in the 81d172a5efSJohannes Berg * filtering process */ 82d172a5efSJohannes Berg __le32 non_channel_beacons; /* beacons with our bss id but not on 83d172a5efSJohannes Berg * our serving channel */ 84d172a5efSJohannes Berg __le32 channel_beacons; /* beacons with our bss id and in our 85d172a5efSJohannes Berg * serving channel */ 86d172a5efSJohannes Berg __le32 num_missed_bcon; /* number of missed beacons */ 87d172a5efSJohannes Berg __le32 adc_rx_saturation_time; /* count in 0.8us units the time the 88d172a5efSJohannes Berg * ADC was in saturation */ 89d172a5efSJohannes Berg __le32 ina_detection_search_time;/* total time (in 0.8us) searched 90d172a5efSJohannes Berg * for INA */ 91d172a5efSJohannes Berg __le32 beacon_silence_rssi_a; /* RSSI silence after beacon frame */ 92d172a5efSJohannes Berg __le32 beacon_silence_rssi_b; /* RSSI silence after beacon frame */ 93d172a5efSJohannes Berg __le32 beacon_silence_rssi_c; /* RSSI silence after beacon frame */ 94d172a5efSJohannes Berg __le32 interference_data_flag; /* flag for interference data 95d172a5efSJohannes Berg * availability. 1 when data is 96d172a5efSJohannes Berg * available. */ 97d172a5efSJohannes Berg __le32 channel_load; /* counts RX Enable time in uSec */ 98d172a5efSJohannes Berg __le32 dsp_false_alarms; /* DSP false alarm (both OFDM 99d172a5efSJohannes Berg * and CCK) counter */ 100d172a5efSJohannes Berg __le32 beacon_rssi_a; 101d172a5efSJohannes Berg __le32 beacon_rssi_b; 102d172a5efSJohannes Berg __le32 beacon_rssi_c; 103d172a5efSJohannes Berg __le32 beacon_energy_a; 104d172a5efSJohannes Berg __le32 beacon_energy_b; 105d172a5efSJohannes Berg __le32 beacon_energy_c; 106d172a5efSJohannes Berg __le32 num_bt_kills; 107d172a5efSJohannes Berg __le32 mac_id; 108d172a5efSJohannes Berg __le32 directed_data_mpdu; 109d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_NON_PHY_API_S_VER_3 */ 110d172a5efSJohannes Berg 111d172a5efSJohannes Berg struct mvm_statistics_rx_phy { 112d172a5efSJohannes Berg __le32 unresponded_rts; 113d172a5efSJohannes Berg __le32 rxe_frame_lmt_overrun; 114d172a5efSJohannes Berg __le32 sent_ba_rsp_cnt; 115d172a5efSJohannes Berg __le32 dsp_self_kill; 116d172a5efSJohannes Berg __le32 reserved; 117d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_PHY_API_S_VER_3 */ 118d172a5efSJohannes Berg 119d172a5efSJohannes Berg struct mvm_statistics_rx_phy_v2 { 120d172a5efSJohannes Berg __le32 ina_cnt; 121d172a5efSJohannes Berg __le32 fina_cnt; 122d172a5efSJohannes Berg __le32 plcp_err; 123d172a5efSJohannes Berg __le32 crc32_err; 124d172a5efSJohannes Berg __le32 overrun_err; 125d172a5efSJohannes Berg __le32 early_overrun_err; 126d172a5efSJohannes Berg __le32 crc32_good; 127d172a5efSJohannes Berg __le32 false_alarm_cnt; 128d172a5efSJohannes Berg __le32 fina_sync_err_cnt; 129d172a5efSJohannes Berg __le32 sfd_timeout; 130d172a5efSJohannes Berg __le32 fina_timeout; 131d172a5efSJohannes Berg __le32 unresponded_rts; 132d172a5efSJohannes Berg __le32 rxe_frame_lmt_overrun; 133d172a5efSJohannes Berg __le32 sent_ack_cnt; 134d172a5efSJohannes Berg __le32 sent_cts_cnt; 135d172a5efSJohannes Berg __le32 sent_ba_rsp_cnt; 136d172a5efSJohannes Berg __le32 dsp_self_kill; 137d172a5efSJohannes Berg __le32 mh_format_err; 138d172a5efSJohannes Berg __le32 re_acq_main_rssi_sum; 139d172a5efSJohannes Berg __le32 reserved; 140d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_PHY_API_S_VER_2 */ 141d172a5efSJohannes Berg 142d172a5efSJohannes Berg struct mvm_statistics_rx_ht_phy_v1 { 143d172a5efSJohannes Berg __le32 plcp_err; 144d172a5efSJohannes Berg __le32 overrun_err; 145d172a5efSJohannes Berg __le32 early_overrun_err; 146d172a5efSJohannes Berg __le32 crc32_good; 147d172a5efSJohannes Berg __le32 crc32_err; 148d172a5efSJohannes Berg __le32 mh_format_err; 149d172a5efSJohannes Berg __le32 agg_crc32_good; 150d172a5efSJohannes Berg __le32 agg_mpdu_cnt; 151d172a5efSJohannes Berg __le32 agg_cnt; 152d172a5efSJohannes Berg __le32 unsupport_mcs; 153d172a5efSJohannes Berg } __packed; /* STATISTICS_HT_RX_PHY_API_S_VER_1 */ 154d172a5efSJohannes Berg 155d172a5efSJohannes Berg struct mvm_statistics_rx_ht_phy { 156d172a5efSJohannes Berg __le32 mh_format_err; 157d172a5efSJohannes Berg __le32 agg_mpdu_cnt; 158d172a5efSJohannes Berg __le32 agg_cnt; 159d172a5efSJohannes Berg __le32 unsupport_mcs; 160d172a5efSJohannes Berg } __packed; /* STATISTICS_HT_RX_PHY_API_S_VER_2 */ 161d172a5efSJohannes Berg 162d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy_v3 { 163d172a5efSJohannes Berg __le32 preamble_cnt; 164d172a5efSJohannes Berg __le32 rx_detected_cnt; 165d172a5efSJohannes Berg __le32 bt_prio_defer_cnt; 166d172a5efSJohannes Berg __le32 bt_prio_kill_cnt; 167d172a5efSJohannes Berg __le32 few_bytes_cnt; 168d172a5efSJohannes Berg __le32 cts_timeout; 169d172a5efSJohannes Berg __le32 ack_timeout; 170d172a5efSJohannes Berg __le32 expected_ack_cnt; 171d172a5efSJohannes Berg __le32 actual_ack_cnt; 172d172a5efSJohannes Berg __le32 dump_msdu_cnt; 173d172a5efSJohannes Berg __le32 burst_abort_next_frame_mismatch_cnt; 174d172a5efSJohannes Berg __le32 burst_abort_missing_next_frame_cnt; 175d172a5efSJohannes Berg __le32 cts_timeout_collision; 176d172a5efSJohannes Berg __le32 ack_or_ba_timeout_collision; 177d172a5efSJohannes Berg } __packed; /* STATISTICS_TX_NON_PHY_API_S_VER_3 */ 178d172a5efSJohannes Berg 179d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy { 180d172a5efSJohannes Berg __le32 bt_prio_defer_cnt; 181d172a5efSJohannes Berg __le32 bt_prio_kill_cnt; 182d172a5efSJohannes Berg __le32 few_bytes_cnt; 183d172a5efSJohannes Berg __le32 cts_timeout; 184d172a5efSJohannes Berg __le32 ack_timeout; 185d172a5efSJohannes Berg __le32 dump_msdu_cnt; 186d172a5efSJohannes Berg __le32 burst_abort_next_frame_mismatch_cnt; 187d172a5efSJohannes Berg __le32 burst_abort_missing_next_frame_cnt; 188d172a5efSJohannes Berg __le32 cts_timeout_collision; 189d172a5efSJohannes Berg __le32 ack_or_ba_timeout_collision; 190d172a5efSJohannes Berg } __packed; /* STATISTICS_TX_NON_PHY_API_S_VER_4 */ 191d172a5efSJohannes Berg 192d172a5efSJohannes Berg #define MAX_CHAINS 3 193d172a5efSJohannes Berg 194d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy_agg { 195d172a5efSJohannes Berg __le32 ba_timeout; 196d172a5efSJohannes Berg __le32 ba_reschedule_frames; 197d172a5efSJohannes Berg __le32 scd_query_agg_frame_cnt; 198d172a5efSJohannes Berg __le32 scd_query_no_agg; 199d172a5efSJohannes Berg __le32 scd_query_agg; 200d172a5efSJohannes Berg __le32 scd_query_mismatch; 201d172a5efSJohannes Berg __le32 frame_not_ready; 202d172a5efSJohannes Berg __le32 underrun; 203d172a5efSJohannes Berg __le32 bt_prio_kill; 204d172a5efSJohannes Berg __le32 rx_ba_rsp_cnt; 205d172a5efSJohannes Berg __s8 txpower[MAX_CHAINS]; 206d172a5efSJohannes Berg __s8 reserved; 207d172a5efSJohannes Berg __le32 reserved2; 208d172a5efSJohannes Berg } __packed; /* STATISTICS_TX_NON_PHY_AGG_API_S_VER_1 */ 209d172a5efSJohannes Berg 210d172a5efSJohannes Berg struct mvm_statistics_tx_channel_width { 211d172a5efSJohannes Berg __le32 ext_cca_narrow_ch20[1]; 212d172a5efSJohannes Berg __le32 ext_cca_narrow_ch40[2]; 213d172a5efSJohannes Berg __le32 ext_cca_narrow_ch80[3]; 214d172a5efSJohannes Berg __le32 ext_cca_narrow_ch160[4]; 215d172a5efSJohannes Berg __le32 last_tx_ch_width_indx; 216d172a5efSJohannes Berg __le32 rx_detected_per_ch_width[4]; 217d172a5efSJohannes Berg __le32 success_per_ch_width[4]; 218d172a5efSJohannes Berg __le32 fail_per_ch_width[4]; 219d172a5efSJohannes Berg }; /* STATISTICS_TX_CHANNEL_WIDTH_API_S_VER_1 */ 220d172a5efSJohannes Berg 221d172a5efSJohannes Berg struct mvm_statistics_tx_v4 { 222d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy_v3 general; 223d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy_agg agg; 224d172a5efSJohannes Berg struct mvm_statistics_tx_channel_width channel_width; 225d172a5efSJohannes Berg } __packed; /* STATISTICS_TX_API_S_VER_4 */ 226d172a5efSJohannes Berg 227d172a5efSJohannes Berg struct mvm_statistics_tx { 228d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy general; 229d172a5efSJohannes Berg struct mvm_statistics_tx_non_phy_agg agg; 230d172a5efSJohannes Berg struct mvm_statistics_tx_channel_width channel_width; 231d172a5efSJohannes Berg } __packed; /* STATISTICS_TX_API_S_VER_5 */ 232d172a5efSJohannes Berg 233d172a5efSJohannes Berg 234d172a5efSJohannes Berg struct mvm_statistics_bt_activity { 235d172a5efSJohannes Berg __le32 hi_priority_tx_req_cnt; 236d172a5efSJohannes Berg __le32 hi_priority_tx_denied_cnt; 237d172a5efSJohannes Berg __le32 lo_priority_tx_req_cnt; 238d172a5efSJohannes Berg __le32 lo_priority_tx_denied_cnt; 239d172a5efSJohannes Berg __le32 hi_priority_rx_req_cnt; 240d172a5efSJohannes Berg __le32 hi_priority_rx_denied_cnt; 241d172a5efSJohannes Berg __le32 lo_priority_rx_req_cnt; 242d172a5efSJohannes Berg __le32 lo_priority_rx_denied_cnt; 243d172a5efSJohannes Berg } __packed; /* STATISTICS_BT_ACTIVITY_API_S_VER_1 */ 244d172a5efSJohannes Berg 245d172a5efSJohannes Berg struct mvm_statistics_general_common_v19 { 246d172a5efSJohannes Berg __le32 radio_temperature; 247d172a5efSJohannes Berg __le32 radio_voltage; 248d172a5efSJohannes Berg struct mvm_statistics_dbg dbg; 249d172a5efSJohannes Berg __le32 sleep_time; 250d172a5efSJohannes Berg __le32 slots_out; 251d172a5efSJohannes Berg __le32 slots_idle; 252d172a5efSJohannes Berg __le32 ttl_timestamp; 253d172a5efSJohannes Berg struct mvm_statistics_div slow_div; 254d172a5efSJohannes Berg __le32 rx_enable_counter; 255d172a5efSJohannes Berg /* 256d172a5efSJohannes Berg * num_of_sos_states: 257d172a5efSJohannes Berg * count the number of times we have to re-tune 258d172a5efSJohannes Berg * in order to get out of bad PHY status 259d172a5efSJohannes Berg */ 260d172a5efSJohannes Berg __le32 num_of_sos_states; 261d172a5efSJohannes Berg __le32 beacon_filtered; 262d172a5efSJohannes Berg __le32 missed_beacons; 263d172a5efSJohannes Berg u8 beacon_filter_average_energy; 264d172a5efSJohannes Berg u8 beacon_filter_reason; 265d172a5efSJohannes Berg u8 beacon_filter_current_energy; 266d172a5efSJohannes Berg u8 beacon_filter_reserved; 267d172a5efSJohannes Berg __le32 beacon_filter_delta_time; 268d172a5efSJohannes Berg struct mvm_statistics_bt_activity bt_activity; 269d172a5efSJohannes Berg __le64 rx_time; 270d172a5efSJohannes Berg __le64 on_time_rf; 271d172a5efSJohannes Berg __le64 on_time_scan; 272d172a5efSJohannes Berg __le64 tx_time; 273d172a5efSJohannes Berg } __packed; 274d172a5efSJohannes Berg 275d172a5efSJohannes Berg struct mvm_statistics_general_common { 276d172a5efSJohannes Berg __le32 radio_temperature; 277d172a5efSJohannes Berg struct mvm_statistics_dbg dbg; 278d172a5efSJohannes Berg __le32 sleep_time; 279d172a5efSJohannes Berg __le32 slots_out; 280d172a5efSJohannes Berg __le32 slots_idle; 281d172a5efSJohannes Berg __le32 ttl_timestamp; 282d172a5efSJohannes Berg struct mvm_statistics_div slow_div; 283d172a5efSJohannes Berg __le32 rx_enable_counter; 284d172a5efSJohannes Berg /* 285d172a5efSJohannes Berg * num_of_sos_states: 286d172a5efSJohannes Berg * count the number of times we have to re-tune 287d172a5efSJohannes Berg * in order to get out of bad PHY status 288d172a5efSJohannes Berg */ 289d172a5efSJohannes Berg __le32 num_of_sos_states; 290d172a5efSJohannes Berg __le32 beacon_filtered; 291d172a5efSJohannes Berg __le32 missed_beacons; 292d172a5efSJohannes Berg u8 beacon_filter_average_energy; 293d172a5efSJohannes Berg u8 beacon_filter_reason; 294d172a5efSJohannes Berg u8 beacon_filter_current_energy; 295d172a5efSJohannes Berg u8 beacon_filter_reserved; 296d172a5efSJohannes Berg __le32 beacon_filter_delta_time; 297d172a5efSJohannes Berg struct mvm_statistics_bt_activity bt_activity; 298d172a5efSJohannes Berg __le64 rx_time; 299d172a5efSJohannes Berg __le64 on_time_rf; 300d172a5efSJohannes Berg __le64 on_time_scan; 301d172a5efSJohannes Berg __le64 tx_time; 302d172a5efSJohannes Berg } __packed; /* STATISTICS_GENERAL_API_S_VER_10 */ 303d172a5efSJohannes Berg 304d172a5efSJohannes Berg struct mvm_statistics_general_v8 { 305d172a5efSJohannes Berg struct mvm_statistics_general_common_v19 common; 306d172a5efSJohannes Berg __le32 beacon_counter[NUM_MAC_INDEX]; 307d172a5efSJohannes Berg u8 beacon_average_energy[NUM_MAC_INDEX]; 308d172a5efSJohannes Berg u8 reserved[4 - (NUM_MAC_INDEX % 4)]; 309d172a5efSJohannes Berg } __packed; /* STATISTICS_GENERAL_API_S_VER_8 */ 310d172a5efSJohannes Berg 311606b9ab6SEmmanuel Grumbach struct mvm_statistics_general { 312d172a5efSJohannes Berg struct mvm_statistics_general_common common; 313d172a5efSJohannes Berg __le32 beacon_counter[MAC_INDEX_AUX]; 314d172a5efSJohannes Berg u8 beacon_average_energy[MAC_INDEX_AUX]; 315d172a5efSJohannes Berg u8 reserved[8 - MAC_INDEX_AUX]; 316d172a5efSJohannes Berg } __packed; /* STATISTICS_GENERAL_API_S_VER_10 */ 317d172a5efSJohannes Berg 318d172a5efSJohannes Berg /** 319d172a5efSJohannes Berg * struct mvm_statistics_load - RX statistics for multi-queue devices 320d172a5efSJohannes Berg * @air_time: accumulated air time, per mac 321d172a5efSJohannes Berg * @byte_count: accumulated byte count, per mac 322d172a5efSJohannes Berg * @pkt_count: accumulated packet count, per mac 323d172a5efSJohannes Berg * @avg_energy: average RSSI, per station 324d172a5efSJohannes Berg */ 325d172a5efSJohannes Berg struct mvm_statistics_load { 326d172a5efSJohannes Berg __le32 air_time[MAC_INDEX_AUX]; 327d172a5efSJohannes Berg __le32 byte_count[MAC_INDEX_AUX]; 328d172a5efSJohannes Berg __le32 pkt_count[MAC_INDEX_AUX]; 329be9ae34eSNathan Errera u8 avg_energy[IWL_MVM_STATION_COUNT_MAX]; 330d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_MAC_STATION_S_VER_3 */ 331d172a5efSJohannes Berg 332d172a5efSJohannes Berg struct mvm_statistics_load_v1 { 333d172a5efSJohannes Berg __le32 air_time[NUM_MAC_INDEX]; 334d172a5efSJohannes Berg __le32 byte_count[NUM_MAC_INDEX]; 335d172a5efSJohannes Berg __le32 pkt_count[NUM_MAC_INDEX]; 336be9ae34eSNathan Errera u8 avg_energy[IWL_MVM_STATION_COUNT_MAX]; 337d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_MAC_STATION_S_VER_1 */ 338d172a5efSJohannes Berg 339d172a5efSJohannes Berg struct mvm_statistics_rx { 340d172a5efSJohannes Berg struct mvm_statistics_rx_phy ofdm; 341d172a5efSJohannes Berg struct mvm_statistics_rx_phy cck; 342d172a5efSJohannes Berg struct mvm_statistics_rx_non_phy general; 343d172a5efSJohannes Berg struct mvm_statistics_rx_ht_phy ofdm_ht; 344d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_API_S_VER_4 */ 345d172a5efSJohannes Berg 346d172a5efSJohannes Berg struct mvm_statistics_rx_v3 { 347d172a5efSJohannes Berg struct mvm_statistics_rx_phy_v2 ofdm; 348d172a5efSJohannes Berg struct mvm_statistics_rx_phy_v2 cck; 349d172a5efSJohannes Berg struct mvm_statistics_rx_non_phy_v3 general; 350d172a5efSJohannes Berg struct mvm_statistics_rx_ht_phy_v1 ofdm_ht; 351d172a5efSJohannes Berg } __packed; /* STATISTICS_RX_API_S_VER_3 */ 352d172a5efSJohannes Berg 353d172a5efSJohannes Berg /* 354d172a5efSJohannes Berg * STATISTICS_NOTIFICATION = 0x9d (notification only, not a command) 355d172a5efSJohannes Berg * 356d172a5efSJohannes Berg * By default, uCode issues this notification after receiving a beacon 357d172a5efSJohannes Berg * while associated. To disable this behavior, set DISABLE_NOTIF flag in the 358d172a5efSJohannes Berg * STATISTICS_CMD (0x9c), below. 359d172a5efSJohannes Berg */ 360d172a5efSJohannes Berg 361d172a5efSJohannes Berg struct iwl_notif_statistics_v10 { 362d172a5efSJohannes Berg __le32 flag; 363d172a5efSJohannes Berg struct mvm_statistics_rx_v3 rx; 364d172a5efSJohannes Berg struct mvm_statistics_tx_v4 tx; 365d172a5efSJohannes Berg struct mvm_statistics_general_v8 general; 366d172a5efSJohannes Berg } __packed; /* STATISTICS_NTFY_API_S_VER_10 */ 367d172a5efSJohannes Berg 368d172a5efSJohannes Berg struct iwl_notif_statistics_v11 { 369d172a5efSJohannes Berg __le32 flag; 370d172a5efSJohannes Berg struct mvm_statistics_rx_v3 rx; 371d172a5efSJohannes Berg struct mvm_statistics_tx_v4 tx; 372d172a5efSJohannes Berg struct mvm_statistics_general_v8 general; 373d172a5efSJohannes Berg struct mvm_statistics_load_v1 load_stats; 374d172a5efSJohannes Berg } __packed; /* STATISTICS_NTFY_API_S_VER_11 */ 375d172a5efSJohannes Berg 376606b9ab6SEmmanuel Grumbach struct iwl_notif_statistics { 377d172a5efSJohannes Berg __le32 flag; 378d172a5efSJohannes Berg struct mvm_statistics_rx rx; 379d172a5efSJohannes Berg struct mvm_statistics_tx tx; 380606b9ab6SEmmanuel Grumbach struct mvm_statistics_general general; 381d172a5efSJohannes Berg struct mvm_statistics_load load_stats; 382d172a5efSJohannes Berg } __packed; /* STATISTICS_NTFY_API_S_VER_13 */ 383d172a5efSJohannes Berg 384d172a5efSJohannes Berg /** 385d172a5efSJohannes Berg * enum iwl_statistics_notif_flags - flags used in statistics notification 386d172a5efSJohannes Berg * @IWL_STATISTICS_REPLY_FLG_CLEAR: statistics were cleared after this report 387d172a5efSJohannes Berg */ 388d172a5efSJohannes Berg enum iwl_statistics_notif_flags { 389d172a5efSJohannes Berg IWL_STATISTICS_REPLY_FLG_CLEAR = 0x1, 390d172a5efSJohannes Berg }; 391d172a5efSJohannes Berg 392d172a5efSJohannes Berg /** 393d172a5efSJohannes Berg * enum iwl_statistics_cmd_flags - flags used in statistics command 394d172a5efSJohannes Berg * @IWL_STATISTICS_FLG_CLEAR: request to clear statistics after the report 395d172a5efSJohannes Berg * that's sent after this command 396d172a5efSJohannes Berg * @IWL_STATISTICS_FLG_DISABLE_NOTIF: disable unilateral statistics 397d172a5efSJohannes Berg * notifications 398d172a5efSJohannes Berg */ 399d172a5efSJohannes Berg enum iwl_statistics_cmd_flags { 400d172a5efSJohannes Berg IWL_STATISTICS_FLG_CLEAR = 0x1, 401d172a5efSJohannes Berg IWL_STATISTICS_FLG_DISABLE_NOTIF = 0x2, 402d172a5efSJohannes Berg }; 403d172a5efSJohannes Berg 404d172a5efSJohannes Berg /** 405d172a5efSJohannes Berg * struct iwl_statistics_cmd - statistics config command 406d172a5efSJohannes Berg * @flags: flags from &enum iwl_statistics_cmd_flags 407d172a5efSJohannes Berg */ 408d172a5efSJohannes Berg struct iwl_statistics_cmd { 409d172a5efSJohannes Berg __le32 flags; 410d172a5efSJohannes Berg } __packed; /* STATISTICS_CMD_API_S_VER_1 */ 411d172a5efSJohannes Berg 412853f4954SMordechay Goodstein #define MAX_BCAST_FILTER_NUM 8 413853f4954SMordechay Goodstein 414853f4954SMordechay Goodstein /** 415853f4954SMordechay Goodstein * enum iwl_fw_statistics_type 416853f4954SMordechay Goodstein * 417853f4954SMordechay Goodstein * @FW_STATISTICS_OPERATIONAL: operational statistics 418853f4954SMordechay Goodstein * @FW_STATISTICS_PHY: phy statistics 419853f4954SMordechay Goodstein * @FW_STATISTICS_MAC: mac statistics 420853f4954SMordechay Goodstein * @FW_STATISTICS_RX: rx statistics 421853f4954SMordechay Goodstein * @FW_STATISTICS_TX: tx statistics 422853f4954SMordechay Goodstein * @FW_STATISTICS_DURATION: duration statistics 423853f4954SMordechay Goodstein * @FW_STATISTICS_HE: he statistics 424853f4954SMordechay Goodstein */ 425853f4954SMordechay Goodstein enum iwl_fw_statistics_type { 426853f4954SMordechay Goodstein FW_STATISTICS_OPERATIONAL, 427853f4954SMordechay Goodstein FW_STATISTICS_PHY, 428853f4954SMordechay Goodstein FW_STATISTICS_MAC, 429853f4954SMordechay Goodstein FW_STATISTICS_RX, 430853f4954SMordechay Goodstein FW_STATISTICS_TX, 431853f4954SMordechay Goodstein FW_STATISTICS_DURATION, 432853f4954SMordechay Goodstein FW_STATISTICS_HE, 433853f4954SMordechay Goodstein }; /* FW_STATISTICS_TYPE_API_E_VER_1 */ 434853f4954SMordechay Goodstein 435*6324c173SMordechay Goodstein #define IWL_STATISTICS_TYPE_MSK 0x7f 436853f4954SMordechay Goodstein /** 437853f4954SMordechay Goodstein * struct iwl_statistics_ntfy_hdr 438853f4954SMordechay Goodstein * 439853f4954SMordechay Goodstein * @type: struct type 440853f4954SMordechay Goodstein * @version: version of the struct 441853f4954SMordechay Goodstein * @size: size in bytes 442853f4954SMordechay Goodstein */ 443853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr { 444853f4954SMordechay Goodstein u8 type; 445853f4954SMordechay Goodstein u8 version; 446853f4954SMordechay Goodstein __le16 size; 447853f4954SMordechay Goodstein }; /* STATISTICS_NTFY_HDR_API_S_VER_1 */ 448853f4954SMordechay Goodstein 449853f4954SMordechay Goodstein /** 450*6324c173SMordechay Goodstein * struct iwl_statistics_ntfy_per_mac 451*6324c173SMordechay Goodstein * 452*6324c173SMordechay Goodstein * @beacon_filter_average_energy: Average energy [-dBm] of the 2 453*6324c173SMordechay Goodstein * antennas. 454*6324c173SMordechay Goodstein * @air_time: air time 455*6324c173SMordechay Goodstein * @beacon_counter: all beacons (both filtered and not filtered) 456*6324c173SMordechay Goodstein * @beacon_average_energy: all beacons (both filtered and not 457*6324c173SMordechay Goodstein * filtered) 458*6324c173SMordechay Goodstein * @beacon_rssi_a: beacon RSSI on antenna A 459*6324c173SMordechay Goodstein * @beacon_rssi_b: beacon RSSI on antenna B 460*6324c173SMordechay Goodstein * @rx_bytes: RX byte count 461*6324c173SMordechay Goodstein */ 462*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_mac { 463*6324c173SMordechay Goodstein __le32 beacon_filter_average_energy; 464*6324c173SMordechay Goodstein __le32 air_time; 465*6324c173SMordechay Goodstein __le32 beacon_counter; 466*6324c173SMordechay Goodstein __le32 beacon_average_energy; 467*6324c173SMordechay Goodstein __le32 beacon_rssi_a; 468*6324c173SMordechay Goodstein __le32 beacon_rssi_b; 469*6324c173SMordechay Goodstein __le32 rx_bytes; 470*6324c173SMordechay Goodstein } __packed; /* STATISTICS_NTFY_PER_MAC_API_S_VER_1 */ 471*6324c173SMordechay Goodstein 472*6324c173SMordechay Goodstein #define IWL_STATS_MAX_BW_INDEX 5 473*6324c173SMordechay Goodstein /** struct iwl_statistics_ntfy_per_phy 474*6324c173SMordechay Goodstein * @channel_load: channel load 475*6324c173SMordechay Goodstein * @channel_load_by_us: device contribution to MCLM 476*6324c173SMordechay Goodstein * @channel_load_not_by_us: other devices' contribution to MCLM 477*6324c173SMordechay Goodstein * @clt: CLT HW timer (TIM_CH_LOAD2) 478*6324c173SMordechay Goodstein * @act: active accumulator SW 479*6324c173SMordechay Goodstein * @elp: elapsed time accumulator SW 480*6324c173SMordechay Goodstein * @rx_detected_per_ch_width: number of deferred TX per channel width, 481*6324c173SMordechay Goodstein * 0 - 20, 1/2/3 - 40/80/160 482*6324c173SMordechay Goodstein * @success_per_ch_width: number of frames that got ACK/BACK/CTS 483*6324c173SMordechay Goodstein * per channel BW. note, BACK counted as 1 484*6324c173SMordechay Goodstein * @fail_per_ch_width: number of frames that didn't get ACK/BACK/CTS 485*6324c173SMordechay Goodstein * per channel BW. note BACK counted as 1 486*6324c173SMordechay Goodstein * @last_tx_ch_width_indx: last txed frame channel width index 487*6324c173SMordechay Goodstein */ 488*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_phy { 489*6324c173SMordechay Goodstein __le32 channel_load; 490*6324c173SMordechay Goodstein __le32 channel_load_by_us; 491*6324c173SMordechay Goodstein __le32 channel_load_not_by_us; 492*6324c173SMordechay Goodstein __le32 clt; 493*6324c173SMordechay Goodstein __le32 act; 494*6324c173SMordechay Goodstein __le32 elp; 495*6324c173SMordechay Goodstein __le32 rx_detected_per_ch_width[IWL_STATS_MAX_BW_INDEX]; 496*6324c173SMordechay Goodstein __le32 success_per_ch_width[IWL_STATS_MAX_BW_INDEX]; 497*6324c173SMordechay Goodstein __le32 fail_per_ch_width[IWL_STATS_MAX_BW_INDEX]; 498*6324c173SMordechay Goodstein __le32 last_tx_ch_width_indx; 499*6324c173SMordechay Goodstein } __packed; /* STATISTICS_NTFY_PER_PHY_API_S_VER_1 */ 500*6324c173SMordechay Goodstein 501*6324c173SMordechay Goodstein /** 502*6324c173SMordechay Goodstein * struct iwl_statistics_ntfy_per_sta 503*6324c173SMordechay Goodstein * 504*6324c173SMordechay Goodstein * @average_energy: in fact it is minus the energy.. 505*6324c173SMordechay Goodstein */ 506*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_sta { 507*6324c173SMordechay Goodstein __le32 average_energy; 508*6324c173SMordechay Goodstein } __packed; /* STATISTICS_NTFY_PER_STA_API_S_VER_1 */ 509*6324c173SMordechay Goodstein 510*6324c173SMordechay Goodstein #define IWL_STATS_MAX_PHY_OPERTINAL 3 511*6324c173SMordechay Goodstein /** 512853f4954SMordechay Goodstein * struct iwl_statistics_operational_ntfy 513853f4954SMordechay Goodstein * 514853f4954SMordechay Goodstein * @hdr: general statistics header 515853f4954SMordechay Goodstein * @flags: bitmap of possible notification structures 516*6324c173SMordechay Goodstein * @per_mac_stats: per mac statistics, &struct iwl_statistics_ntfy_per_mac 517*6324c173SMordechay Goodstein * @per_phy_stats: per phy statistics, &struct iwl_statistics_ntfy_per_phy 518*6324c173SMordechay Goodstein * @per_sta_stats: per sta statistics, &struct iwl_statistics_ntfy_per_sta 519*6324c173SMordechay Goodstein * @rx_time: rx time 520*6324c173SMordechay Goodstein * @tx_time: usec the radio is transmitting. 521*6324c173SMordechay Goodstein * @on_time_rf: The total time in usec the RF is awake. 522*6324c173SMordechay Goodstein * @on_time_scan: usec the radio is awake due to scan. 523*6324c173SMordechay Goodstein */ 524*6324c173SMordechay Goodstein struct iwl_statistics_operational_ntfy { 525*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 526*6324c173SMordechay Goodstein __le32 flags; 527*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_mac per_mac_stats[MAC_INDEX_AUX]; 528*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_phy per_phy_stats[IWL_STATS_MAX_PHY_OPERTINAL]; 529*6324c173SMordechay Goodstein struct iwl_statistics_ntfy_per_sta per_sta_stats[IWL_MVM_STATION_COUNT_MAX]; 530*6324c173SMordechay Goodstein __le64 rx_time; 531*6324c173SMordechay Goodstein __le64 tx_time; 532*6324c173SMordechay Goodstein __le64 on_time_rf; 533*6324c173SMordechay Goodstein __le64 on_time_scan; 534*6324c173SMordechay Goodstein } __packed; /* STATISTICS_OPERATIONAL_NTFY_API_S_VER_15 */ 535*6324c173SMordechay Goodstein 536*6324c173SMordechay Goodstein /** 537*6324c173SMordechay Goodstein * struct iwl_statistics_operational_ntfy_ver_14 538*6324c173SMordechay Goodstein * 539*6324c173SMordechay Goodstein * @hdr: general statistics header 540*6324c173SMordechay Goodstein * @flags: bitmap of possible notification structures 541853f4954SMordechay Goodstein * @mac_id: mac on which the beacon was received 542853f4954SMordechay Goodstein * @beacon_filter_average_energy: Average energy [-dBm] of the 2 543853f4954SMordechay Goodstein * antennas. 544853f4954SMordechay Goodstein * @beacon_filter_reason: beacon filter reason 545853f4954SMordechay Goodstein * @radio_temperature: radio temperature 546853f4954SMordechay Goodstein * @air_time: air time 547853f4954SMordechay Goodstein * @beacon_counter: all beacons (both filtered and not filtered) 548853f4954SMordechay Goodstein * @beacon_average_energy: all beacons (both filtered and not 549853f4954SMordechay Goodstein * filtered) 550853f4954SMordechay Goodstein * @beacon_rssi_a: beacon RSSI on antenna A 551853f4954SMordechay Goodstein * @beacon_rssi_b: beacon RSSI on antenna B 552853f4954SMordechay Goodstein * @rx_bytes: per MAC RX byte count 553853f4954SMordechay Goodstein * @rx_time: rx time 554853f4954SMordechay Goodstein * @tx_time: usec the radio is transmitting. 555853f4954SMordechay Goodstein * @on_time_rf: The total time in usec the RF is awake. 556853f4954SMordechay Goodstein * @on_time_scan: usec the radio is awake due to scan. 557853f4954SMordechay Goodstein * @average_energy: in fact it is minus the energy.. 558853f4954SMordechay Goodstein * @reserved: reserved 559853f4954SMordechay Goodstein */ 560*6324c173SMordechay Goodstein struct iwl_statistics_operational_ntfy_ver_14 { 561853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 562853f4954SMordechay Goodstein __le32 flags; 563853f4954SMordechay Goodstein __le32 mac_id; 564853f4954SMordechay Goodstein __le32 beacon_filter_average_energy; 565853f4954SMordechay Goodstein __le32 beacon_filter_reason; 566853f4954SMordechay Goodstein __le32 radio_temperature; 567853f4954SMordechay Goodstein __le32 air_time[MAC_INDEX_AUX]; 568853f4954SMordechay Goodstein __le32 beacon_counter[MAC_INDEX_AUX]; 569853f4954SMordechay Goodstein __le32 beacon_average_energy[MAC_INDEX_AUX]; 570853f4954SMordechay Goodstein __le32 beacon_rssi_a; 571853f4954SMordechay Goodstein __le32 beacon_rssi_b; 572853f4954SMordechay Goodstein __le32 rx_bytes[MAC_INDEX_AUX]; 573853f4954SMordechay Goodstein __le64 rx_time; 574853f4954SMordechay Goodstein __le64 tx_time; 575853f4954SMordechay Goodstein __le64 on_time_rf; 576853f4954SMordechay Goodstein __le64 on_time_scan; 577853f4954SMordechay Goodstein __le32 average_energy[IWL_MVM_STATION_COUNT_MAX]; 578853f4954SMordechay Goodstein __le32 reserved; 579853f4954SMordechay Goodstein } __packed; /* STATISTICS_OPERATIONAL_NTFY_API_S_VER_14 */ 580853f4954SMordechay Goodstein 581853f4954SMordechay Goodstein /** 582853f4954SMordechay Goodstein * struct iwl_statistics_phy_ntfy 583853f4954SMordechay Goodstein * 584853f4954SMordechay Goodstein * @hdr: general statistics header 585853f4954SMordechay Goodstein * RX PHY related statistics 586853f4954SMordechay Goodstein * @energy_and_config: ??? 587853f4954SMordechay Goodstein * @rssi_band: @31:24 rssiAllBand_B, 23:16 rssiInBand_B, 15:8 588853f4954SMordechay Goodstein * rssiAllBand_A, 7:0 rssiInBand_A 589853f4954SMordechay Goodstein * @agc_word: @31:16 agcWord_B, 15:0 agcWord_A 590853f4954SMordechay Goodstein * @agc_gain: @19:10 agcGain_B, 9:0 agcGain_A 591853f4954SMordechay Goodstein * @dfe_gain: @19:10 dfeGain_B, 9:0 dfeGain_A 592853f4954SMordechay Goodstein * @snr_calc_main: @18:0 snrCalcMain 593853f4954SMordechay Goodstein * @energy_calc_main: @18:0 energyCalcMain 594853f4954SMordechay Goodstein * @snr_calc_aux: @18:0 snrCalcAux 595853f4954SMordechay Goodstein * @dsp_dc_estim_a: @27:14 dspDcEstimQA, 13:0 dspDcEstimIA 596853f4954SMordechay Goodstein * @dsp_dc_estim_b: @27:14 dspDcEstimQB, 13:0 dspDcEstimIB 597853f4954SMordechay Goodstein * @ina_detec_type_and_ofdm_corr_comb: @31:31 inaDetectCckMrc, 598853f4954SMordechay Goodstein * 30:27 inaDetectType, 26:0 ofdmCorrComb 599853f4954SMordechay Goodstein * @cw_corr_comb: @26:0 cwCorrComb 600853f4954SMordechay Goodstein * @rssi_comb: @25:0 rssiComb 601853f4954SMordechay Goodstein * @auto_corr_cck: @23:12 autoCck, 11:00 crossCck 602853f4954SMordechay Goodstein * @ofdm_fine_freq_and_pina_freq_err: @18:7 ofdmFineFreq, 6:0 603853f4954SMordechay Goodstein * ofdmPinaFreqErr 604853f4954SMordechay Goodstein * @snrm_evm_main: @31:0 snrmEvmMain 605853f4954SMordechay Goodstein * @snrm_evm_aux: @31:0 snrmEvmAux 606853f4954SMordechay Goodstein * @rx_rate: @31:0 rate 607853f4954SMordechay Goodstein * TX PHY related statistics 608853f4954SMordechay Goodstein * @per_chain_enums_and_dsp_atten_a: @perChainEnumsAndDspAtten 609853f4954SMordechay Goodstein * (per version) 610853f4954SMordechay Goodstein * @target_power_and_power_meas_a: @31:16 targetPower_A, 15:0 611853f4954SMordechay Goodstein * powerMeasuredCalc_A 612853f4954SMordechay Goodstein * @tx_config_as_i_and_ac_a: @31:16 txConfigAsI_A, 15:0 613853f4954SMordechay Goodstein * txConfigAc_A 614853f4954SMordechay Goodstein * @predist_dcq_and_dci_a: @31:16 predist_dci_A, 15:0 615853f4954SMordechay Goodstein * predist_dcq_A 616853f4954SMordechay Goodstein * @per_chain_enums_and_dsp_atten_b: @perChainEnumsAndDspAtten 617853f4954SMordechay Goodstein * (per version) 618853f4954SMordechay Goodstein * @target_power_and_power_meas_b: @31:16 targetPower_B, 15:0 619853f4954SMordechay Goodstein * powerMeasuredCalc_B 620853f4954SMordechay Goodstein * @tx_config_as_i_and_ac_b: @31:16 txConfigAsI_B, 15:0 621853f4954SMordechay Goodstein * txConfigAc_B 622853f4954SMordechay Goodstein * @predist_dcq_and_dci_b: @31:16 predist_dci_B, 15:0 623853f4954SMordechay Goodstein * predist_dcq_B 624853f4954SMordechay Goodstein * @tx_rate: @31:0 rate 625853f4954SMordechay Goodstein * @tlc_backoff: @31:0 tlcBackoff 626853f4954SMordechay Goodstein * @mpapd_calib_mode_mpapd_calib_type_a: @31:16 627853f4954SMordechay Goodstein * mpapdCalibMode_A, 15:0 mpapdCalibType_A 628853f4954SMordechay Goodstein * @psat_and_phy_power_limit_a: @31:16 psat_A, 15:0 629853f4954SMordechay Goodstein * phyPowerLimit_A 630853f4954SMordechay Goodstein * @sar_and_regulatory_power_limit_a: @31:16 sarPowerLimit_A, 631853f4954SMordechay Goodstein * 15:0 regulatoryPowerLimit_A 632853f4954SMordechay Goodstein * @mpapd_calib_mode_mpapd_calib_type_b: @31:16 633853f4954SMordechay Goodstein * mpapdCalibMode_B, 15:0 mpapdCalibType_B 634853f4954SMordechay Goodstein * @psat_and_phy_power_limit_b: @31:16 psat_B, 15:0 635853f4954SMordechay Goodstein * phyPowerLimit_B 636853f4954SMordechay Goodstein * @sar_and_regulatory_power_limit_b: @31:16 sarPowerLimit_B, 637853f4954SMordechay Goodstein * 15:0 regulatoryPowerLimit_B 638853f4954SMordechay Goodstein * @srd_and_driver_power_limits: @31:16 srdPowerLimit, 15:0 639853f4954SMordechay Goodstein * driverPowerLimit 640853f4954SMordechay Goodstein * @reserved: reserved 641853f4954SMordechay Goodstein */ 642853f4954SMordechay Goodstein struct iwl_statistics_phy_ntfy { 643853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 644853f4954SMordechay Goodstein __le32 energy_and_config; 645853f4954SMordechay Goodstein __le32 rssi_band; 646853f4954SMordechay Goodstein __le32 agc_word; 647853f4954SMordechay Goodstein __le32 agc_gain; 648853f4954SMordechay Goodstein __le32 dfe_gain; 649853f4954SMordechay Goodstein __le32 snr_calc_main; 650853f4954SMordechay Goodstein __le32 energy_calc_main; 651853f4954SMordechay Goodstein __le32 snr_calc_aux; 652853f4954SMordechay Goodstein __le32 dsp_dc_estim_a; 653853f4954SMordechay Goodstein __le32 dsp_dc_estim_b; 654853f4954SMordechay Goodstein __le32 ina_detec_type_and_ofdm_corr_comb; 655853f4954SMordechay Goodstein __le32 cw_corr_comb; 656853f4954SMordechay Goodstein __le32 rssi_comb; 657853f4954SMordechay Goodstein __le32 auto_corr_cck; 658853f4954SMordechay Goodstein __le32 ofdm_fine_freq_and_pina_freq_err; 659853f4954SMordechay Goodstein __le32 snrm_evm_main; 660853f4954SMordechay Goodstein __le32 snrm_evm_aux; 661853f4954SMordechay Goodstein __le32 rx_rate; 662853f4954SMordechay Goodstein __le32 per_chain_enums_and_dsp_atten_a; 663853f4954SMordechay Goodstein __le32 target_power_and_power_meas_a; 664853f4954SMordechay Goodstein __le32 tx_config_as_i_and_ac_a; 665853f4954SMordechay Goodstein __le32 predist_dcq_and_dci_a; 666853f4954SMordechay Goodstein __le32 per_chain_enums_and_dsp_atten_b; 667853f4954SMordechay Goodstein __le32 target_power_and_power_meas_b; 668853f4954SMordechay Goodstein __le32 tx_config_as_i_and_ac_b; 669853f4954SMordechay Goodstein __le32 predist_dcq_and_dci_b; 670853f4954SMordechay Goodstein __le32 tx_rate; 671853f4954SMordechay Goodstein __le32 tlc_backoff; 672853f4954SMordechay Goodstein __le32 mpapd_calib_mode_mpapd_calib_type_a; 673853f4954SMordechay Goodstein __le32 psat_and_phy_power_limit_a; 674853f4954SMordechay Goodstein __le32 sar_and_regulatory_power_limit_a; 675853f4954SMordechay Goodstein __le32 mpapd_calib_mode_mpapd_calib_type_b; 676853f4954SMordechay Goodstein __le32 psat_and_phy_power_limit_b; 677853f4954SMordechay Goodstein __le32 sar_and_regulatory_power_limit_b; 678853f4954SMordechay Goodstein __le32 srd_and_driver_power_limits; 679853f4954SMordechay Goodstein __le32 reserved; 680853f4954SMordechay Goodstein } __packed; /* STATISTICS_PHY_NTFY_API_S_VER_1 */ 681853f4954SMordechay Goodstein 682853f4954SMordechay Goodstein /** 683853f4954SMordechay Goodstein * struct iwl_statistics_mac_ntfy 684853f4954SMordechay Goodstein * 685853f4954SMordechay Goodstein * @hdr: general statistics header 686853f4954SMordechay Goodstein * @bcast_filter_passed_per_mac: bcast filter passed per mac 687853f4954SMordechay Goodstein * @bcast_filter_dropped_per_mac: bcast filter dropped per mac 688853f4954SMordechay Goodstein * @bcast_filter_passed_per_filter: bcast filter passed per filter 689853f4954SMordechay Goodstein * @bcast_filter_dropped_per_filter: bcast filter dropped per filter 690853f4954SMordechay Goodstein * @reserved: reserved 691853f4954SMordechay Goodstein */ 692853f4954SMordechay Goodstein struct iwl_statistics_mac_ntfy { 693853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 694853f4954SMordechay Goodstein __le32 bcast_filter_passed_per_mac[NUM_MAC_INDEX_CDB]; 695853f4954SMordechay Goodstein __le32 bcast_filter_dropped_per_mac[NUM_MAC_INDEX_CDB]; 696853f4954SMordechay Goodstein __le32 bcast_filter_passed_per_filter[MAX_BCAST_FILTER_NUM]; 697853f4954SMordechay Goodstein __le32 bcast_filter_dropped_per_filter[MAX_BCAST_FILTER_NUM]; 698853f4954SMordechay Goodstein __le32 reserved; 699853f4954SMordechay Goodstein } __packed; /* STATISTICS_MAC_NTFY_API_S_VER_1 */ 700853f4954SMordechay Goodstein 701853f4954SMordechay Goodstein /** 702853f4954SMordechay Goodstein * struct iwl_statistics_rx_ntfy 703853f4954SMordechay Goodstein * 704853f4954SMordechay Goodstein * @hdr: general statistics header 705853f4954SMordechay Goodstein * @rx_agg_mpdu_cnt: aggregation frame count (number of 706853f4954SMordechay Goodstein * delimiters) 707853f4954SMordechay Goodstein * @rx_agg_cnt: number of RX Aggregations 708853f4954SMordechay Goodstein * @unsupported_mcs: number of PLCP headers that have rate which 709853f4954SMordechay Goodstein * is unsupported by DSP 710853f4954SMordechay Goodstein * @bogus_cts: CTS received when not expecting CTS 711853f4954SMordechay Goodstein * @bogus_ack: ACK received when not expecting ACK 712853f4954SMordechay Goodstein * @rx_byte_count: ??? 713853f4954SMordechay Goodstein * @rx_packet_count: ??? 714853f4954SMordechay Goodstein * @missed_beacons: ??? 715853f4954SMordechay Goodstein * @unresponded_rts: un-responded RTS, due to NAV not zero 716853f4954SMordechay Goodstein * @rxe_frame_limit_overrun: RXE got frame limit overrun 717853f4954SMordechay Goodstein * @sent_ba_rsp_cnt: BA response TX count 718853f4954SMordechay Goodstein * @late_rx_handle: count the number of times the RX path was 719853f4954SMordechay Goodstein * aborted due to late entry 720853f4954SMordechay Goodstein * @num_bt_kills: ??? 721853f4954SMordechay Goodstein * @reserved: reserved 722853f4954SMordechay Goodstein */ 723853f4954SMordechay Goodstein struct iwl_statistics_rx_ntfy { 724853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 725853f4954SMordechay Goodstein __le32 rx_agg_mpdu_cnt; 726853f4954SMordechay Goodstein __le32 rx_agg_cnt; 727853f4954SMordechay Goodstein __le32 unsupported_mcs; 728853f4954SMordechay Goodstein __le32 bogus_cts; 729853f4954SMordechay Goodstein __le32 bogus_ack; 730853f4954SMordechay Goodstein __le32 rx_byte_count[MAC_INDEX_AUX]; 731853f4954SMordechay Goodstein __le32 rx_packet_count[MAC_INDEX_AUX]; 732853f4954SMordechay Goodstein __le32 missed_beacons; 733853f4954SMordechay Goodstein __le32 unresponded_rts; 734853f4954SMordechay Goodstein __le32 rxe_frame_limit_overrun; 735853f4954SMordechay Goodstein __le32 sent_ba_rsp_cnt; 736853f4954SMordechay Goodstein __le32 late_rx_handle; 737853f4954SMordechay Goodstein __le32 num_bt_kills; 738853f4954SMordechay Goodstein __le32 reserved; 739853f4954SMordechay Goodstein } __packed; /* STATISTICS_RX_NTFY_API_S_VER_1 */ 740853f4954SMordechay Goodstein 741853f4954SMordechay Goodstein /** 742853f4954SMordechay Goodstein * struct iwl_statistics_tx_ntfy 743853f4954SMordechay Goodstein * 744853f4954SMordechay Goodstein * @hdr: general statistics header 745853f4954SMordechay Goodstein * @cts_timeout: timeout when waiting for CTS 746853f4954SMordechay Goodstein * @ack_timeout: timeout when waiting for ACK 747853f4954SMordechay Goodstein * @dump_msdu_cnt: number of MSDUs that were dumped due to any 748853f4954SMordechay Goodstein * reason 749853f4954SMordechay Goodstein * @burst_abort_missing_next_frame_cnt: number of times a burst 750853f4954SMordechay Goodstein * was aborted due to missing next frame bytes in txfifo 751853f4954SMordechay Goodstein * number of times got timeout when waiting for CTS/ACK/BA and energy was 752853f4954SMordechay Goodstein * detected just after sending the RTS/DATA. this statistics may help getting 753853f4954SMordechay Goodstein * interesting indicators, like the likelihood of collision (so the benefit of 754853f4954SMordechay Goodstein * protection may be estimated Vs. its cost). Or how many of the failures are 755853f4954SMordechay Goodstein * due to collision and how many due to SNR. 756853f4954SMordechay Goodstein * For Link-quality the CTS collision indication is more reliable then the ACK 757853f4954SMordechay Goodstein * collision indication as the RTS frame is short and has more chance that the 758853f4954SMordechay Goodstein * frame/s which caused the collision continue after the RTS was sent. 759853f4954SMordechay Goodstein * @cts_timeout_collision: ??? 760853f4954SMordechay Goodstein * ACK/BA failed and energy as detected after DATA 761853f4954SMordechay Goodstein * Note: to get the collision ratio need to: 762853f4954SMordechay Goodstein * ackOrBaTimeoutCollision / (ack_timeout + ba_timeout) 763853f4954SMordechay Goodstein * @ack_or_ba_timeout_collision: ??? 764853f4954SMordechay Goodstein * @ba_timeout: timeout when waiting for immediate BA response 765853f4954SMordechay Goodstein * @ba_reschedule_frames: failed to get BA response and 766853f4954SMordechay Goodstein * rescheduled all the non-ACKed frames 767853f4954SMordechay Goodstein * gives the avarage number of frames inside aggregation 768853f4954SMordechay Goodstein * @scd_query_agg_frame_cnt: ??? 769853f4954SMordechay Goodstein * @scd_query_no_agg: scheduler query prevented aggregation 770853f4954SMordechay Goodstein * @scd_query_agg: scheduler query allowed aggregation 771853f4954SMordechay Goodstein * @scd_query_mismatch: scheduler query inaccurate, either too 772853f4954SMordechay Goodstein * short or too long 773853f4954SMordechay Goodstein * @agg_terminated_underrun: aggregation was terminated due to 774853f4954SMordechay Goodstein * underrun 775853f4954SMordechay Goodstein * @agg_terminated_bt_prio_kill: aggregation was terminated due 776853f4954SMordechay Goodstein * to BT 777853f4954SMordechay Goodstein * @tx_kill_on_long_retry: count the tx frames dropped due to 778853f4954SMordechay Goodstein * long retry limit (DATA frame failed) 779853f4954SMordechay Goodstein * @tx_kill_on_short_retry: count the tx frames dropped due to 780853f4954SMordechay Goodstein * short retry limit (RTS frame failed) 781853f4954SMordechay Goodstein * TX deffer on energy. This counter is reset on each successful transmit. 782853f4954SMordechay Goodstein * When timer exceed TX deffer limit than will be uCode assert. 783853f4954SMordechay Goodstein * @tx_deffer_counter: ??? 784853f4954SMordechay Goodstein * @tx_deffer_base_time: Keep the time of the last successful 785853f4954SMordechay Goodstein * transmit 786853f4954SMordechay Goodstein * @tx_underrun: TX killed due to underrun 787853f4954SMordechay Goodstein * @bt_defer: TX deferred due to BT priority, so probably TX was 788853f4954SMordechay Goodstein * not started. 789853f4954SMordechay Goodstein * @tx_kill_on_dsp_timeout: TX killed on DSP problem detected 790853f4954SMordechay Goodstein * @tx_kill_on_immediate_quiet: TX killed due to immediate quiet 791853f4954SMordechay Goodstein * @kill_ba_cnt: number of times sending BA failed 792853f4954SMordechay Goodstein * @kill_ack_cnt: number of times sending ACK failed 793853f4954SMordechay Goodstein * @kill_cts_cnt: number of times sending CTS failed 794853f4954SMordechay Goodstein * @burst_terminated: Count burst or fragmentation termination 795853f4954SMordechay Goodstein * occurrence 796853f4954SMordechay Goodstein * @late_tx_vec_wr_cnt: ??? 797853f4954SMordechay Goodstein * TX is not sent because ucode failed to notify the TRM in SIFS-delta from 798853f4954SMordechay Goodstein * ON_AIR deassertion. 799853f4954SMordechay Goodstein * @late_rx2_tx_cnt: ??? 800853f4954SMordechay Goodstein * @scd_query_cnt: count the times SCD query was done to check 801853f4954SMordechay Goodstein * for TX AGG 802853f4954SMordechay Goodstein * @tx_frames_acked_in_agg: count the number of frames 803853f4954SMordechay Goodstein * transmitted inside AGG and were successful 804853f4954SMordechay Goodstein * @last_tx_ch_width_indx: ??? 805853f4954SMordechay Goodstein * number of deferred TX per channel width, 0 - 20, 1/2/3 - 40/80/160 806853f4954SMordechay Goodstein * @rx_detected_per_ch_width: ??? 807853f4954SMordechay Goodstein * @success_per_ch_width: ??? 808853f4954SMordechay Goodstein * @fail_per_ch_width: ??? 809853f4954SMordechay Goodstein * @reserved: reserved 810853f4954SMordechay Goodstein */ 811853f4954SMordechay Goodstein struct iwl_statistics_tx_ntfy { 812853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 813853f4954SMordechay Goodstein __le32 cts_timeout; 814853f4954SMordechay Goodstein __le32 ack_timeout; 815853f4954SMordechay Goodstein __le32 dump_msdu_cnt; 816853f4954SMordechay Goodstein __le32 burst_abort_missing_next_frame_cnt; 817853f4954SMordechay Goodstein __le32 cts_timeout_collision; 818853f4954SMordechay Goodstein __le32 ack_or_ba_timeout_collision; 819853f4954SMordechay Goodstein __le32 ba_timeout; 820853f4954SMordechay Goodstein __le32 ba_reschedule_frames; 821853f4954SMordechay Goodstein __le32 scd_query_agg_frame_cnt; 822853f4954SMordechay Goodstein __le32 scd_query_no_agg; 823853f4954SMordechay Goodstein __le32 scd_query_agg; 824853f4954SMordechay Goodstein __le32 scd_query_mismatch; 825853f4954SMordechay Goodstein __le32 agg_terminated_underrun; 826853f4954SMordechay Goodstein __le32 agg_terminated_bt_prio_kill; 827853f4954SMordechay Goodstein __le32 tx_kill_on_long_retry; 828853f4954SMordechay Goodstein __le32 tx_kill_on_short_retry; 829853f4954SMordechay Goodstein __le32 tx_deffer_counter; 830853f4954SMordechay Goodstein __le32 tx_deffer_base_time; 831853f4954SMordechay Goodstein __le32 tx_underrun; 832853f4954SMordechay Goodstein __le32 bt_defer; 833853f4954SMordechay Goodstein __le32 tx_kill_on_dsp_timeout; 834853f4954SMordechay Goodstein __le32 tx_kill_on_immediate_quiet; 835853f4954SMordechay Goodstein __le32 kill_ba_cnt; 836853f4954SMordechay Goodstein __le32 kill_ack_cnt; 837853f4954SMordechay Goodstein __le32 kill_cts_cnt; 838853f4954SMordechay Goodstein __le32 burst_terminated; 839853f4954SMordechay Goodstein __le32 late_tx_vec_wr_cnt; 840853f4954SMordechay Goodstein __le32 late_rx2_tx_cnt; 841853f4954SMordechay Goodstein __le32 scd_query_cnt; 842853f4954SMordechay Goodstein __le32 tx_frames_acked_in_agg; 843853f4954SMordechay Goodstein __le32 last_tx_ch_width_indx; 844853f4954SMordechay Goodstein __le32 rx_detected_per_ch_width[4]; 845853f4954SMordechay Goodstein __le32 success_per_ch_width[4]; 846853f4954SMordechay Goodstein __le32 fail_per_ch_width[4]; 847853f4954SMordechay Goodstein __le32 reserved; 848853f4954SMordechay Goodstein } __packed; /* STATISTICS_TX_NTFY_API_S_VER_1 */ 849853f4954SMordechay Goodstein 850853f4954SMordechay Goodstein /** 851853f4954SMordechay Goodstein * struct iwl_statistics_duration_ntfy 852853f4954SMordechay Goodstein * 853853f4954SMordechay Goodstein * @hdr: general statistics header 854853f4954SMordechay Goodstein * @cont_burst_chk_cnt: number of times continuation or 855853f4954SMordechay Goodstein * fragmentation or bursting was checked 856853f4954SMordechay Goodstein * @cont_burst_cnt: number of times continuation or fragmentation 857853f4954SMordechay Goodstein * or bursting was successful 858853f4954SMordechay Goodstein * @wait_for_silence_timeout_cnt: ??? 859853f4954SMordechay Goodstein * @reserved: reserved 860853f4954SMordechay Goodstein */ 861853f4954SMordechay Goodstein struct iwl_statistics_duration_ntfy { 862853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 863853f4954SMordechay Goodstein __le32 cont_burst_chk_cnt; 864853f4954SMordechay Goodstein __le32 cont_burst_cnt; 865853f4954SMordechay Goodstein __le32 wait_for_silence_timeout_cnt; 866853f4954SMordechay Goodstein __le32 reserved; 867853f4954SMordechay Goodstein } __packed; /* STATISTICS_DURATION_NTFY_API_S_VER_1 */ 868853f4954SMordechay Goodstein 869853f4954SMordechay Goodstein /** 870853f4954SMordechay Goodstein * struct iwl_statistics_he_ntfy 871853f4954SMordechay Goodstein * 872853f4954SMordechay Goodstein * @hdr: general statistics header 873853f4954SMordechay Goodstein * received HE frames 874853f4954SMordechay Goodstein * @rx_siga_valid_cnt: rx HE SIG-A valid 875853f4954SMordechay Goodstein * @rx_siga_invalid_cnt: rx HE SIG-A invalid 876853f4954SMordechay Goodstein * received HE frames w/ valid Sig-A 877853f4954SMordechay Goodstein * @rx_trig_based_frame_cnt: rx HE-TB (trig-based) 878853f4954SMordechay Goodstein * @rx_su_frame_cnt: rx HE-SU 879853f4954SMordechay Goodstein * @rx_sigb_invalid_cnt: rx (suspected) HE-MU w/ bad SIG-B 880853f4954SMordechay Goodstein * @rx_our_bss_color_cnt: rx valid HE SIG-A w/ our BSS color 881853f4954SMordechay Goodstein * @rx_other_bss_color_cnt: rx valid HE SIG-A w/ other BSS color 882853f4954SMordechay Goodstein * @rx_zero_bss_color_cnt: ??? 883853f4954SMordechay Goodstein * received HE-MU frames w/ good Sig-B 884853f4954SMordechay Goodstein * @rx_mu_for_us_cnt: match AID 885853f4954SMordechay Goodstein * @rx_mu_not_for_us_cnt: no matched AID 886853f4954SMordechay Goodstein * received HE-MU frames for us (w/ our AID) 887853f4954SMordechay Goodstein * @rx_mu_nss_ar: 0 - SISO, 1 - MIMO2 888853f4954SMordechay Goodstein * @rx_mu_mimo_cnt: full BW RU, compressed SIG-B 889853f4954SMordechay Goodstein * @rx_mu_ru_bw_ar: MU alloc, MHz: 0 - 2, 1 - 5, 2 - 10, 3 - 20, 890853f4954SMordechay Goodstein * 4 - 40, 5 - 80, 6 - 160 891853f4954SMordechay Goodstein * received trigger frames 892853f4954SMordechay Goodstein * @rx_trig_for_us_cnt: ??? 893853f4954SMordechay Goodstein * @rx_trig_not_for_us_cnt: ??? 894853f4954SMordechay Goodstein * trigger for us 895853f4954SMordechay Goodstein * @rx_trig_with_cs_req_cnt: ??? 896853f4954SMordechay Goodstein * @rx_trig_type_ar: ??? 897853f4954SMordechay Goodstein * @rx_trig_in_agg_cnt: ??? 898853f4954SMordechay Goodstein * basic trigger for us allocations 899853f4954SMordechay Goodstein * @rx_basic_trig_alloc_nss_ar: ??? 900853f4954SMordechay Goodstein * @rx_basic_trig_alloc_mu_mimo_cnt: ??? 901853f4954SMordechay Goodstein * @rx_basic_trig_alloc_ru_bw_ar: ??? 902853f4954SMordechay Goodstein * @rx_basic_trig_total_byte_cnt: ??? 903853f4954SMordechay Goodstein * trig-based TX 904853f4954SMordechay Goodstein * @tx_trig_based_cs_req_fail_cnt: ??? 905853f4954SMordechay Goodstein * @tx_trig_based_sifs_ok_cnt: ??? 906853f4954SMordechay Goodstein * @tx_trig_based_sifs_fail_cnt: ??? 907853f4954SMordechay Goodstein * @tx_trig_based_byte_cnt: ??? 908853f4954SMordechay Goodstein * @tx_trig_based_pad_byte_cnt: ??? 909853f4954SMordechay Goodstein * @tx_trig_based_frame_cnt: ??? 910853f4954SMordechay Goodstein * @tx_trig_based_acked_frame_cnt: ??? 911853f4954SMordechay Goodstein * @tx_trig_based_ack_timeout_cnt: ??? 912853f4954SMordechay Goodstein * HE-SU TX 913853f4954SMordechay Goodstein * @tx_su_frame_cnt: ??? 914853f4954SMordechay Goodstein * EDCA <--> MU-EDCA transitions 915853f4954SMordechay Goodstein * @tx_edca_to_mu_edca_cnt: ??? 916853f4954SMordechay Goodstein * @tx_mu_edca_to_edca_by_timeout_cnt: ??? 917853f4954SMordechay Goodstein * @tx_mu_edca_to_edca_by_ack_fail_cnt: ??? 918853f4954SMordechay Goodstein * @tx_mu_edca_to_edca_by_small_alloc_cnt: ??? 919853f4954SMordechay Goodstein * @reserved: reserved 920853f4954SMordechay Goodstein */ 921853f4954SMordechay Goodstein struct iwl_statistics_he_ntfy { 922853f4954SMordechay Goodstein struct iwl_statistics_ntfy_hdr hdr; 923853f4954SMordechay Goodstein __le32 rx_siga_valid_cnt; 924853f4954SMordechay Goodstein __le32 rx_siga_invalid_cnt; 925853f4954SMordechay Goodstein __le32 rx_trig_based_frame_cnt; 926853f4954SMordechay Goodstein __le32 rx_su_frame_cnt; 927853f4954SMordechay Goodstein __le32 rx_sigb_invalid_cnt; 928853f4954SMordechay Goodstein __le32 rx_our_bss_color_cnt; 929853f4954SMordechay Goodstein __le32 rx_other_bss_color_cnt; 930853f4954SMordechay Goodstein __le32 rx_zero_bss_color_cnt; 931853f4954SMordechay Goodstein __le32 rx_mu_for_us_cnt; 932853f4954SMordechay Goodstein __le32 rx_mu_not_for_us_cnt; 933853f4954SMordechay Goodstein __le32 rx_mu_nss_ar[2]; 934853f4954SMordechay Goodstein __le32 rx_mu_mimo_cnt; 935853f4954SMordechay Goodstein __le32 rx_mu_ru_bw_ar[7]; 936853f4954SMordechay Goodstein __le32 rx_trig_for_us_cnt; 937853f4954SMordechay Goodstein __le32 rx_trig_not_for_us_cnt; 938853f4954SMordechay Goodstein __le32 rx_trig_with_cs_req_cnt; 939853f4954SMordechay Goodstein __le32 rx_trig_type_ar[8 + 1]; 940853f4954SMordechay Goodstein __le32 rx_trig_in_agg_cnt; 941853f4954SMordechay Goodstein __le32 rx_basic_trig_alloc_nss_ar[2]; 942853f4954SMordechay Goodstein __le32 rx_basic_trig_alloc_mu_mimo_cnt; 943853f4954SMordechay Goodstein __le32 rx_basic_trig_alloc_ru_bw_ar[7]; 944853f4954SMordechay Goodstein __le32 rx_basic_trig_total_byte_cnt; 945853f4954SMordechay Goodstein __le32 tx_trig_based_cs_req_fail_cnt; 946853f4954SMordechay Goodstein __le32 tx_trig_based_sifs_ok_cnt; 947853f4954SMordechay Goodstein __le32 tx_trig_based_sifs_fail_cnt; 948853f4954SMordechay Goodstein __le32 tx_trig_based_byte_cnt; 949853f4954SMordechay Goodstein __le32 tx_trig_based_pad_byte_cnt; 950853f4954SMordechay Goodstein __le32 tx_trig_based_frame_cnt; 951853f4954SMordechay Goodstein __le32 tx_trig_based_acked_frame_cnt; 952853f4954SMordechay Goodstein __le32 tx_trig_based_ack_timeout_cnt; 953853f4954SMordechay Goodstein __le32 tx_su_frame_cnt; 954853f4954SMordechay Goodstein __le32 tx_edca_to_mu_edca_cnt; 955853f4954SMordechay Goodstein __le32 tx_mu_edca_to_edca_by_timeout_cnt; 956853f4954SMordechay Goodstein __le32 tx_mu_edca_to_edca_by_ack_fail_cnt; 957853f4954SMordechay Goodstein __le32 tx_mu_edca_to_edca_by_small_alloc_cnt; 958853f4954SMordechay Goodstein __le32 reserved; 959853f4954SMordechay Goodstein } __packed; /* STATISTICS_HE_NTFY_API_S_VER_1 */ 960853f4954SMordechay Goodstein 961d172a5efSJohannes Berg #endif /* __iwl_fw_api_stats_h__ */ 962