diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 06c14ea4..f0e621d7 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -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 "