From 4bcc60934ee81e3035ecca88bd62844dbf8d6bd9 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 28 Feb 2024 09:25:47 +0100 Subject: [PATCH] rrmd: fix CSA on 6G channels Fixes: WIFI-13384 Signed-off-by: John Crispin --- feeds/ucentral/rrmd/files/usr/share/rrmd/local.uc | 2 ++ feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/local.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/local.uc index 57ec076e6..d4ede8550 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/local.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/local.uc @@ -24,6 +24,8 @@ function channel_to_freq(cur_freq, channel) { return 5000 + channel * 5; else if (band == '5G' && channel >= 183 && channel <= 196) return 4000 + channel * 5; + else if (band == '6G' && channel >= 5) + return 5950 + channel * 5; else if (band == '60G' && channel >= 1 && channel <= 6) return 56160 + channel * 2160; diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc index 0ff017dcf..abe5b4040 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc @@ -100,7 +100,7 @@ function scan_timer() { } catch(e) { printf('%.J\n', e.stacktrace[0].context); }; - return 1000; +// return 1000; } return {