[RFC] fff-hoods: Use channel provided by gateway

Submitted by Adrian Schmutzler on Oct. 5, 2017, 1:48 p.m.

Details

Message ID 1507211292-21164-1-git-send-email-freifunk@adrianschmutzler.de
State Superseded
Headers show

Commit Message

Adrian Schmutzler Oct. 5, 2017, 1:48 p.m.
WARNING: New router won't find existing ones with non-standard
channel!

Only apply after keyXv2 patchset!

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
index 8155111..0a4c9af 100755
--- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
+++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
@@ -122,10 +122,10 @@  if [ -s /tmp/keyxchangev2data ]; then
 		json_get_var essid essid
 		json_get_var ntpip ntp_ip
 		# i think the next things we don't active this in the first version! we can do it later
-		#json_get_var channel2 channel2
+		json_get_var chan2ghz channel2
 		#json_get_var mode2 mode2
 		#json_get_var type2 type2
-		#json_get_var channel5 channel5
+		json_get_var chan5ghz channel5
 		#json_get_var mode5 mode5
 		#json_get_var type5 type5
 		#json_get_var protocol protocol

Comments

Tim Niemeyer Oct. 7, 2017, 3:45 p.m.
Hi

Das Patch sieht sehr unvollständig aus.

Aber ja, das sind Themen, die wir noch adressieren müssen.

Tim

Am Donnerstag, den 05.10.2017, 15:48 +0200 schrieb Adrian Schmutzler:
> WARNING: New router won't find existing ones with non-standard
> channel!
> 
> Only apply after keyXv2 patchset!
> 
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> ---
>  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index 8155111..0a4c9af 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -122,10 +122,10 @@ if [ -s /tmp/keyxchangev2data ]; then
>  		json_get_var essid essid
>  		json_get_var ntpip ntp_ip
>  		# i think the next things we don't active this in
> the first version! we can do it later
> -		#json_get_var channel2 channel2
> +		json_get_var chan2ghz channel2
>  		#json_get_var mode2 mode2
>  		#json_get_var type2 type2
> -		#json_get_var channel5 channel5
> +		json_get_var chan5ghz channel5
>  		#json_get_var mode5 mode5
>  		#json_get_var type5 type5
>  		#json_get_var protocol protocol
> -- 
> 2.7.4
>
Adrian Schmutzler Oct. 7, 2017, 4:27 p.m.
Der Patch IST unvollständig und nur als denkanstoß gedacht.

On October 7, 2017 5:45:07 PM GMT+02:00, Tim Niemeyer <tim@tn-x.org> wrote:
Hi

Das Patch sieht sehr unvollständig aus.

Aber ja, das sind Themen, die wir noch adressieren müssen.

Tim

Am Donnerstag, den 05.10.2017, 15:48 +0200 schrieb Adrian Schmutzler:
> WARNING: New router won't find existing ones with non-standard
> channel!
> 
> Only apply after keyXv2 patchset!
> 
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> ---
>  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index 8155111..0a4c9af 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -122,10 +122,10 @@ if [ -s /tmp/keyxchangev2data ]; then
>  		json_get_var essid essid
>  		json_get_var ntpip ntp_ip
>  		# i think the next things we don't active this in
> the first version! we can do it later
> -		#json_get_var channel2 channel2
> +		json_get_var chan2ghz channel2
>  		#json_get_var mode2 mode2
>  		#json_get_var type2 type2
> -		#json_get_var channel5 channel5
> +		json_get_var chan5ghz channel5
>  		#json_get_var mode5 mode5
>  		#json_get_var type5 type5
>  		#json_get_var protocol protocol
> -- 
> 2.7.4
>
Tim Niemeyer Oct. 7, 2017, 4:48 p.m.
Am Samstag, den 07.10.2017, 18:27 +0200 schrieb Adrian Schmutzler:
> Der Patch IST unvollständig und nur als denkanstoß gedacht.
Ok, dann hab ich das ja doch richtig verstanden. ;)

Tim


