From 64761523bf785b4dc3ee4da2b7ed9f2ebfe8ec24 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Mon, 15 Oct 2012 19:51:20 -0400 Subject: [PATCH] Bug 801935 - Don't unload wireless drivers, r=gal --- dom/wifi/WifiWorker.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index 7bbedb31040e..0d9913ad1611 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -128,11 +128,12 @@ var WifiManager = (function() { } function unloadDriver(callback) { - // Otoro ICS can't unload and then load the driver, so never unload it. - if (device === "otoro") { - callback(0); - return; - } + // Unloading drivers is generally unnecessary and + // can trigger bugs in some drivers. + // On properly written drivers, bringing the interface + // down powers down the interface. + callback(0); + return; voidControlMessage("unload_driver", function(status) { driverLoaded = (status < 0);