@@ -3527,6 +3527,8 @@ enum nl80211_mpath_info {
* capabilities IE
* @NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE: HE PPE thresholds information as
* defined in HE capabilities IE
+ * @NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAP: HE 6 GHz band capabilities as in HE
+ * 6 GHz band capabilities IE
* @NL80211_BAND_IFTYPE_ATTR_MAX: highest band HE capability attribute currently
* defined
* @__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST: internal use
@@ -3539,6 +3541,7 @@ enum nl80211_band_iftype_attr {
NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY,
NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET,
NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE,
+ NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAP,
/* keep last */
__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST,
@@ -1607,6 +1607,13 @@ nl80211_send_iftype_data(struct sk_buff *msg,
nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE,
sizeof(he_cap->ppe_thres), he_cap->ppe_thres))
return -ENOBUFS;
+
+ if (he_cap->has_he_6ghz) {
+ if (nla_put_u16(msg,
+ NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAP,
+ he_cap->he_6ghz.cap))
+ return -ENOBUFS;
+ }
}
return 0;
Advertise per interface HE 6 GHz band capability to user space which will be used to build IEs. Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org> --- include/uapi/linux/nl80211.h | 3 +++ net/wireless/nl80211.c | 7 +++++++ 2 files changed, 10 insertions(+)