[PATCH] Disabling SMPS (Spatial multiplexing power save) when 802.11n is not used

Jose Blanquicet blanquicet at gmail.com
Fri Mar 18 01:20:49 PDT 2016


Instead of clean the HT Capabilities by setting it to zero, it should be
set to HT_CAP_INFO_SMPS_DISABLED to avoid erros in a non-802.11n mode,
followign the PATCH:
 
---
 wpa_supplicant/ap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index fd5b03f..824993d 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -133,7 +133,7 @@ int wpa_supplicant_conf_ap_ht(struct wpa_supplicant *wpa_s,
 #ifdef CONFIG_HT_OVERRIDES
 		if (ssid->disable_ht) {
 			conf->ieee80211n = 0;
-			conf->ht_capab = 0;
+			conf->ht_capab = HT_CAP_INFO_SMPS_DISABLED;;
 			no_ht = 1;
 		}
 #endif /* CONFIG_HT_OVERRIDES */
-- 
1.9.1




More information about the Hostap mailing list