commit fce1449a879559be750e76e6b65f111c9ccc3aa2
parent 62bdd1bea53e470af1f6f3ba851930eeb211f536
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 19 Jul 2022 11:55:36 -0700
band: add he_capabilities queue
This queue will hold iftype(s) specific data for HE capabilities. Since
the capabilities may differ per-iftype the data is stored as such. Iftypes
may share a configuration so the band_he_capabilities structure has a
mask for each iftype using that configuration.
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/band.c b/src/band.c
@@ -32,6 +32,9 @@
void band_free(struct band *band)
{
+ if (band->he_capabilities)
+ l_queue_destroy(band->he_capabilities, l_free);
+
l_free(band);
}
diff --git a/src/band.h b/src/band.h
@@ -49,8 +49,16 @@ struct band_chandef {
uint32_t center2_frequency;
};
+struct band_he_capabilities {
+ uint32_t iftypes;
+ uint8_t he_phy_capa[11];
+ uint8_t he_mcs_set[12];
+};
+
struct band {
enum band_freq freq;
+ /* Each entry is type struct band_he_capabilities */
+ struct l_queue *he_capabilities;
uint8_t vht_mcs_set[8];
uint8_t vht_capabilities[4];
bool vht_supported : 1;