Hi Julien,
I'm not sure about this, for passphrase, the validity check is done in
__connman_service_set_passphrase,
so it could be more relevant to do the same thing with a
__connman_service_set_wpspin ?
(but there is nothing storred in the service struct about WPS).
_______________________________________________
Just a quick static helper like check_wpspin() since this function is
going to be called only by request_input_cb() anyway
Your wps/wpspin parameters are nice for that (since wpspin is NULL when
not set).
err = check_wpspin(wpspin); <-- if wpspin == NULL check_wpspin() returns 0.
if (err < 0)
goto done;
connman_network_set_bool(network, "Wifi.UseWPS", wps);
connman_network_set_string(network, "Wifi.PinWPS", wpspin);
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman