Message ID | 20210310172754.9192-1-greearb@candelatech.com |
---|---|
State | Accepted |
Headers | show |
Series | [PATCH-v2] supplicant: Support disabling HE for stations. | expand |
On Wed, Mar 10, 2021 at 09:27:54AM -0800, greearb@candelatech.com wrote: > Send a flag to the kernel with user has specified disable_he > in supplicant config file. Requires kernel patch to function > as expected. Thanks, applied.
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index f092bc753..5476ce9fc 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5926,6 +5926,14 @@ static int nl80211_ht_vht_overrides(struct nl_msg *msg, } #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 + return 0; }