> On October 7, 2017 5:45:07 PM GMT+02:00, Tim Niemeyer <tim@tn-x.org>
> wrote:
> > Hi
> > 
> > Das Patch sieht sehr unvollständig aus.
> > 
> > Aber ja, das sind Themen, die wir noch adressieren müssen.
> > 
> > Tim
> > 
> > Am Donnerstag, den 05.10.2017, 15:48 +0200 schrieb Adrian
> > Schmutzler:
> > >  WARNING: New router won't find existing ones with non-standard
> > >  channel!
> > >  
> > >  Only apply after keyXv2 patchset!
> > >  
> > >  Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> > >  ---
> > >   src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++-
> > > -
> > >   1 file changed, 2 insertions(+), 2 deletions(-)
> > >  
> > >  diff --git a/src/packages/fff/fff-
> > > hoods/files/usr/sbin/configurehood
> > >  b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > >  index 8155111..0a4c9af 100755
> > >  --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > >  +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> > >  @@ -122,10 +122,10 @@ if [ -s /tmp/keyxchangev2data ]; then
> > >     json_get_var essid essid
> > >     json_get_var ntpip ntp_ip
> > >     # i think the next things we don't active this in
> > >  the first version! we can do it later
> > >  -  #json_get_var channel2 channel2
> > >  +  json_get_var chan2ghz channel2
> > >     #json_get_var mode2 mode2
> > >     #json_get_var type2 type2
> > >  -  #json_get_var channel5 channel5
> > >  +  json_get_var chan5ghz channel5
> > >     #json_get_var mode5 mode5
> > >     #json_get_var type5 type5
> > >     #json_get_var protocol protocol
> > >  -- 
> > >  2.7.4
Fabian Blaese Oct. 9, 2017, 1:04 p.m.
LEDE sucht sich den Kanal selbst richtig aus, wenn man den Channel des wifi device, auf dem das sta interface liegt, auf ‘auto’ stellt.
Dazu ist es auch egal, ob gleichzeitig mesh oder ap devices konfiguriert sind; wobei natürlich eh kein mesh oder ap konfiguriert sein sollte, wenn sta für config geöffnet wird.

Wenn das noch eingebaut wird, sollte das Problem damit gelöst sein und wir können auch diesen Patch übernehmen.

Fabian

> On 7. Oct 2017, at 18:48, Tim Niemeyer <tim@tn-x.org> wrote:
> 
> Am Samstag, den 07.10.2017, 18:27 +0200 schrieb Adrian Schmutzler:
>> Der Patch IST unvollständig und nur als denkanstoß gedacht.
> Ok, dann hab ich das ja doch richtig verstanden. ;)
> 
> Tim
> 
> 
>> On October 7, 2017 5:45:07 PM GMT+02:00, Tim Niemeyer <tim@tn-x.org>
>> wrote:
>>> Hi
>>> 
>>> Das Patch sieht sehr unvollständig aus.
>>> 
>>> Aber ja, das sind Themen, die wir noch adressieren müssen.
>>> 
>>> Tim
>>> 
>>> Am Donnerstag, den 05.10.2017, 15:48 +0200 schrieb Adrian
>>> Schmutzler:
>>>>  WARNING: New router won't find existing ones with non-standard
>>>>  channel!
>>>> 
>>>>  Only apply after keyXv2 patchset!
>>>> 
>>>>  Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
>>>>  ---
>>>>   src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++-
>>>> -
>>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>> 
>>>>  diff --git a/src/packages/fff/fff-
>>>> hoods/files/usr/sbin/configurehood
>>>>  b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
>>>>  index 8155111..0a4c9af 100755
>>>>  --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
>>>>  +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
>>>>  @@ -122,10 +122,10 @@ if [ -s /tmp/keyxchangev2data ]; then
>>>>     json_get_var essid essid
>>>>     json_get_var ntpip ntp_ip
>>>>     # i think the next things we don't active this in
>>>>  the first version! we can do it later
>>>>  -  #json_get_var channel2 channel2
>>>>  +  json_get_var chan2ghz channel2
>>>>     #json_get_var mode2 mode2
>>>>     #json_get_var type2 type2
>>>>  -  #json_get_var channel5 channel5
>>>>  +  json_get_var chan5ghz channel5
>>>>     #json_get_var mode5 mode5
>>>>     #json_get_var type5 type5
>>>>     #json_get_var protocol protocol
>>>>  --
>>>>  2.7.4
> --
> franken-dev mailing list
> franken-dev@freifunk.net
> http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net