]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: cfg80211: Add support for additional 7 GHz channels
authorIlan Peer <ilan.peer@intel.com>
Mon, 23 Mar 2026 21:02:50 +0000 (23:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Mar 2026 15:29:49 +0000 (16:29 +0100)
Add support for channels 237, 241, 245, 249, 253 and support
for additional 320 MHz segment.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260323230242.072942e8e55a.I20eba7b534c6402d5e55f862865ff1e6fef64d83@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c

index fa0764ede9c59bfac9a0acc11d44e87887d7c5c5..2dcf18f5655e319e87cc031faa60e8c1cd9b75bc 100644 (file)
@@ -317,7 +317,7 @@ static bool cfg80211_valid_center_freq(u32 center,
        int step;
 
        /* We only do strict verification on 6 GHz */
-       if (center < 5955 || center > 7115)
+       if (center < 5955 || center > 7215)
                return true;
 
        bw = nl80211_chan_width_to_mhz(width);
@@ -325,7 +325,7 @@ static bool cfg80211_valid_center_freq(u32 center,
                return false;
 
        /* Validate that the channels bw is entirely within the 6 GHz band */
-       if (center - bw / 2 < 5945 || center + bw / 2 > 7125)
+       if (center - bw / 2 < 5945 || center + bw / 2 > 7225)
                return false;
 
        /* With 320 MHz the permitted channels overlap */