Skip to content

Commit

Permalink
Bug 1020866 - Add IEEE8021X to WPA-EAP config. r=vchang
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-lee committed Jun 13, 2014
1 parent 2ea8b00 commit 89e60b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dom/wifi/WifiWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ function getNetworkKey(network)

if (key_mgmt == "WPA-PSK") {
encryption = "WPA-PSK";
} else if (key_mgmt == "WPA-EAP") {
} else if (key_mgmt.indexOf("WPA-EAP") != -1) {
encryption = "WPA-EAP";
} else if (key_mgmt == "NONE" && auth_alg === "OPEN SHARED") {
encryption = "WEP";
Expand Down Expand Up @@ -1850,7 +1850,7 @@ function WifiWorker() {
netToDOM = function(net) {
var ssid = dequote(net.ssid);
var security = (net.key_mgmt === "NONE" && net.wep_key0) ? ["WEP"] :
(net.key_mgmt && net.key_mgmt !== "NONE") ? [net.key_mgmt] :
(net.key_mgmt && net.key_mgmt !== "NONE") ? [net.key_mgmt.split(" ")[0]] :
[];
var password;
if (("psk" in net && net.psk) ||
Expand Down Expand Up @@ -1900,6 +1900,8 @@ function WifiWorker() {
if (net.keyManagement === "WEP") {
wep = true;
net.keyManagement = "NONE";
} else if (net.keyManagement === "WPA-EAP") {
net.keyManagement += " IEEE8021X";
}

configured.key_mgmt = net.key_mgmt = net.keyManagement; // WPA2-PSK, WPA-PSK, etc.
Expand Down

0 comments on commit 89e60b3

Please sign in to comment.