From: Aloka Dixit Date: Tue, 19 Apr 2022 18:04:14 +0000 (-0700) Subject: nl80211: Pass station's EHT capabilities to the driver in sta_add() X-Git-Tag: hostap_2_11~1997 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f7da264bdd35dde43057489c21d972b21834ae1;p=thirdparty%2Fhostap.git nl80211: Pass station's EHT capabilities to the driver in sta_add() Pass non-AP STA's EHT capabilities to the driver using the NL80211_ATTR_EHT_CAPABILITY attribute. Signed-off-by: Aloka Dixit Signed-off-by: Pradeep Kumar Chitrapu --- diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 9fcae968e..d8220e956 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -2219,6 +2219,8 @@ struct hostapd_sta_add_params { const struct ieee80211_he_capabilities *he_capab; size_t he_capab_len; const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab; + const struct ieee80211_eht_capabilities *eht_capab; + size_t eht_capab_len; u32 flags; /* bitmask of WPA_STA_* flags */ u32 flags_mask; /* unset bits in flags */ #ifdef CONFIG_MESH diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 18c8ec730..31620ab2b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5157,6 +5157,14 @@ static int wpa_driver_nl80211_sta_add(void *priv, goto fail; } + if (params->eht_capab) { + wpa_hexdump(MSG_DEBUG, " * eht_capab", + params->eht_capab, params->eht_capab_len); + if (nla_put(msg, NL80211_ATTR_EHT_CAPABILITY, + params->eht_capab_len, params->eht_capab)) + goto fail; + } + if (params->ext_capab) { wpa_hexdump(MSG_DEBUG, " * ext_capab", params->ext_capab, params->ext_capab_len);