From e5112975b7beb9bfa5a04d895f3bdcfba8ca45d0 Mon Sep 17 00:00:00 2001 From: Chuck Lee Date: Tue, 24 Jun 2014 17:41:38 +0800 Subject: [PATCH] Bug 1028044 - Use auth instead of autheap in phase2 settings. r=vchang --- dom/wifi/WifiWorker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index 44a0d204ad3d..a137974f0ba6 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -1957,10 +1957,10 @@ function WifiWorker() { net.phase1 = quote(net.phase1); if (hasValidProperty("phase2")) { - if (net.eap === "PEAP") { - net.phase2 = quote("auth=" + net.phase2); - } else { // TLS, TTLS + if (net.phase2 === "TLS") { net.phase2 = quote("autheap=" + net.phase2); + } else { // PAP, MSCHAPV2, etc. + net.phase2 = quote("auth=" + net.phase2); } }