diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index b6f6787943e3..34d0ae915377 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -1279,7 +1279,8 @@ Network.api = { keyManagement: "rw", psk: "rw", identity: "rw", - wep: "rw" + wep: "rw", + hidden: "rw" }; // Note: We never use ScanResult.prototype, so the fact that it's unrelated to @@ -1438,6 +1439,8 @@ function WifiWorker() { pub.identity = dequote(net.identity); if (net.netId) pub.known = true; + if (net.scan_ssid === 1) + pub.hidden = true; return pub; }; @@ -1472,6 +1475,11 @@ function WifiWorker() { configured.key_mgmt = net.key_mgmt = "NONE"; } + if (net.hidden) { + configured.scan_ssid = net.scan_ssid = 1; + delete net.hidden; + } + function checkAssign(name, checkStar) { if (name in net) { let value = net[name];