Add attributes for QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT
More attributes are added for QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT 1. Peer signal stats; 2. Peer TX stats; 3. Peer RX stats Signed-off-by: Zhang Qian <zhangq@qti.qualcomm.com>
This commit is contained in:
parent
0df12cbddc
commit
320caeab29
1 changed files with 202 additions and 1 deletions
|
@ -993,6 +993,130 @@ enum qca_wlan_vendor_attr_get_hw_capability {
|
||||||
* 1: TX packet discarded
|
* 1: TX packet discarded
|
||||||
* 2: No ACK
|
* 2: No ACK
|
||||||
* 3: Postpone
|
* 3: Postpone
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
|
||||||
|
* Threshold for all monitored parameters. If per counter dedicated threshold
|
||||||
|
* is not enabled, this threshold will take effect.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
|
||||||
|
* event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
|
||||||
|
* Bit0: TX counter unit in MSDU
|
||||||
|
* Bit1: TX counter unit in MPDU
|
||||||
|
* Bit2: TX counter unit in PPDU
|
||||||
|
* Bit3: TX counter unit in byte
|
||||||
|
* Bit4: Dropped MSDUs
|
||||||
|
* Bit5: Dropped Bytes
|
||||||
|
* Bit6: MPDU retry counter
|
||||||
|
* Bit7: MPDU failure counter
|
||||||
|
* Bit8: PPDU failure counter
|
||||||
|
* Bit9: MPDU aggregation counter
|
||||||
|
* Bit10: MCS counter for ACKed MPDUs
|
||||||
|
* Bit11: MCS counter for Failed MPDUs
|
||||||
|
* Bit12: TX Delay counter
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
|
||||||
|
* Bit0: MAC RX counter unit in MPDU
|
||||||
|
* Bit1: MAC RX counter unit in byte
|
||||||
|
* Bit2: PHY RX counter unit in PPDU
|
||||||
|
* Bit3: PHY RX counter unit in byte
|
||||||
|
* Bit4: Disorder counter
|
||||||
|
* Bit5: Retry counter
|
||||||
|
* Bit6: Duplication counter
|
||||||
|
* Bit7: Discard counter
|
||||||
|
* Bit8: MPDU aggregation size counter
|
||||||
|
* Bit9: MCS counter
|
||||||
|
* Bit10: Peer STA power state change (wake to sleep) counter
|
||||||
|
* Bit11: Peer STA power save counter, total time in PS mode
|
||||||
|
* Bit12: Probe request counter
|
||||||
|
* Bit13: Other management frames counter
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
|
||||||
|
* Bit0: Idle time
|
||||||
|
* Bit1: TX time
|
||||||
|
* Bit2: time RX in current bss
|
||||||
|
* Bit3: Out of current bss time
|
||||||
|
* Bit4: Wireless medium busy time
|
||||||
|
* Bit5: RX in bad condition time
|
||||||
|
* Bit6: TX in bad condition time
|
||||||
|
* Bit7: time wlan card not available
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
|
||||||
|
* Bit0: Per channel SNR counter
|
||||||
|
* Bit1: Per channel noise floor counter
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
|
||||||
|
* aggregation stats buffer length
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
|
||||||
|
* buffer for ACKed MPDUs.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
|
||||||
|
* buffer for failed MPDUs.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
|
||||||
|
* length of delay stats array.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
|
||||||
|
* flagged as retransmissions
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
|
||||||
|
* flagged as duplicated
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
|
||||||
|
* packets discarded
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
|
||||||
|
* stats buffer.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
|
||||||
|
* stats buffer.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
|
||||||
|
* requests received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
|
||||||
|
* frames received
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
|
||||||
|
* there is no TX, nor RX, nor interference.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
|
||||||
|
* transmitting packets.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
|
||||||
|
* for receiving.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
|
||||||
|
* interference detected.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
|
||||||
|
* receiving packets with errors.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
|
||||||
|
* TX no-ACK.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
|
||||||
|
* the chip is unable to work in normal conditions.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
|
||||||
|
* receiving packets in current BSS.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
|
||||||
|
* receiving packets not in current BSS.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
|
||||||
|
* This is a container for per antenna signal stats.
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
|
||||||
*/
|
*/
|
||||||
enum qca_wlan_vendor_attr_ll_stats_ext {
|
enum qca_wlan_vendor_attr_ll_stats_ext {
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
|
||||||
|
@ -1001,7 +1125,7 @@ enum qca_wlan_vendor_attr_ll_stats_ext {
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
|
||||||
|
|
||||||
/* Attributes for events */
|
/* Peer STA power state change */
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
|
||||||
|
|
||||||
/* TX failure event */
|
/* TX failure event */
|
||||||
|
@ -1009,6 +1133,83 @@ enum qca_wlan_vendor_attr_ll_stats_ext {
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
|
||||||
|
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
|
||||||
|
|
||||||
|
/* MAC counters */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
|
||||||
|
|
||||||
|
/* Sub-attributes for PEER_AC_TX */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
|
||||||
|
|
||||||
|
/* Sub-attributes for PEER_AC_RX */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
|
||||||
|
|
||||||
|
/* Sub-attributes for CCA_BSS */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
|
||||||
|
|
||||||
|
/* sub-attribute for BSS_RX_TIME */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
|
||||||
|
|
||||||
|
/* Sub-attributes for PEER_SIGNAL */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
|
||||||
|
|
||||||
|
/* Sub-attributes for IFACE_BSS */
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
|
||||||
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
|
||||||
|
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
|
||||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
|
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
|
||||||
|
|
Loading…
Reference in a new issue