fff-hoods: Use channel provided by gateway

Submitted by Fabian Blaese on Oct. 9, 2017, 1:33 p.m.

Details

Message ID 20171009133304.27658-1-fabian@blaese.de
State Superseded
Headers show

Commit Message

Fabian Blaese Oct. 9, 2017, 1:33 p.m.
From: Adrian Schmutzler <freifunk@adrianschmutzler.de>

Only apply after keyXv2 patchset!

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Fabian Bläse <fabian@blaese.de>
---
 src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 8 ++++----
 1 file changed, 4 insertions(+), 4 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 264a308..2e67274 100755
--- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
+++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
@@ -74,8 +74,8 @@  else
 		fi
 		#now we look for phy and add this
 		for phy in $(iw phy | awk '/^Wiphy/{ print $2 }'); do
-			radio="$(wifiAddPhyCond "$phy" "2" "$chan2ghz")"
-			radio5="$(wifiAddPhyCond "$phy" "5" "$chan5ghz")"
+			radio="$(wifiAddPhyCond "$phy" "2" "auto")"
+			radio5="$(wifiAddPhyCond "$phy" "5" "auto")"
 			[ -n "$radio5" ] && radio="$radio5"
 
 			#and here we add the station
@@ -124,10 +124,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