From 62721ea9fa895bcad2e4eccb8ebf42f46d985216 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Fri, 9 May 2014 22:40:11 -0700 Subject: [PATCH] bugfix: Channel detection for untested devices. --- files/www/cgi-bin/channelmaps.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/channelmaps.pm b/files/www/cgi-bin/channelmaps.pm index 247edc50..9d568d7e 100644 --- a/files/www/cgi-bin/channelmaps.pm +++ b/files/www/cgi-bin/channelmaps.pm @@ -99,7 +99,7 @@ sub is_channel_valid # We don't have the device band in the data file so lets fall back to checking manually else { my $channelok=0; - foreach (`iwinfo wlan0 channels`) + foreach (`iwinfo wlan0 freqlist`) { next unless /Channel $channel/; next if /\[restricted\]/; @@ -128,7 +128,7 @@ sub rf_channels_list my %channels = (); foreach (`iwinfo wlan0 freqlist` ) { - next unless /([0-9]+.[0-9]+) Ghz \(Channel ([0-9]+)\)/; + next unless /([0-9]+.[0-9]+) GHz \(Channel ([0-9]+)\)/; next if /\[restricted\]/; my $channelnum = $2; my $channelfreq = $1;