[PATCH 07/15] WPS: support in service core part.

Samuel Ortiz sameo at linux.intel.com
Fri Jan 21 16:12:04 PST 2011


Hi Tomasz,

On Tue, Jan 11, 2011 at 03:54:00PM +0200, Tomasz Bursztyka wrote:
> @@ -3106,6 +3112,17 @@ int __connman_service_indicate_state(struct connman_service *service,
>  
>  		__connman_notifier_connect(service->type);
>  
> +		if (connman_network_get_bool(service->network,
> +						"WiFi.UseWPS") == TRUE) {
> +			__connman_service_set_passphrase(service,
> +					connman_network_get_string(
> +						service->network,
> +						"WiFi.Passphrase"));
Just so the code looks more readable:

			pass = connman_network_get_string(service->network,
						service->network,
						"WiFi.Passphrase"));
			 __connman_service_set_passphrase(service, pass);


Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/



More information about the connman mailing list