mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge m-c to inbound.
This commit is contained in:
commit
d97f94b47d
@ -126,12 +126,30 @@ var WifiManager = (function() {
|
||||
});
|
||||
}
|
||||
|
||||
var driverLoaded = false;
|
||||
function loadDriver(callback) {
|
||||
voidControlMessage("load_driver", callback);
|
||||
if (driverLoaded) {
|
||||
callback(0);
|
||||
return;
|
||||
}
|
||||
|
||||
voidControlMessage("load_driver", function(status) {
|
||||
driverLoaded = (status >= 0);
|
||||
callback(status)
|
||||
});
|
||||
}
|
||||
|
||||
function unloadDriver(callback) {
|
||||
voidControlMessage("unload_driver", callback);
|
||||
// Otoro ICS can't unload and then load the driver, so never unload it.
|
||||
if (device === "otoro") {
|
||||
callback(0);
|
||||
return;
|
||||
}
|
||||
|
||||
voidControlMessage("unload_driver", function(status) {
|
||||
driverLoaded = (status < 0);
|
||||
callback(status);
|
||||
});
|
||||
}
|
||||
|
||||
function startSupplicant(callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user