Add link state for link layer stats

Bug: 263029630
Test: Build successfully
Change-Id: I31a7ab0893fc8168d16a68631f5e06d4170ef71d
This commit is contained in:
Mahesh KKV 2023-02-07 17:01:42 -08:00
parent cd75a54c4a
commit ef9956a53b

View file

@ -221,9 +221,26 @@ typedef struct {
wifi_peer_info peer_info[]; // per peer statistics
} wifi_iface_stat;
/* Various states for the link */
typedef enum {
// Chip does not support reporting the state of the link.
WIFI_LINK_STATE_UNKNOWN = 0,
// Link has not been in use since last report. It is placed in power save. All
// management, control and data frames for the MLO connection are carried over
// other links. In this state the link will not listen to beacons even in DTIM
// period and does not perform any GTK/IGTK/BIGTK updates but remains
// associated.
WIFI_LINK_STATE_NOT_IN_USE = 1,
// Link is in use. In presence of traffic, it is set to be power active. When
// the traffic stops, the link will go into power save mode and will listen
// for beacons every DTIM period.
WIFI_LINK_STATE_IN_USE = 2,
} wifi_link_state;
/* Per link statistics */
typedef struct {
u8 link_id; // Identifier for the link.
wifi_link_state state; // State for the link.
wifi_radio radio; // Radio on which link stats are sampled.
u32 frequency; // Frequency on which link is operating.
u32 beacon_rx; // Beacon received count from connected AP on the link.