nl80211: Support disabling HE in infrastructure BSS as station

Send a flag to the kernel when user has specified disable_he=1 in the
network configuration block. This extends the functionality added in
commit 7c8f540ee0 ("wpa_supplicant: Add HE override support") to cover
the cases that need kernel functionality.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2021-03-10 09:27:54 -08:00 committed by Jouni Malinen
parent 01f2e54ce7
commit a6b2007c2f

View file

@ -5888,6 +5888,14 @@ static int nl80211_ht_vht_overrides(struct nl_msg *msg,
} }
#endif /* CONFIG_VHT_OVERRIDES */ #endif /* CONFIG_VHT_OVERRIDES */
#ifdef CONFIG_HE_OVERRIDES
if (params->disable_he) {
wpa_printf(MSG_DEBUG, " * HE disabled");
if (nla_put_flag(msg, NL80211_ATTR_DISABLE_HE))
return -1;
}
#endif /* CONFIG_HE_OVERRIDES */
return 0; return 0;
} }