From ce8746372470e55f8f72c2aa6fc7aa443ab43b70 Mon Sep 17 00:00:00 2001 From: Vincent Chang Date: Mon, 22 Jul 2013 17:11:57 +0800 Subject: [PATCH] Bug 894737 - [Buri][WIFI-hotspot]Wi-Fi hotspot will be turn off automatic when change the security. r=mrbkap --- dom/wifi/WifiWorker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index f020e73e6ea1..71b97578b976 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -3205,6 +3205,7 @@ WifiWorker.prototype = { // hotspot status. Toggle settings to let gaia know that wifi hotspot // is enabled. this.tetheringSettings[SETTINGS_WIFI_TETHERING_ENABLED] = true; + this._oldWifiTetheringEnabledState = true; gSettingsService.createLock().set( SETTINGS_WIFI_TETHERING_ENABLED, true, null, "fromInternalSetting"); // Check for the next request. @@ -3216,6 +3217,7 @@ WifiWorker.prototype = { // hotspot status. Toggle settings to let gaia know that wifi hotspot // is disabled. this.tetheringSettings[SETTINGS_WIFI_TETHERING_ENABLED] = false; + this._oldWifiTetheringEnabledState = false; gSettingsService.createLock().set( SETTINGS_WIFI_TETHERING_ENABLED, false, null, "fromInternalSetting"); // Check for the next request. @@ -3333,6 +3335,7 @@ WifiWorker.prototype = { break; } + this._oldWifiTetheringEnabledState = this.tetheringSettings[SETTINGS_WIFI_TETHERING_ENABLED]; this.handleWifiTetheringEnabled(aResult) break; };