summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamon Kim <taekhun.kim@broadcom.com>2020-12-30 23:29:28 +0900
committerAhmed ElArabawy <arabawy@google.com>2021-01-07 14:34:50 -0800
commit359fa1d1ba2907436817728f4e9565ed6e8a9b73 (patch)
tree701efcfddb551a510823ba9421c6e1965eb331f3
parent3adc28c891263699c205755142dd2f905390f2ff (diff)
downloadlibhardware_legacy-359fa1d1ba2907436817728f4e9565ed6e8a9b73.tar.gz
HAL: Fix to support CCA Level and Load info in WiFi link-layer statistics.
- CCA Level and Load info (Channel Utilization and Station Count from BSS load IE in beacon) - For supporing this feature, DHD and HALUTIL also should be fixed accordingly. (>= DHD 101.10.460) Bug: 173477163 Test: Builds successfully Change-Id: Ic1bd3e26888f8005fdb6c14d8ffeee9d3d04c3d3
-rw-r--r--include/hardware_legacy/link_layer_stats.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware_legacy/link_layer_stats.h b/include/hardware_legacy/link_layer_stats.h
index 4fde78a..27413fd 100644
--- a/include/hardware_legacy/link_layer_stats.h
+++ b/include/hardware_legacy/link_layer_stats.h
@@ -160,10 +160,17 @@ typedef enum
} wifi_peer_type;
/* per peer statistics */
+typedef struct bssload_info {
+ u16 sta_count; // station count
+ u16 chan_util; // channel utilization
+ u8 PAD[4];
+} bssload_info_t;
+
typedef struct {
wifi_peer_type type; // peer type (AP, TDLS, GO etc.)
u8 peer_mac_address[6]; // mac address
u32 capabilities; // peer WIFI_CAPABILITY_XXX
+ bssload_info_t bssload; // STA count and CU
u32 num_rate; // number of rates
wifi_rate_stat rate_stats[]; // per rate statistics, number of entries = num_rate
} wifi_peer_info;