From ef426b8de7d51ee804efbef422cb1a14e1e82204 Mon Sep 17 00:00:00 2001 From: Chuck Lee Date: Mon, 27 Oct 2014 16:23:43 +0800 Subject: [PATCH] Bug 1088490 - Default network mode to ESS. r=vchang --- dom/wifi/WifiWorker.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index 69c503704775..0b21ac6641d1 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -1591,15 +1591,10 @@ function getNetworkKey(network) } function getMode(flags) { - if (!flags) - return -1; - - if (/\[ESS/.test(flags)) - return MODE_ESS; if (/\[IBSS/.test(flags)) return MODE_IBSS; - return -1; + return MODE_ESS; } function getKeyManagement(flags) {