diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 899b75f28a23..dcf9d5763237 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -919,6 +919,48 @@ struct isr_statistics { | |||
919 | u32 unhandled; | 919 | u32 unhandled; |
920 | }; | 920 | }; |
921 | 921 | ||
922 | #ifdef CONFIG_IWLWIFI_DEBUGFS | ||
923 | /* management statistics */ | ||
924 | enum iwl_mgmt_stats { | ||
925 | MANAGEMENT_ASSOC_REQ = 0, | ||
926 | MANAGEMENT_ASSOC_RESP, | ||
927 | MANAGEMENT_REASSOC_REQ, | ||
928 | MANAGEMENT_REASSOC_RESP, | ||
929 | MANAGEMENT_PROBE_REQ, | ||
930 | MANAGEMENT_PROBE_RESP, | ||
931 | MANAGEMENT_BEACON, | ||
932 | MANAGEMENT_ATIM, | ||
933 | MANAGEMENT_DISASSOC, | ||
934 | MANAGEMENT_AUTH, | ||
935 | MANAGEMENT_DEAUTH, | ||
936 | MANAGEMENT_ACTION, | ||
937 | MANAGEMENT_MAX, | ||
938 | }; | ||
939 | /* control statistics */ | ||
940 | enum iwl_ctrl_stats { | ||
941 | CONTROL_BACK_REQ = 0, | ||
942 | CONTROL_BACK, | ||
943 | CONTROL_PSPOLL, | ||
944 | CONTROL_RTS, | ||
945 | CONTROL_CTS, | ||
946 | CONTROL_ACK, | ||
947 | CONTROL_CFEND, | ||
948 | CONTROL_CFENDACK, | ||
949 | CONTROL_MAX, | ||
950 | }; | ||
951 | |||
952 | struct traffic_stats { | ||
953 | u32 mgmt[MANAGEMENT_MAX]; | ||
954 | u32 ctrl[CONTROL_MAX]; | ||
955 | u32 data_cnt; | ||
956 | u64 data_bytes; | ||
957 | }; | ||
958 | #else | ||
959 | struct traffic_stats { | ||
960 | u64 data_bytes; | ||
961 | }; | ||
962 | #endif | ||
963 | |||
922 | #define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */ | 964 | #define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */ |
923 | 965 | ||
924 | struct iwl_priv { | 966 | struct iwl_priv { |
@@ -1064,10 +1106,8 @@ struct iwl_priv { | |||
1064 | int last_rx_noise; /* From beacon statistics */ | 1106 | int last_rx_noise; /* From beacon statistics */ |
1065 | 1107 | ||
1066 | /* counts mgmt, ctl, and data packets */ | 1108 | /* counts mgmt, ctl, and data packets */ |
1067 | struct traffic_stats { | 1109 | struct traffic_stats tx_stats; |
1068 | u32 cnt; | 1110 | struct traffic_stats rx_stats; |
1069 | u64 bytes; | ||
1070 | } tx_stats[3], rx_stats[3]; | ||
1071 | 1111 | ||
1072 | /* counts interrupts */ | 1112 | /* counts interrupts */ |
1073 | struct isr_statistics isr_stats; | 1113 | struct isr_statistics isr_stats; |