Skip to content
Snippets Groups Projects
Commit 8fbf3b37 authored by Anjan Chanda's avatar Anjan Chanda
Browse files

wifi_dataelements.h: redefine *_CAP_VALID bitflags to match wifidefs.h

parent 1214b694
No related branches found
No related tags found
No related merge requests found
Pipeline #209353 passed
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
#ifndef WIFI_DATAELEMENTS_H #ifndef WIFI_DATAELEMENTS_H
#define WIFI_DATAELEMENTS_H #define WIFI_DATAELEMENTS_H
#include <libubox/list.h>
#include <easy/easy.h>
#include <wifidefs.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -191,11 +195,12 @@ struct wifi_wifi7_capabilities { ...@@ -191,11 +195,12 @@ struct wifi_wifi7_capabilities {
/* maps to capability bytes in respective TLVs */ /* maps to capability bytes in respective TLVs */
struct wifi_caps_element { struct wifi_caps_element {
#define HT_CAP_VALID 0x01 #define HT_CAP_VALID 0x4
#define VHT_CAP_VALID 0x02 #define VHT_CAP_VALID 0x8
#define HE_CAP_VALID 0x04 #define HE_CAP_VALID 0x20
#define WIFI6_AP_CAP_VALID 0x08 #define EHT_CAP_VALID 0x40
#define WIFI6_BSTA_CAP_VALID 0x10 #define WIFI6_AP_CAP_VALID 0x80
#define WIFI6_BSTA_CAP_VALID 0x100
uint8_t ht; uint8_t ht;
uint8_t vht[6]; uint8_t vht[6];
uint8_t he[15]; /* 1 (supp-mcs-len), 12 (Tx Rx mcs), 2 (others) */ uint8_t he[15]; /* 1 (supp-mcs-len), 12 (Tx Rx mcs), 2 (others) */
...@@ -431,6 +436,7 @@ struct wifi_affiliated_sta_element { ...@@ -431,6 +436,7 @@ struct wifi_affiliated_sta_element {
uint32_t ul_rate; /* latest data rate in Kbps: sta -> ap */ uint32_t ul_rate; /* latest data rate in Kbps: sta -> ap */
unsigned long ul_utilization; /* time in msecs for receive from sta */ unsigned long ul_utilization; /* time in msecs for receive from sta */
unsigned long dl_utilization; /* time in msecs for transmit to sta */ unsigned long dl_utilization; /* time in msecs for transmit to sta */
uint32_t time_delta; /* tsp - time_delta => when dl/ul_est_thput measured */
uint32_t dl_est_thput; /* in Mbps */ uint32_t dl_est_thput; /* in Mbps */
uint32_t ul_est_thput; /* in Mbps */ uint32_t ul_est_thput; /* in Mbps */
}; };
...@@ -446,6 +452,7 @@ struct wifi_stamld_element { ...@@ -446,6 +452,7 @@ struct wifi_stamld_element {
struct list_head list; struct list_head list;
uint8_t mld_macaddr[6]; uint8_t mld_macaddr[6];
int invalidate; int invalidate;
time_t last_updated;
bool emlmr_supported; bool emlmr_supported;
bool emlsr_supported; bool emlsr_supported;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment