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>
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) {