mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
wifi: cfg80211: Add support for additional 7 GHz channels
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>
This commit is contained in:
parent
3f21614c20
commit
6c65b23457
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user