From ce4f694563f8507186fcf10385b2f6add3f7969a Mon Sep 17 00:00:00 2001 From: Joe AE6XE Date: Fri, 21 Jan 2022 19:52:26 -0800 Subject: [PATCH] aredn: extend 2G band adding ch -3 and ch -4 (#210) --- files/usr/local/bin/wscan | 2 +- files/www/cgi-bin/channelmaps.pm | 2 + files/www/cgi-bin/setup | 2 +- files/www/help.html | 6 + patches/701-extended-spectrum.patch | 202 +++++++++++++++------------- 5 files changed, 120 insertions(+), 94 deletions(-) diff --git a/files/usr/local/bin/wscan b/files/usr/local/bin/wscan index bf20d7f0..92fd073e 100755 --- a/files/usr/local/bin/wscan +++ b/files/usr/local/bin/wscan @@ -142,7 +142,7 @@ $iters = 0; # number of iterations $mychan = `iwinfo $iface info | grep -i channel`; $mychan =~ /Channel:\s+(-*\d+)/; -$mychan = ( ! defined $1 || ! int($1) || ! ($1 >= -2 && $1 <= 185) ) ? 0 : $1; +$mychan = ( ! defined $1 || ! int($1) || ! ($1 >= -4 && $1 <= 185) ) ? 0 : $1; # ch 76 - 99 are 3ghz since no part 15 usage (5ghz board with -2ghz transverter) if ($mychan >= 76 and $mychan <= 99) diff --git a/files/www/cgi-bin/channelmaps.pm b/files/www/cgi-bin/channelmaps.pm index 249f36cf..9a14ab9b 100644 --- a/files/www/cgi-bin/channelmaps.pm +++ b/files/www/cgi-bin/channelmaps.pm @@ -49,6 +49,8 @@ sub rf_channel_map 7 => "(922)", }, '2400' => { + -4 => "-4 (2387)", + -3 => "-3 (2392)", -2 => "-2 (2397)", -1 => "-1 (2402)", 1 => "1 (2412)", diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 0afb5aac..d817bcf9 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -828,7 +828,7 @@ if ( ${wifi_enable} ) { selopt($rfchannels->{$channelnumber}, $channelnumber, $wifi_channel); } - print "\n"; + print "  \n"; print "Channel Width\n"; print "