Re: [PATCH] Change the threshold for background scanning, -45 is actually very good RSSI.

2014-06-18 Thread Tomasz Bursztyka

Hi Pasi,


With quite many Qualcomm based Android devices WCNSS settings have:
gNeighborLookupThreshold=76
gNeighborReassocThreshold=81

So having -65dBm instead of -45dBm should be still reasonable.


Depends on the chip, antenna, driver... It's really particular to all hw.

Myself at 3m, I have a very good signal with a low noise. I need to be 
at least at 10m to start to get bg scan running.
And also, this is only the signal, not the noise (which again depends a 
lot on the hw)
From Julien's experience, -70 is already killing his connectivity 
experience so such -76 is even more irrelevant in his case.


This values can't be set for every hw, there is no way we can 
generalize. If -65 works in your case, use it.



It's not really passive as the device is told to scan every 30secs and 
bg_simple will go through all channels and not just particular ones like 
bg_learn.


At the chip level a passive scan is a passive scan: there should not be 
any probes sent. Theoretically, in real life it again depends on 
hw/drivers...


But as said earlier, it depends on hw/drivers and usage context. For 
instance in the document you linked (ok it's pretty old),
it does not care at all about power efficiency, different use case, 
noise, etc... (note also they are aggressively scanning, it's far from 
every 30secs)

An experiment an all factors would be more relevant.

I wanted to get this bg scan configurable in main.conf, mainly for these 
reasons.
Can't remember why it went nacked, but it could be now the perfect 
occasion to propose such feature again.
Though in a perfect world, connman would not have to care at all about 
this, it should not be his job.


Tomasz


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka

Hi,

Have you built connman with dnsproxy support?

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Andrea Cappelli

Il 18/06/2014 10:58, Tomasz Bursztyka ha scritto:

Hi,
Have you built connman with dnsproxy support?


Ok, you are right, I didn't explain all the things

I didn't want dnsproxy. I already have a DNS service on my device, so I 
want that the nameserver configured in the final device by DHCP set to 
the same ip as the default gateway


Is that possible?

--
Andrea Cappelli

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka

Hi,

I didn't want dnsproxy. I already have a DNS service on my device, so 
I want that the nameserver configured in the final device by DHCP set 
to the same ip as the default gateway


Is that possible?


Can you try setting the FallbackNameservers in /etc/connman/main.conf?

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Andrea Cappelli

Il 18/06/2014 11:24, Tomasz Bursztyka ha scritto:

Hi,

I didn't want dnsproxy. I already have a DNS service on my device, so 
I want that the nameserver configured in the final device by DHCP set 
to the same ip as the default gateway


Is that possible?


Can you try setting the FallbackNameservers in /etc/connman/main.conf?


Thank you Tomasz, this afternoon I'll try and let you know

TIA for help

--
Andrea Cappelli

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Michael Trimarchi
Hi

On Wed, Jun 18, 2014 at 11:34 AM, Andrea Cappelli a.cappe...@gmail.com wrote:
 Il 18/06/2014 11:24, Tomasz Bursztyka ha scritto:

 Hi,

 I didn't want dnsproxy. I already have a DNS service on my device, so I
 want that the nameserver configured in the final device by DHCP set to the
 same ip as the default gateway

 Is that possible?


 Can you try setting the FallbackNameservers in /etc/connman/main.conf?


FallBackNameserver are used only if you don't have any other dns from
other connection like 3g. Correct?
Michael




 Thank you Tomasz, this afternoon I'll try and let you know

 TIA for help

 --
 Andrea Cappelli


 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman



-- 
| Michael Nazzareno Trimarchi Amarula Solutions BV |
| COO  -  Founder  Cruquiuskade 47 |
| +31(0)851119172 Amsterdam 1018 AM NL |
|  [`as] http://www.amarulasolutions.com   |
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka

Hi,


Can you try setting the FallbackNameservers in /etc/connman/main.conf?



FallBackNameserver are used only if you don't have any other dns from
other connection like 3g. Correct?


That's correct, but it is also used by default (if present) as the dns 
settings when tethering.

Have a look at src/tethering.c from line 234 to 261

Tomasz

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Michael Trimarchi
Hi

On Wed, Jun 18, 2014 at 11:52 AM, Tomasz Bursztyka
tomasz.burszt...@linux.intel.com wrote:
 Hi,


 Can you try setting the FallbackNameservers in /etc/connman/main.conf?

 

 FallBackNameserver are used only if you don't have any other dns from
 other connection like 3g. Correct?


 That's correct, but it is also used by default (if present) as the dns
 settings when tethering.
 Have a look at src/tethering.c from line 234 to 261


I was thinking that it's only used if the list is empty

Michael

 Tomasz


 ___
 connman mailing list
 connman@connman.net
 https://lists.connman.net/mailman/listinfo/connman



-- 
| Michael Nazzareno Trimarchi Amarula Solutions BV |
| COO  -  Founder  Cruquiuskade 47 |
| +31(0)851119172 Amsterdam 1018 AM NL |
|  [`as] http://www.amarulasolutions.com   |
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka

Hi,


FallBackNameserver are used only if you don't have any other dns from
other connection like 3g. Correct?



That's correct, but it is also used by default (if present) as the dns
settings when tethering.
Have a look at src/tethering.c from line 234 to 261


I was thinking that it's only used if the list is empty


There is no check done if any nameservers list is empty or not. In 
tethering, it does not
care directly about it: it only cares about the dnsproxy and this 
FallbackNameservers.


If your connection(s) have nameservers or not, as long as you use the 
dnsproxy, this one
will be the primary ns. Note that if no services have set nameserves and 
if FallbackNameservers

is set: dnsproxy will use this later one transparently.

In case of Andrea, since dnsproxy is disabled, it's mandatory to set 
FallbackNameservers

to get the ns set for tethering.

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman