diff mbox series

[04/12] band: add he_capabilities queue

Message ID 20220719185544.456727-4-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [01/12] scan: add colocated scan flag | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood July 19, 2022, 6:55 p.m. UTC
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.
---
 src/band.c | 3 +++
 src/band.h | 8 ++++++++
 2 files changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/src/band.c b/src/band.c
index 984bc15d..67bbcd79 100644
--- 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
index ba887ee6..1f1269c7 100644
--- 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;