Get WiFi-specific statistics
typedef struct _nic_wifi_stats {
uint32t valid_stats;
uint32t tx_gragment;
uint32t tx_multicast;
uint32t tx_failed;
uint32t tx_retry;
uint32t tx_multi_retry;
uint32t rts_success;
uint32t rts_failure;
uint32t ack_failure;
uint32t duplicate;
uint32t rx_fragment;
uint32t rx_multicast;
uint32t fcs_errors;
} nic_wifi_stats_t;
This structure holds WiFi-specific statistics.
Your driver must fill in the following members:
- valid_stats
- A set of flags that indicate what
WiFi-specific statistics the driver keeps track of.
The following flags are defined:
- NIC_WIFI_STAT_TX_FRAGMENT -- the tx_fragment
field is valid.
- NIC_WIFI_STAT_TX_MULTICAST -- the tx_multicast
field is valid.
- NIC_WIFI_STAT_TX_FAILED -- the tx_failed
field is valid.
- NIC_WIFI_STAT_TX_RETRY -- the tx_retry
field is valid.
- NIC_WIFI_STAT_TX_MULTI_RETRY -- the tx_multi_retry
field is valid.
- NIC_WIFI_STAT_RTS_SUCCESS -- the rts_success
field is valid.
- NIC_WIFI_STAT_RTS_FAILURE -- the rts_failure
field is valid.
- NIC_WIFI_STAT_ACK_FAILURE -- the ack_failure
field is valid.
- NIC_WIFI_STAT_DUPLICATE -- the duplicate
field is valid.
- NIC_WIFI_STAT_RX_FRAGMENT -- the rx_fragment
field is valid.
- NIC_WIFI_STAT_RX_MULTICAST -- the rx_multicast
field is valid.
- NIC_WIFI_STAT_FCS_ERRORS -- the fcs_errors
field is valid.
- tx_fragment
- The number of data or management fragments
that were transmitted successfully. This number corresponds to
the TransmittedFragmentCount attribute defined by
the IEEE 802.11 specification.
- tx_multicast
- The number of multicast frames that were
transmitted sucessfully. This number corresponds to the
MulticastTransmittedFrameCount attribute defined by the
IEEE 802.11 specification.
- tx_failed
- The number of frame transmissions that were
aborted because they exceeded the retry limits.
This number corresponds to the FailedCount attribute defined by
the IEEE 802.11 specification.
- tx_retry
- The number of frames that were successfully
transmitted, after one or more retries. This number corresponds
to the RetryCount attribute defined by the IEEE 802.11 specification.
- tx_multi_retry
- The number of frames that were successfully
transmitted, after more than one retry. This number corresponds
to the MultipleRetryCount attribute defined by the IEEE 802.11 specification.
- rts_success
- The number of times a clear to send (CTS) was received in
response to a request to send (RTS). This number corresponds to
the RTSSuccessCount attribute defined by the IEEE 802.11 specification.
- rts_failure
- The number of times a CTS was not received in
response to an RTS. This number corresponds to the RTSFailureCount
attribute defined by the IEEE 802.11 specification.
- ack_failure
- The number of times an unexpected ACK was received. This number
corresponds to the AckFailureCount attribute defined by the IEEE 802.11 specification.
- duplicate
- The number of times a duplicate frame was received. This number
corresponds to the FrameDuplicateCount attribute defined by the IEEE 802.11 specification.
- rx_fragment
- The number of data or management fragments
that were successfully received. This number corresponds to
the ReceivedFragmentCount attribute defined by
the IEEE 802.11 specification.
- rx_multicast
- The number of multicast frames that were successfully received.
This number corresponds to the MulticastReceivedFrameCount
attribute defined by the IEEE 802.11 specification.
- fcs_errors
- The number of received frames that had frame
check-sequence errors. This number corresponds to the
FCSErrorCount attribute defined by the IEEE 802.11 specification.
QNX Neutrino