wlanap.cgi: fix detection of not useable channels.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 25 Mar 2014 12:03:56 +0000 (13:03 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 25 Mar 2014 12:03:56 +0000 (13:03 +0100)
html/cgi-bin/wlanap.cgi

index 5b2490d..16b3fea 100644 (file)
@@ -265,7 +265,7 @@ if ( $wlanapsettings{'DRIVER'} eq 'NL80211' ){
 my $wiphy = `iw dev $wlanapsettings{'INTERFACE'} info | grep wiphy | cut -d" " -f2`;
 chomp $wiphy;
 
-@channellist_cmd = `iw phy phy$wiphy info | grep " MHz \\\[" | grep -v "(disabled)" | grep -v "no IBSS)" 2>/dev/null`;
+@channellist_cmd = `iw phy phy$wiphy info | grep " MHz \\\[" | grep -v "(disabled)" | grep -v "no IBSS" | grep -v "passive scanning"" 2>/dev/null`;
 # get available channels
 
 my @temp;