nl80211: add iftype mask when sending iftype_data
PATCH 1/1 nl80211: add iftype mask when sending iftype_data
Add the iftype mask to the blob passed to userland. This allows hostapd to find the entry applicable for constructing the HE beacons of an AP.
Signed-off-by John Crispin <[email protected]>
--- include/uapi/linux/nl80211.h | 3 +++ net/wireless/nl80211.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-)
include/uapi/linux/nl80211.h +3 -0
@@ -3330,6 +3330,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_TYPE_MASK: The IFTYPEs that this element is +* applicable for * @NL80211_BAND_IFTYPE_ATTR_MAX: highest band HE capability attribute currently * defined * @__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST: internal use
@@ -3342,6 +3344,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_TYPE_MASK ,/* keep last */ __NL80211_BAND_IFTYPE_ATTR_AFTER_LAST,
net/wireless/nl80211.c +3 -1
@@ -1421,7 +1421,9 @@ nl80211_send_iftype_data(struct sk_buff *msg, sizeof(he_cap->he_mcs_nss_supp), &he_cap->he_mcs_nss_supp) || nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, - sizeof(he_cap->ppe_thres), he_cap->ppe_thres)) + sizeof(he_cap->ppe_thres), he_cap->ppe_thres) || + nla_put_u16(msg, NL80211_BAND_IFTYPE_ATTR_TYPE_MASK, + iftdata->types_mask))return -ENOBUFS ; }
Signature · 1 line
2.11.0