]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: restore noscan for sta/adhoc/mesh 21443/head
authorOmar Avelar <host.omar@gmail.com>
Tue, 7 Apr 2026 14:12:51 +0000 (08:12 -0600)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 4 Aug 2026 00:30:55 +0000 (02:30 +0200)
Restore the original mac80211.sh behavior by setting noscan when
fixed_freq is enabled for sta, adhoc and mesh modes. This ensures
correct channel width operation for fixed-frequency links and
matches the legacy mac80211.sh behavior.

Signed-off-by: Omar Avelar <host.omar@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21443
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/supplicant.uc

index fe1d24fcb35651efba71a9c732b867e7adbffe88..87f8dcf68229414fb3a67ecf256fa0a497c67904 100644 (file)
@@ -36,6 +36,9 @@ function set_fixed_freq(data, config) {
 
        if (wildcard(data.htmode, 'VHT*'))
                set_default(config, 'vht', 1);
+
+       if (config.mode in [ 'sta', 'adhoc', 'mesh' ])
+               set_default(config, 'noscan', true);
 }
 
 export function ratestr(rate) {