Re: Wifi won't connect

2012-05-14 Thread Patrik Flykt
Hi, On Fri, 2012-05-11 at 03:14 -0700, Marcel Holtmann wrote: it should be the SSID converted to a UTF-8 string if possible. Same as we do with the SSID from the scan results. After digging around in this, yes, the SSID found is converted properly as it is always set from the network

Re: Wifi won't connect

2012-05-11 Thread Patrik Flykt
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

Re: Wifi won't connect

2012-05-11 Thread Marcel Holtmann
Hi Patrik, 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()

Re: Wifi won't connect

2012-05-11 Thread Patrik Flykt
On Fri, 2012-05-11 at 01:56 -0700, Marcel Holtmann wrote: in which way is it buggy? It just said the SSID can be in hex or plain string, the plain string part wasn't implemented at all. Do you want a fix for the documentation or the code? And also, 'Name' wasn't documented although it was used

Re: Wifi won't connect

2012-05-11 Thread Marcel Holtmann
Hi Patrik, in which way is it buggy? It just said the SSID can be in hex or plain string, the plain string part wasn't implemented at all. Do you want a fix for the documentation or the code? And also, 'Name' wasn't documented although it was used in the examples. In the code 'Name' is

Re: Wifi won't connect

2012-05-11 Thread Julien Pichon
On Fri, May 11, 2012 at 12:22:37PM +0300, Patrik Flykt wrote: On Fri, 2012-05-11 at 01:56 -0700, Marcel Holtmann wrote: in which way is it buggy? It just said the SSID can be in hex or plain string, the plain string part wasn't implemented at all. Do you want a fix for the documentation or

Re: Wifi won't connect

2012-05-11 Thread Marcel Holtmann
Hi Julien, in which way is it buggy? It just said the SSID can be in hex or plain string, the plain string part wasn't implemented at all. Do you want a fix for the documentation or the code? And also, 'Name' wasn't documented although it was used in the examples. In the code 'Name'

Re: Wifi won't connect

2012-05-11 Thread Patrik Flykt
On Fri, 2012-05-11 at 02:40 -0700, Marcel Holtmann wrote: you should only need either Name or SSID, but not both. In this case yes. Here SSID will take precedence. Now I just started to wonder what the pretty-print service name will be if it's not set... Cheers, Patrik

Re: Wifi won't connect

2012-05-11 Thread Marcel Holtmann
Hi Patrik, you should only need either Name or SSID, but not both. In this case yes. Here SSID will take precedence. Now I just started to wonder what the pretty-print service name will be if it's not set... it should be the SSID converted to a UTF-8 string if possible. Same as we do with

Re: Wifi won't connect

2012-05-10 Thread Julien Pichon
I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE; === } I think

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Hi, I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE;=== } I

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Le 10/05/2012 12:36, Julien Pichon a écrit : On Thu, May 10, 2012 at 12:24:25PM +0300, Tomasz Bursztyka wrote: Hi, I've noticed something while debugging the code. The path flow goes through auto_connect_service but goes in this condition and return FALSE. if (service-favorite == FALSE) {

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way) That is exactly what I plan to do. I want a linux box without dispaly and input device, connecting

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Wed, 2012-05-09 at 16:40 +0200, Julien Pichon wrote: cat /var/lib/connman/my.config [service_mywifi] Type = wifi SSID = MY_WIFI Passphrase = mypass Add a [global] section according to doc/config-format.txt. Cheers, Patrik ___ connman

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Thu, 2012-05-10 at 10:45 +0200, Julien Pichon wrote: if (service-favorite == FALSE) { if (preferred == TRUE) go next_service; return FALSE; === } Since the service list is sorted, services with favorite = TRUE go first in the list.

Re: Wifi won't connect

2012-05-10 Thread Jukka Rissanen
Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way) That is exactly what I plan to do. I want a

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
Le 10/05/2012 14:11, Jukka Rissanen a écrit : Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But then connman is not really thought to work that way)

Re: Wifi won't connect

2012-05-10 Thread Jukka Rissanen
On 05/10/2012 02:20 PM, Tomasz Bursztyka wrote: Le 10/05/2012 14:11, Jukka Rissanen a écrit : Hi On 05/10/2012 01:53 PM, Tomasz Bursztyka wrote: Hi, configuring at run time through scripts (unless you are running connman in a box on which you did not plug any input device, display... But

Re: Wifi won't connect

2012-05-10 Thread Tomasz Bursztyka
By default autoconnect is set ON when a service is created. ok, though again we changed that behavior. I might not go to tax office before work next time. Tomasz ___ connman mailing list connman@connman.net

Re: Wifi won't connect

2012-05-10 Thread Patrik Flykt
On Thu, 2012-05-10 at 14:55 +0300, Tomasz Bursztyka wrote: ok, though again we changed that behavior. I don't think so. It's been like this every time a service got created. It's just that this has been masked by the need to connect to it once in order to ask possible passphrases, save it and

Re: Wifi won't connect

2012-05-10 Thread Julien Pichon
On Thu, May 10, 2012 at 02:04:04PM +0300, Patrik Flykt wrote: On Wed, 2012-05-09 at 16:40 +0200, Julien Pichon wrote: cat /var/lib/connman/my.config [service_mywifi] Type = wifi SSID = MY_WIFI Passphrase = mypass Add a [global] section according to doc/config-format.txt. Cheers,