Re: Error reconnecting to a hidden AP.
Tomasz, Thanks for your comments. Joaquim Duran 2014-12-08 8:44 GMT+01:00 Tomasz Bursztyka : > Hi Joaquim, > >> Finally We've fixed the issue that connman was not reconnecting to >> hidden wifi's. These are the list of changes that we've done: >> >> 1 - When compiling wpa_supplicant, in the config file disable the options: >> CONFIG_AUTOSCAN_EXPONENTIAL >> CONFIG_AUTOSCAN_PERIODIC >> CONFIG_BGSCAN_SIMPLE >> >> >From wpa_supplicant config documentation, if any module of autoscan is >> enabled (periodic or exponential) autoscan is enabled. (suggested by >> Tomasz). > > > Keep CONFIG_BGSCAN_SIMPLE, that one is something you want if you are > roaming. > In your case, only the 2 first ones are the one you need to disable. > >> >> 2 - Change the contents of /etc/wpa_supplicant.conf file to >> >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=0 >> >> >> IMO, in the connman documentation, It should also be specified the >> contents of wpa_supplicant.conf file. > > > No because there is no need of any wpa_supplicant.conf when wpa_supplicant > runs with DBus. > > This configuration file is relevant only when wpa_supplicant is running with > its own unix > socket interface used for IPC, usually for stand-alone usage via wpa_cli or > others. > > > Tomasz > > ___ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
Hi Joaquim, Finally We've fixed the issue that connman was not reconnecting to hidden wifi's. These are the list of changes that we've done: 1 - When compiling wpa_supplicant, in the config file disable the options: CONFIG_AUTOSCAN_EXPONENTIAL CONFIG_AUTOSCAN_PERIODIC CONFIG_BGSCAN_SIMPLE >From wpa_supplicant config documentation, if any module of autoscan is enabled (periodic or exponential) autoscan is enabled. (suggested by Tomasz). Keep CONFIG_BGSCAN_SIMPLE, that one is something you want if you are roaming. In your case, only the 2 first ones are the one you need to disable. 2 - Change the contents of /etc/wpa_supplicant.conf file to ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 IMO, in the connman documentation, It should also be specified the contents of wpa_supplicant.conf file. No because there is no need of any wpa_supplicant.conf when wpa_supplicant runs with DBus. This configuration file is relevant only when wpa_supplicant is running with its own unix socket interface used for IPC, usually for stand-alone usage via wpa_cli or others. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
Hi Joaquim, In wpa_supplicant, you're referring the option CONFIG_BGSCAN_SIMPLE, isn't it? No, that one is fine and useful for roaming. I was referring to CONFIG_AUTOSCAN_EXPONENTIAL If you don't have it, then it will be fine on that level. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
RE: Error reconnecting to a hidden AP.
>> I think ConnMan's README advises to enable it but it's a mistake. >> ConnMan's fallback autoscan is better since it handles properly the >> hidden SSIDs. >Could we have a patch to that documentation and not enable it by default >if we are? I wouldn't say that ConnMan's autoscan is always better than using autoscan through wpa_s for every device. In real life experiment we did enable the CONFIG_AUTOSCAN_EXPONENTIAL after founding out that it behaves better on our device. So it varies.. Br, Pasi ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
After a lot of searching, it seems that the best way to determine the configuration switches used is to look at the package build log such as this: https://launchpadlibrarian.net/168444110/buildlog_ubuntu-trusty-armhf.wpa_2.1-0ubuntu1_UPLOADING.txt.gz It looks like it has DBSCAN on but no AUTOSCAN. On Fri, Dec 5, 2014 at 10:52 AM, Tim Tisdall wrote: > This is interesting... I'm using wpa_supplicant that comes with the > package handler for my distro. Is there a way to tell if that feature is > enabled in the binary? > > On Fri, Dec 5, 2014 at 10:09 AM, Joaquim Duran > wrote: > >> Finally We've fixed the issue that connman was not reconnecting to >> hidden wifi's. These are the list of changes that we've done: >> >> 1 - When compiling wpa_supplicant, in the config file disable the options: >> CONFIG_AUTOSCAN_EXPONENTIAL >> CONFIG_AUTOSCAN_PERIODIC >> CONFIG_BGSCAN_SIMPLE >> >> From wpa_supplicant config documentation, if any module of autoscan is >> enabled (periodic or exponential) autoscan is enabled. (suggested by >> Tomasz). >> >> 2 - Change the contents of /etc/wpa_supplicant.conf file to >> >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=0 >> >> >> IMO, in the connman documentation, It should also be specified the >> contents of wpa_supplicant.conf file. >> >> Joaquim Duran >> >> 2014-12-05 15:44 GMT+01:00 Patrik Flykt : >> > On Fri, 2014-12-05 at 14:49 +0200, Tomasz Bursztyka wrote: >> >> I think ConnMan's README advises to enable it but it's a mistake. >> >> ConnMan's fallback autoscan is better since it handles properly the >> >> hidden SSIDs. >> > >> > Could we have a patch to that documentation and not enable it by default >> > if we are? >> > >> > Cheers, >> > >> > Patrik >> > >> > >> > ___ >> > connman mailing list >> > connman@connman.net >> > https://lists.connman.net/mailman/listinfo/connman >> ___ >> connman mailing list >> connman@connman.net >> https://lists.connman.net/mailman/listinfo/connman >> > > ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
This is interesting... I'm using wpa_supplicant that comes with the package handler for my distro. Is there a way to tell if that feature is enabled in the binary? On Fri, Dec 5, 2014 at 10:09 AM, Joaquim Duran wrote: > Finally We've fixed the issue that connman was not reconnecting to > hidden wifi's. These are the list of changes that we've done: > > 1 - When compiling wpa_supplicant, in the config file disable the options: > CONFIG_AUTOSCAN_EXPONENTIAL > CONFIG_AUTOSCAN_PERIODIC > CONFIG_BGSCAN_SIMPLE > > From wpa_supplicant config documentation, if any module of autoscan is > enabled (periodic or exponential) autoscan is enabled. (suggested by > Tomasz). > > 2 - Change the contents of /etc/wpa_supplicant.conf file to > > ctrl_interface=/var/run/wpa_supplicant > ctrl_interface_group=0 > > > IMO, in the connman documentation, It should also be specified the > contents of wpa_supplicant.conf file. > > Joaquim Duran > > 2014-12-05 15:44 GMT+01:00 Patrik Flykt : > > On Fri, 2014-12-05 at 14:49 +0200, Tomasz Bursztyka wrote: > >> I think ConnMan's README advises to enable it but it's a mistake. > >> ConnMan's fallback autoscan is better since it handles properly the > >> hidden SSIDs. > > > > Could we have a patch to that documentation and not enable it by default > > if we are? > > > > Cheers, > > > > Patrik > > > > > > ___ > > connman mailing list > > connman@connman.net > > https://lists.connman.net/mailman/listinfo/connman > ___ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman > ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
Finally We've fixed the issue that connman was not reconnecting to hidden wifi's. These are the list of changes that we've done: 1 - When compiling wpa_supplicant, in the config file disable the options: CONFIG_AUTOSCAN_EXPONENTIAL CONFIG_AUTOSCAN_PERIODIC CONFIG_BGSCAN_SIMPLE >From wpa_supplicant config documentation, if any module of autoscan is enabled (periodic or exponential) autoscan is enabled. (suggested by Tomasz). 2 - Change the contents of /etc/wpa_supplicant.conf file to ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 IMO, in the connman documentation, It should also be specified the contents of wpa_supplicant.conf file. Joaquim Duran 2014-12-05 15:44 GMT+01:00 Patrik Flykt : > On Fri, 2014-12-05 at 14:49 +0200, Tomasz Bursztyka wrote: >> I think ConnMan's README advises to enable it but it's a mistake. >> ConnMan's fallback autoscan is better since it handles properly the >> hidden SSIDs. > > Could we have a patch to that documentation and not enable it by default > if we are? > > Cheers, > > Patrik > > > ___ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
On Fri, 2014-12-05 at 14:49 +0200, Tomasz Bursztyka wrote: > I think ConnMan's README advises to enable it but it's a mistake. > ConnMan's fallback autoscan is better since it handles properly the > hidden SSIDs. Could we have a patch to that documentation and not enable it by default if we are? Cheers, Patrik ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
Hello, We're using connman 1.26 with wpa_supplicant 2.3. In wpa_supplicant, you're referring the option CONFIG_BGSCAN_SIMPLE, isn't it? Joaquim Duran 2014-12-05 13:49 GMT+01:00 Tomasz Bursztyka : > Hi Joaquim, > > Which version of ConnMan are your using? > > Also, do you have wpa_supplicant built with autoscan support? If so, rebuild > it without that option. > I think ConnMan's README advises to enable it but it's a mistake. ConnMan's > fallback autoscan > is better since it handles properly the hidden SSIDs. > > Tomasz > > ___ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
Hi Joaquim, Which version of ConnMan are your using? Also, do you have wpa_supplicant built with autoscan support? If so, rebuild it without that option. I think ConnMan's README advises to enable it but it's a mistake. ConnMan's fallback autoscan is better since it handles properly the hidden SSIDs. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Error reconnecting to a hidden AP.
I think you may have to give more details... I'm working on devices that also connect to a hidden wifi in a hospital and I'm pretty sure it's made re-connections properly. I'm using a config file like this: [service_hospital] Type=wifi Name=hospital-wifi Passphrase=password IPv4=dhcp Hidden=true On Thu, Dec 4, 2014 at 10:00 AM, Joaquim Duran wrote: > Dear all, > > I'm working in Gem-med company (http://www.gem-med.com). We've > developed ECG devices which runs Linux OS and each device has a wifi > interface, managed by connman. We've found that there are hospitals > that configures the wifi as hidden with WPA2. > > The devices connect successfully with these hidden wifi's, but when > reconnecting, the operation fails. Is it possible to fix this > behaviour? > > Thanks and Best Regards, > Joaquim Duran > ___ > connman mailing list > connman@connman.net > https://lists.connman.net/mailman/listinfo/connman > ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman