summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh KKV <maheshkkv@google.com>2023-02-07 17:01:42 -0800
committerMahesh KKV <maheshkkv@google.com>2023-02-10 14:16:11 -0800
commitef9956a53bfed99aca98b3a86ea8344473059dff (patch)
tree16b841a3126eb4511a310924a879b2a7dfacde5f
parentcd75a54c4ab96de930e78bab89bb2d7833aabc80 (diff)
downloadlibhardware_legacy-ef9956a53bfed99aca98b3a86ea8344473059dff.tar.gz
Add link state for link layer stats
Bug: 263029630 Test: Build successfully Change-Id: I31a7ab0893fc8168d16a68631f5e06d4170ef71d
-rw-r--r--include/hardware_legacy/link_layer_stats.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/hardware_legacy/link_layer_stats.h b/include/hardware_legacy/link_layer_stats.h
index 3b418cb..f4e16c6 100644
--- a/include/hardware_legacy/link_layer_stats.h
+++ b/include/hardware_legacy/link_layer_stats.h
@@ -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.