Bug 801935 - Don't unload wireless drivers, r=gal

This commit is contained in:
Michael Wu 2012-10-15 19:51:20 -04:00
Родитель 8e8dd45fa9
Коммит 64761523bf
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -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") {
// 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);