🦄 Sync 2026-10-17 20:40:04

This commit is contained in:
github-actions[bot] committed 2026-10-17 20:40:04 +08:00
1 parent 315f273687
commit c9ccf6f883
37 files changed
+716 -171

No files matched your search

@@ -1755,7 +1755,8 @@ var CBIWifiFrequencyValue = form.Value.extend({
configOnly ? {} : this.callDeviceInfo(device_section),
configOnly ? {} : L.resolveDefault(this.callWirelessStatus(), {}),
!configOnly && isQcaWifiHwtype(hwtype) ? L.resolveDefault(fs.exec_direct('/usr/sbin/iw', [ 'dev' ]), '') : '',
!configOnly && isQcaWifiHwtype(hwtype) ? L.resolveDefault(fs.exec_direct('/usr/sbin/iw', [ 'phy' ]), '') : ''
!configOnly && isQcaWifiHwtype(hwtype) ? L.resolveDefault(fs.exec_direct('/usr/sbin/iw', [ 'phy' ]), '') : '',
isQcaWifiHwtype(hwtype) ? L.resolveDefault(fs.read('/sys/class/net/' + (uci.get('wireless', device_section, 'phy') || device_section) + '/device/uevent'), '') : ''
]).then(L.bind(function(data) {
const wifidevs = data[0];
const freqlist = data[1];
@@ -1775,6 +1776,7 @@ var CBIWifiFrequencyValue = form.Value.extend({
this.devinfo = devinfo;
this.devcfg = devcfg;
this.iwPhyMaxWidth = iwPhyName ? iwPhyWidthMap[iwPhyName] : null;
this.qca8074v1 = /^OF_COMPATIBLE_[0-9]+=qcom,cnss-qca8074$/m.test(data[6]);
this.hwtype = hwtype;
this.channels = {
@@ -1889,7 +1891,7 @@ var CBIWifiFrequencyValue = form.Value.extend({
const qca_has_ac = qca_has_ax || has_ac || /^11ac/.test(hwval);
const qca_has_n = qca_has_ac || hwmodelist.n || /^11n/.test(hwval);
const qca_has_htinfo = (Object.keys(htmodelist).length > 0);
const qca_max_width = this.iwPhyMaxWidth || Infinity;
const qca_max_width = this.qca8074v1 ? 80 : (this.iwPhyMaxWidth || Infinity);
const qca_ht20 = !!(!qca_has_htinfo || htmodelist.HT20 || htmodelist.VHT20 || htmodelist.HE20 || htmodelist.EHT20 || /^HT20$/.test(htval));
const qca_ht40 = !!(!qca_has_htinfo || htmodelist.HT40 || htmodelist.VHT40 || htmodelist.HE40 || htmodelist.EHT40 || /^HT40$/.test(htval));
const qca_ht80 = (!!(!qca_has_htinfo || htmodelist.VHT80 || htmodelist.HE80 || htmodelist.EHT80 || /^HT80$/.test(htval)) && qca_max_width >= 80);
@@ -1915,7 +1917,7 @@ var CBIWifiFrequencyValue = form.Value.extend({
'HT40', '40 MHz', { available: qca_ht40 },
'HT80', '80 MHz', { available: qca_ht80 },
'HT160', '160 MHz', { available: qca_ht160 },
'HT80_80', '80+80 MHz', { available: /^HT80_80$/.test(htval) }
'HT80_80', '80+80 MHz', { available: !this.qca8074v1 && /^HT80_80$/.test(htval) }
],
'ax': [
'HT20', '20 MHz', { available: qca_ht20 },