juci-netmode: extender/repeater widget scan works
authorSukru Senli <sukru.senli@inteno.se>
Sun, 5 Feb 2017 13:06:35 +0000 (14:06 +0100)
committerSukru Senli <sukru.senli@inteno.se>
Sun, 5 Feb 2017 13:06:35 +0000 (14:06 +0100)
plugins/juci-netmode/src/widgets/overview-clientmode.js

index 0e7906b..5bfee07 100644 (file)
@@ -103,10 +103,7 @@ JUCI.app
                                        $scope.showManual.value = false;
                                        $scope.showModal = false;
                                        $scope.availableAps = result.map(function(ap){
-                                               var encrypt = "";
-                                               if(ap.cipher && !ap.cipher.match(/PSK/)) return null;
-                                               if(ap.cipher) encrypt = "psk2";
-                                               return { label: ap.ssid, value: ap.bssid, encryption: encrypt };
+                                               return { label: ap.ssid, value: ap.bssid, encryption: ap.encryption };
                                        }).filter(function(ap){ return ap !== null; });
                                        $scope.$apply();
                                });