]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Support disabling HE in infrastructure BSS as station
authorBen Greear <greearb@candelatech.com>
Wed, 10 Mar 2021 17:27:54 +0000 (09:27 -0800)
committerJouni Malinen <j@w1.fi>
Fri, 12 Mar 2021 08:40:25 +0000 (10:40 +0200)
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 7c8f540ee0a8 ("wpa_supplicant: Add HE override support") to cover
the cases that need kernel functionality.

Signed-off-by: Ben Greear <greearb@candelatech.com>
src/drivers/driver_nl80211.c

index df12941e126f39ad649e971d4cbad9d27ce8ba38..c2721ae37425196267353b99a256a987a433654b 100644 (file)
@@ -5888,6 +5888,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 /* CONFIG_HE_OVERRIDES */
+
        return 0;
 }