mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 22:25:13 +08:00
🍕 Sync 2026-09-14 23:30:37
This commit is contained in:
1 parent
0603b094cf
commit
81fe4cd866
214 files changed
+10806
-2630
No files matched your search
@@ -362,7 +362,9 @@ function refreshWirelessState() {
|
||||
|
||||
const wifiDevices = uci.sections('wireless', 'wifi-device');
|
||||
const configOnly = wifiDevices.length > 0 && wifiDevices.every(function(device) {
|
||||
return (device.type == 'mt_dbdc' || device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
// Legacy MT7615 DBDC uses ra0/rax0 radio sections; MT798x uses ra/rax.
|
||||
return ((device.type == 'mt_dbdc' && /^ra[xiyez]?0$/.test(device['.name'])) ||
|
||||
device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
});
|
||||
|
||||
if (configOnly)
|
||||
@@ -408,7 +410,9 @@ function refreshWirelessState() {
|
||||
function waitForWirelessState() {
|
||||
const wifiDevices = uci.sections('wireless', 'wifi-device');
|
||||
const hasConfigOnlyWifi = wifiDevices.some(function(device) {
|
||||
return (device.type == 'mt_dbdc' || device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
// Legacy MT7615 DBDC uses ra0/rax0 radio sections; MT798x uses ra/rax.
|
||||
return ((device.type == 'mt_dbdc' && /^ra[xiyez]?0$/.test(device['.name'])) ||
|
||||
device.type == 'qcawifi' || device.type == 'qcawificfg80211');
|
||||
});
|
||||
const refresh = refreshWirelessState();
|
||||
|
||||
|
||||
Reference in new issue
Block a user