Skip to content

Commit df5d7a8

Browse files
Arend van Sprieljmberg-intel
authored andcommitted
cfg80211: fix boundary value in ieee80211_frequency_to_channel()
The boundary value used for the 6G band was incorrect as it would result in invalid 6G channel number for certain frequencies. Reported-by: Amar Singhal <asinghal@codeaurora.org> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Link: https://lore.kernel.org/r/1567510772-24263-1-git-send-email-arend.vanspriel@broadcom.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent c8cd6e7 commit df5d7a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/wireless/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int ieee80211_frequency_to_channel(int freq)
116116
return (freq - 2407) / 5;
117117
else if (freq >= 4910 && freq <= 4980)
118118
return (freq - 4000) / 5;
119-
else if (freq < 5940)
119+
else if (freq < 5945)
120120
return (freq - 5000) / 5;
121121
else if (freq <= 45000) /* DMG band lower limit */
122122
/* see 802.11ax D4.1 27.3.22.2 */

0 commit comments

Comments
 (0)