diff mbox series

[PATCH-v2] supplicant: Support disabling HE for stations.

Message ID 20210310172754.9192-1-greearb@candelatech.com
State Accepted
Headers show
Series [PATCH-v2] supplicant: Support disabling HE for stations. | expand

Commit Message

Ben Greear March 10, 2021, 5:27 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

Send a flag to the kernel with user has specified disable_he
in supplicant config file.  Requires kernel patch to function
as expected.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 src/drivers/driver_nl80211.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Jouni Malinen March 12, 2021, 9:51 a.m. UTC | #1
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 mbox series

Patch

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;
 }