[PATCH] dbus: Export max scan ssids supported by driver.

Dan Williams dcbw
Thu Aug 25 12:41:46 PDT 2011


On Tue, 2011-08-23 at 17:11 +0300, Jukka Rissanen wrote:
> From: Mohamed Abbas <mohamed.abbas at intel.com>
> 
> This is needed for network managers that want to know how
> many SSIDs they can scan at the same time.

Yay, thanks for this.  I hadn't quite gotten around to doing it.  Next
question though, if you populate the supplicant with a bunch of
networks, shouldn't it use up to max_scan_ssids from the network blocks
(sorted by priority of course) when doing scans on it's own?  Or does it
do this already?  If not, that would be the  next step.

Dan

> ---
>  wpa_supplicant/dbus/dbus_new_handlers.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
> index c9c53d6..bb68079 100644
> --- a/wpa_supplicant/dbus/dbus_new_handlers.c
> +++ b/wpa_supplicant/dbus/dbus_new_handlers.c
> @@ -1977,6 +1977,14 @@ dbus_bool_t wpas_dbus_getter_capabilities(DBusMessageIter *iter,
>  		goto nomem;
>  	/***** Modes end */
>  
> +	if (res >= 0) {
> +		dbus_int32_t max_scan_ssid = capa.max_scan_ssids;
> +
> +		if (!wpa_dbus_dict_append_int32(&iter_dict, "MaxScanSSID",
> +						max_scan_ssid))
> +			goto nomem;
> +	}
> +
>  	if (!wpa_dbus_dict_close_write(&variant_iter, &iter_dict))
>  		goto nomem;
>  	if (!dbus_message_iter_close_container(iter, &variant_iter))





More information about the Hostap mailing list