Bug 785975 - Reconnect to the network after DHCP fails. r=vchang
authorBlake Kaplan <mrbkap@gmail.com>
Mon, 27 Aug 2012 17:48:25 -0300
changeset 103696 6dc18ee00539e27365961641e197000c97a3582e
parent 103677 271ca35d7645edcd3df21e350e044c4e00cce171
child 103697 cd7ccc95cefa7e87ee9bbc663eb591257d934650
push id14120
push userryanvm@gmail.com
push dateTue, 28 Aug 2012 20:02:35 +0000
treeherdermozilla-inbound@1f93692fea1e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvchang
bugs785975
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 785975 - Reconnect to the network after DHCP fails. r=vchang
dom/wifi/WifiWorker.js
--- a/dom/wifi/WifiWorker.js
+++ b/dom/wifi/WifiWorker.js
@@ -1581,17 +1581,17 @@ function WifiWorker() {
       WifiNetworkInterface.dns1 = this.info.dns1_str;
       WifiNetworkInterface.dns2 = this.info.dns2_str;
       Services.obs.notifyObservers(WifiNetworkInterface,
                                    kNetworkInterfaceStateChangedTopic,
                                    null);
 
       self._fireEvent("onconnect", { network: netToDOM(self.currentNetwork) });
     } else {
-      WifiManager.disconnect(function(){});
+      WifiManager.reassociate(function(){});
     }
   };
 
   WifiManager.onscanresultsavailable = function() {
     if (self.wantScanResults.length === 0) {
       debug("Scan results available, but we don't need them");
       return;
     }