[PATCH 1/5] supplicant: Support disabling HE for stations.

greearb at candelatech.com greearb at candelatech.com
Sat Mar 6 16:18:37 GMT 2021


From: Ben Greear <greearb at 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 at candelatech.com>
---
 src/drivers/driver_nl80211.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index a9d5fe3d8..f32890d1d 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5913,6 +5913,14 @@ static int nl80211_ht_vht_overrides(struct nl_msg *msg,
 	}
 #endif /* CONFIG_VHT_OVERRIDES */
 
+#ifdef CONFIG_VHT_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;
 }
 
-- 
2.20.1




More information about the Hostap mailing list