]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: util: Fix 6 GHz 80 MHz CF1 configuration
authorHariharan Basuthkar <hariharan.basuthkar@oss.qualcomm.com>
Mon, 2 Mar 2026 04:03:24 +0000 (09:33 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Mar 2026 10:00:08 +0000 (11:00 +0100)
Fix the 80 MHz base-frequency table used by get_cf1().

Replace the incorrect 6195 MHz entry with 6915 MHz in bw80[] so center_freq1
is computed correctly for 6 GHz 80 MHz channels.

Signed-off-by: Hariharan Basuthkar <hariharan.basuthkar@oss.qualcomm.com>
Link: https://patch.msgid.link/20260302040324.2443341-1-hariharan.basuthkar@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
util.c

diff --git a/util.c b/util.c
index 06c334702340b05c3cb18af2a6b6103da76d9510..e6d42e54822dcb285a7fdf7e310620ce002fb6ee 100644 (file)
--- a/util.c
+++ b/util.c
@@ -2097,7 +2097,7 @@ int get_cf1(const struct chanmode *chanmode, unsigned long freq)
        unsigned int bw80[] = { 5180, 5260, 5500, 5580, 5660, 5745,
                                5955, 6035, 6115, 6195, 6275, 6355,
                                6435, 6515, 6595, 6675, 6755, 6835,
-                               6195, 6995 };
+                               6915, 6995 };
        unsigned int bw160[] = { 5180, 5500, 5955, 6115, 6275, 6435,
                                  6595, 6755, 6915 };
        /* based on 11be D2 E.1 Country information and operating classes */