eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 10ac107ba6452ef886660a486d1e22569cb4b8ce
parent ea9bc11fc8e8cea78801938d717ba49f0359cd93
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Fri, 28 May 2021 14:19:57 -0500

wiphy: Parse HT Capabilities & MCS Set

Diffstat:
Msrc/wiphy.c | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/wiphy.c b/src/wiphy.c @@ -70,6 +70,9 @@ struct band { uint8_t vht_mcs_set[8]; uint8_t vht_capabilities[4]; bool vht_supported : 1; + uint8_t ht_mcs_set[16]; + uint8_t ht_capabilities[2]; + bool ht_supported : 1; uint16_t supported_rates_len; uint8_t supported_rates[]; }; @@ -987,6 +990,21 @@ static void parse_supported_bands(struct wiphy *wiphy, memcpy(band->vht_capabilities, data, len); band->vht_supported = true; break; + case NL80211_BAND_ATTR_HT_MCS_SET: + if (L_WARN_ON(len != sizeof(band->ht_mcs_set))) + continue; + + memcpy(band->ht_mcs_set, data, len); + band->ht_supported = true; + break; + case NL80211_BAND_ATTR_HT_CAPA: + if (L_WARN_ON(len != + sizeof(band->ht_capabilities))) + continue; + + memcpy(band->ht_capabilities, data, len); + band->ht_supported = true; + break; } }