@@ -197,6 +197,8 @@ struct he_capabilities {
u8 mac_cap[HE_MAX_MAC_CAPAB_SIZE];
u8 mcs[HE_MAX_MCS_CAPAB_SIZE];
u8 ppet[HE_MAX_PPET_CAPAB_SIZE];
+ u8 he_6ghz_supported;
+ u16 he_6ghz_cap;
};
#define HOSTAPD_MODE_FLAG_HT_INFO_KNOWN BIT(0)
@@ -1769,6 +1769,12 @@ static void phy_info_iftype_copy(struct he_capabilities *he_capab,
nla_data(tb[NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE]),
len);
}
+
+ if (tb[NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAP]) {
+ he_capab->he_6ghz_supported = 1;
+ he_capab->he_6ghz_cap =
+ nla_get_u16(tb[NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAP]);
+ }
}
Read mode specific HE 6 GHz capability from phy info. This is needed for futher user config validation and IE construction. Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org> --- src/drivers/driver.h | 2 ++ src/drivers/driver_nl80211_capa.c | 6 ++++++ 2 files changed, 8 insertions(+)