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 <quic_alokad@quicinc.com> Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
This commit is contained in:
parent
0c8a9aa5d2
commit
9f7da264bd
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue