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 105675 6dc18ee00539e27365961641e197000c97a3582e
parent 105674 271ca35d7645edcd3df21e350e044c4e00cce171
child 105676 cd7ccc95cefa7e87ee9bbc663eb591257d934650
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersvchang
bugs785975
milestone18.0a1
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;
     }