]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
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 5b2490da06c036ee7e430538e09dd11c38e43fc4..16b3fea2438aea0cf66d11a82ddf8b61f9158ae5 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;