mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 16:24:32 +08:00
🏅 Sync 2026-09-06 10:36:07
This commit is contained in:
1 parent
0ea1d5951d
commit
5a17d85861
2 files changed
+51
-23
No files matched your search
@@ -361,11 +361,11 @@ function refreshWirelessState() {
|
||||
return _wirelessInit;
|
||||
|
||||
const wifiDevices = uci.sections('wireless', 'wifi-device');
|
||||
const qcaOnly = wifiDevices.length > 0 && wifiDevices.every(function(device) {
|
||||
return (device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
const configOnly = wifiDevices.length > 0 && wifiDevices.every(function(device) {
|
||||
return (device.type == 'mt_dbdc' || device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
});
|
||||
|
||||
if (qcaOnly)
|
||||
if (configOnly)
|
||||
return Promise.resolve();
|
||||
|
||||
_wirelessInit = L.resolveDefault(callLuciWirelessDevices(), {}).then(function(radios) {
|
||||
@@ -407,12 +407,12 @@ function refreshWirelessState() {
|
||||
|
||||
function waitForWirelessState() {
|
||||
const wifiDevices = uci.sections('wireless', 'wifi-device');
|
||||
const hasQcaWifi = wifiDevices.some(function(device) {
|
||||
return (device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
const hasConfigOnlyWifi = wifiDevices.some(function(device) {
|
||||
return (device.type == 'mt_dbdc' || device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
});
|
||||
const refresh = refreshWirelessState();
|
||||
|
||||
return hasQcaWifi ? Promise.resolve() : refresh;
|
||||
return hasConfigOnlyWifi ? Promise.resolve() : refresh;
|
||||
}
|
||||
|
||||
function initNetworkState(refresh) {
|
||||
|
||||
Reference in new issue
Block a user