diff options
| author | Richard Huynh | 2026-03-28 09:10:33 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-04-12 18:21:57 +0000 |
| commit | 8fc7a3d2d086ae3e5e4c77d2a9f1d2219517a952 (patch) | |
| tree | 381d361652993c924a95293124bcb3e0cf32d1c8 | |
| parent | 7118a5b5ee4ee8f36a5f04808482f65650f538e0 (diff) | |
| download | openwrt-8fc7a3d2d086ae3e5e4c77d2a9f1d2219517a952.tar.gz | |
wifi-scripts: add EHT rates to set_fixed_freq
Without this, max_oper_chwidth is set incorrectly,
thus ibss_mesh_select_80_160mhz fails to set the correct channel width
Signed-off-by: Richard Huynh <voxlympha@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22644
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 6abfd98c4ea3d23fb9a395f1bf696fb1947005fa)
| -rw-r--r-- | package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc index 504a4ed1d1..e6cdf8d578 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc @@ -16,20 +16,22 @@ function set_fixed_freq(data, config) { set_default(config, 'fixed_freq', 1); set_default(config, 'frequency', data.frequency); - if (data.htmode in [ 'VHT80', 'HE80' ]) + if (data.htmode in [ 'VHT80', 'HE80', 'EHT80' ]) set_default(config, 'max_oper_chwidth', 1); - else if (data.htmode in [ 'VHT160', 'HE160' ]) + else if (data.htmode in [ 'VHT160', 'HE160', 'EHT160' ]) set_default(config, 'max_oper_chwidth', 2); - else if (data.htmode in [ 'VHT20', 'VHT40', 'HE20', 'HE40' ]) + else if (data.htmode in [ 'EHT320' ]) + set_default(config, 'max_oper_chwidth', 9); + else if (data.htmode in [ 'VHT20', 'VHT40', 'HE20', 'HE40', 'EHT20', 'EHT40' ]) set_default(config, 'max_oper_chwidth', 0); else set_default(config, 'disable_vht', true); if (data.htmode in [ 'NOHT' ]) set_default(config, 'disable_ht', true); - else if (data.htmode in [ 'HT20', 'VHT20', 'HE20' ]) + else if (data.htmode in [ 'HT20', 'VHT20', 'HE20', 'EHT20' ]) set_default(config, 'disable_ht40', true); - else if (data.htmode in [ 'VHT40', 'VHT80', 'VHT160', 'HE40', 'HE80', 'HE160' ]) + else if (data.htmode in [ 'VHT40', 'VHT80', 'VHT160', 'HE40', 'HE80', 'HE160', 'EHT40', 'EHT80', 'EHT160', 'EHT320' ]) set_default(config, 'ht40', true); if (wildcard(data.htmode, 'VHT*')) |