3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

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.
This commit is contained in:
James Prestwood 2022-07-19 11:55:36 -07:00 committed by Denis Kenzior
parent 62bdd1bea5
commit fce1449a87
2 changed files with 11 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;