mirror of https://github.com/aredn/aredn.git
feature: default rf channel : Make setup page use mesh defaults on reset or unconfigured
When a node is first setup (unconfigured) the rf channel or when user presses reset button the wifi channel and bandwidth will be set to mesh default even if it does not match the current RF channel.
This commit is contained in:
parent
99bd244753
commit
c11eae61e8
|
@ -530,6 +530,14 @@ else
|
|||
}
|
||||
if($wifi_proto ne "disabled")
|
||||
{
|
||||
|
||||
# Reset wifi channel/bandwidth to default
|
||||
if ( -f "/etc/config/unconfigured" || $parms{button_reset} ) {
|
||||
my $defaultwifi = rf_default_channel();
|
||||
$wifi_channel = $defaultwifi->{'channel'};
|
||||
$wifi_chanbw = $defaultwifi->{'chanbw'};
|
||||
}
|
||||
|
||||
print "<tr><td>SSID</td>\n";
|
||||
print "<td><input type=text size=15 name=wifi_ssid value='$wifi_ssid'>";
|
||||
if ($config eq "mesh")
|
||||
|
|
Loading…
Reference in New Issue