juci-wireless: change dfs channel range to 50-144
authorSukru Senli <sukru.senli@inteno.se>
Wed, 14 Mar 2018 16:09:37 +0000 (17:09 +0100)
committerSukru Senli <sukru.senli@inteno.se>
Wed, 14 Mar 2018 16:09:37 +0000 (17:09 +0100)
plugins/juci-wireless/src/pages/wireless-devices.js
plugins/juci-wireless/src/pages/wireless-status-scan.js

index 7196964..2b73f71 100644 (file)
@@ -58,7 +58,7 @@ JUCI.app
                                                        $juciAlert($tr(gettext("Force Channel Selection is complete. New channel is")) + " " + ret.new_channel);
                                                else if(ret.code === 0)
                                                        $juciAlert($tr(gettext("Force Channel Selection is complete.")));
-                                               else if(dev.$info && dev.$info.channel >= 52)
+                                               else if(dev.$info && dev.$info.channel >= 50 && dev.$info && dev.$info.channel <= 144)
                                                        $juciAlert($tr(gettext("Force Channel Selection has failed because the radio is operating at DFS channel.")));
                                                else
                                                        $juciAlert($tr(gettext("Force Channel Selection has failed.")));
index 4e3cfdf..9cfcb1e 100644 (file)
@@ -34,7 +34,7 @@ JUCI.app
                        $rpc.$call("router.wireless", "radios").done(function(data){
                                $scope.wlRadios = data;
                                $scope.scanableRadios = Object.keys(data).map(function(x){
-                                       if(parseInt(data[x].channel) >= 52){
+                                       if(parseInt(data[x].channel) >= 50 && parseInt(data[x].channel) <= 144){
                                                $scope.dfs_enabled = true;
                                                return;
                                        }