summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-13 02:23:49 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-13 02:23:49 +0000
commit69579b6d87c0987396d018b0a7ba2048fe35a9a9 (patch)
tree16b841a3126eb4511a310924a879b2a7dfacde5f
parentcb4ca0f430db8de2b8e71ded69afb4566155dc41 (diff)
parentef9956a53bfed99aca98b3a86ea8344473059dff (diff)
downloadlibhardware_legacy-69579b6d87c0987396d018b0a7ba2048fe35a9a9.tar.gz
Snap for 9597030 from ef9956a53bfed99aca98b3a86ea8344473059dff to udc-release
Change-Id: Ifca22ac75c985819b32b428f55f68bb6e3492294
-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.