nl80211: Allow HE Capability to be set for a STA
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
289a9cf7ae
commit
59d9c3a145
2 changed files with 10 additions and 0 deletions
|
@ -1791,6 +1791,8 @@ struct hostapd_sta_add_params {
|
||||||
const struct ieee80211_vht_capabilities *vht_capabilities;
|
const struct ieee80211_vht_capabilities *vht_capabilities;
|
||||||
int vht_opmode_enabled;
|
int vht_opmode_enabled;
|
||||||
u8 vht_opmode;
|
u8 vht_opmode;
|
||||||
|
const struct ieee80211_he_capabilities *he_capab;
|
||||||
|
size_t he_capab_len;
|
||||||
u32 flags; /* bitmask of WPA_STA_* flags */
|
u32 flags; /* bitmask of WPA_STA_* flags */
|
||||||
u32 flags_mask; /* unset bits in flags */
|
u32 flags_mask; /* unset bits in flags */
|
||||||
#ifdef CONFIG_MESH
|
#ifdef CONFIG_MESH
|
||||||
|
|
|
@ -4559,6 +4559,14 @@ static int wpa_driver_nl80211_sta_add(void *priv,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params->he_capab) {
|
||||||
|
wpa_hexdump(MSG_DEBUG, " * he_capab",
|
||||||
|
params->he_capab, params->he_capab_len);
|
||||||
|
if (nla_put(msg, NL80211_ATTR_HE_CAPABILITY,
|
||||||
|
params->he_capab_len, params->he_capab))
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (params->ext_capab) {
|
if (params->ext_capab) {
|
||||||
wpa_hexdump(MSG_DEBUG, " * ext_capab",
|
wpa_hexdump(MSG_DEBUG, " * ext_capab",
|
||||||
params->ext_capab, params->ext_capab_len);
|
params->ext_capab, params->ext_capab_len);
|
||||||
|
|
Loading…
Reference in a new issue