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

Johannes Berg johannes at sipsolutions.net
Fri Mar 18 05:25:25 PDT 2016


On Fri, 2016-03-18 at 09:20 +0100, Jose Blanquicet wrote:
> 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;;


Double semicolon?

But in any case, this seems pointless since if ieee80211n is 0, we
should never add HT IEs anywhere?

johannes



More information about the Hostap mailing list