Bug 795047 - Add support for hidden networks. r=vchang

--HG--
extra : rebase_source : 5655853c58b6861d41f672c45d62c6098f017964
This commit is contained in:
Blake Kaplan 2012-09-27 14:41:31 -04:00
parent 6fc22757f7
commit d03d274563

View File

@ -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];