Hi,

On Thu, 2012-05-10 at 16:06 +0200, Julien Pichon wrote:
> Adding a global section seems to change nothing.
> [global]

Reading the code in src/config.c, load_config() reveals that the
[global] section was not mandatory to have.

> [service_dunasyswifi]
> Type=wifi
> SSID=MY_WIFI
> Passphrase=secret

In the same file, load_service() expects SSID to be in hexadecimal
notation only. If there is no SSID field, a 'Name' field in plain text
is used instead. I think it should work right away if you add:

[service_dunasyswifi]
Type=wifi
Name=MY_WIFI
Passphrase=secret

The documentation is obviously buggy when compare with the actual code.
I'll fix that.

> On the contrary if I create a /var/lib/connman/default.profile file 

This works because ConnMan migrates the old default.profile to the new
setup into separate directories.

> But I am not entirely satisfied because I have to guess the section
> name (wifi_000df08f14a4_44554e415359535f57494649_managed_psk). 

Yep, and that's also why copying directly is dangerous. The mac address
is encoded, so moving this to another device will not work without nasty
editing.

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to