juci-wireless: scan-results: don't set limits for invalid scanresults
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Fri, 23 Mar 2018 13:14:10 +0000 (14:14 +0100)
committerReidar Cederqvist <reidar.cederqvist@gmail.com>
Fri, 23 Mar 2018 13:14:10 +0000 (14:14 +0100)
plugins/juci-wireless/src/widgets/wireless-aps-graph.js

index 341b026..c43d398 100644 (file)
@@ -108,6 +108,8 @@ JUCI.app
                var maxsnr = -100;
 
                value.map(function(val){
+                       if(ap.snr < -10 || ap.snr > 110 || !ap.ssid || ap.channel < 0 || ap.channel > 200)
+                               return;
                        if(minch > val.channel) minch = val.channel;
                        if(maxch < val.channel) maxch = val.channel;
                        if(maxsnr < val.snr) maxsnr = val.snr;