mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
hostapd: add switch to disable neigborhood scan
this may violate regulatory rules because 40Mhz channels should disabled if there are other networks but nearly every commercial router ignore this. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -74,6 +74,7 @@ $wlanapsettings{'DEBUG'} = '4';
|
||||
$wlanapsettings{'DRIVER'} = 'NL80211';
|
||||
$wlanapsettings{'HTCAPS'} = '';
|
||||
$wlanapsettings{'VHTCAPS'} = '';
|
||||
$wlanapsettings{'NOSCAN'} = 'off';
|
||||
|
||||
&General::readhash("/var/ipfire/wlanap/settings", \%wlanapsettings);
|
||||
&Header::getcgihash(\%wlanapsettings);
|
||||
@@ -247,6 +248,10 @@ $checked{'HIDESSID'}{'off'} = '';
|
||||
$checked{'HIDESSID'}{'on'} = '';
|
||||
$checked{'HIDESSID'}{$wlanapsettings{'HIDESSID'}} = "checked='checked'";
|
||||
|
||||
$checked{'NOSCAN'}{'off'} = '';
|
||||
$checked{'NOSCAN'}{'on'} = '';
|
||||
$checked{'NOSCAN'}{$wlanapsettings{'NOSCAN'}} = "checked='checked'";
|
||||
|
||||
$selected{'ENC'}{$wlanapsettings{'ENC'}} = "selected='selected'";
|
||||
$selected{'CHANNEL'}{$wlanapsettings{'CHANNEL'}} = "selected='selected'";
|
||||
$selected{'COUNTRY'}{$wlanapsettings{'COUNTRY'}} = "selected='selected'";
|
||||
@@ -415,6 +420,7 @@ END
|
||||
;
|
||||
}
|
||||
print<<END
|
||||
<tr><td width='25%' class='base'>$Lang::tr{'wlanap neighbor scan'}: </td><td class='base' >on <input type='radio' name='NOSCAN' value='off' $checked{'NOSCAN'}{'off'} /> | <input type='radio' name='NOSCAN' value='on' $checked{'NOSCAN'}{'on'} /> off</td><td class='base' colspan='2'>$Lang::tr{'wlanap neighbor scan warning'}</td></tr>
|
||||
<tr><td colspan='4'><br></td></tr>
|
||||
<tr><td width='25%' class='base'>$Lang::tr{'wlanap encryption'}: </td><td class='base' colspan='3'>
|
||||
<select name='ENC'>
|
||||
@@ -626,6 +632,20 @@ END
|
||||
|
||||
}
|
||||
|
||||
if ( $wlanapsettings{'NOSCAN'} eq 'on' ){
|
||||
print CONFIGFILE <<END
|
||||
noscan=1
|
||||
END
|
||||
;
|
||||
|
||||
}else{
|
||||
print CONFIGFILE <<END
|
||||
noscan=0
|
||||
END
|
||||
;
|
||||
|
||||
}
|
||||
|
||||
if ( $wlanapsettings{'ENC'} eq 'wpa1'){
|
||||
print CONFIGFILE <<END
|
||||
######################### wpa hostapd configuration ############################
|
||||
|
||||
Reference in New Issue
Block a user