projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a752819
)
cfg80211: fix 6 GHz frequencies to kHz
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 29 May 2020 12:04:27 +0000
(14:04 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Sun, 31 May 2020 09:25:59 +0000
(11:25 +0200)
The updates to change to kHz frequencies and the 6 GHz
additions evidently overlapped (or rather, I didn't see
it when applying the latter), so the 6 GHz is broken.
Fix this.
Fixes:
934f4c7dd3a5
("cfg80211: express channels with a KHz component")
Link:
https://lore.kernel.org/r/20200529140425.1bf824f6911b.I4a1174916b8f5965af4366999eb9ffc7a0347470@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c
patch
|
blob
|
history
diff --git
a/net/wireless/util.c
b/net/wireless/util.c
index
df75e58
..
5b3b0d1
100644
(file)
--- a/
net/wireless/util.c
+++ b/
net/wireless/util.c
@@
-94,7
+94,7
@@
u32 ieee80211_channel_to_freq_khz(int chan, enum nl80211_band band)
case NL80211_BAND_6GHZ:
/* see 802.11ax D4.1 27.3.22.2 */
if (chan <= 253)
- return
5940 + chan * 5
;
+ return
MHZ_TO_KHZ(5940 + chan * 5)
;
break;
case NL80211_BAND_60GHZ:
if (chan < 7)