From: Arne Fitzenreiter Date: Tue, 25 Mar 2014 12:03:56 +0000 (+0100) Subject: wlanap.cgi: fix detection of not useable channels. X-Git-Tag: v2.15-rc1~7^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57c209d558e0b410d5f42493d328d2c06cef20ac;p=people%2Fms%2Fipfire-2.x.git wlanap.cgi: fix detection of not useable channels. --- diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 5b2490da06..16b3fea243 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -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;