[PATCH] wpa_supplicant, nl80211: ieee80211 power save support

Jouni Malinen j at w1.fi
Fri Nov 25 06:16:40 EST 2011


On Wed, Jul 20, 2011 at 10:54:27AM +0300, Janusz.Dziedzic at tieto.com wrote:
> Support for enabling/disabling/monitoring
> current mode of ieee80211 power save.

> diff --git a/src/drivers/driver.h b/src/drivers/driver.h
> @@ -2274,6 +2274,28 @@ struct wpa_driver_ops {
> +	int (*set_powersave)(void *priv, int enable);

A new driver_ops callback is not really needed for this. The existing
set_p2p_powersave() can be used for this (legacy_ps parameter).

> +	int (*get_powersave)(void *priv, int *enabled);

What is the use case for this?

> diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
> +	{ "ieee80211_ps", wpa_cli_ieee80211_ps,
> +	  cli_cmd_flag_none,
> +	  "<enable|disable|show>" },

"p2p_set ps <0/1>" can be used to enable/disable legacy PS.

I added an initial set_p2p_powersave() implementation for nl80211, so
the enabling/disabling part should now be available and I don't think we
need the additional commands from this patch.

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list