rrmd: fix CSA on 6G channels

Fixes: WIFI-13384
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-02-28 09:25:47 +01:00
parent 2b4fd7911a
commit 4bcc60934e
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -100,7 +100,7 @@ function scan_timer() {
} catch(e) {
printf('%.J\n', e.stacktrace[0].context);
};
return 1000;
// return 1000;
}
return {