Skip to content

Commit

Permalink
cfg80211: use same IR permissive rules for 6GHz band
Browse files Browse the repository at this point in the history
The function cfg80211_ir_permissive_chan() is applicable for
6GHz band as well so make sure it is handled.

Reviewed-by: Pieter-Paul Giesberts <[email protected]>
Reviewed-by: Leon Zegers <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
Arend van Spriel authored and jmberg-intel committed Aug 21, 2019
1 parent e548a1c commit 0816e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/wireless/chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ static bool cfg80211_ir_permissive_chan(struct wiphy *wiphy,
if (chan == other_chan)
return true;

if (chan->band != NL80211_BAND_5GHZ)
if (chan->band != NL80211_BAND_5GHZ &&
chan->band != NL80211_BAND_6GHZ)
continue;

r1 = cfg80211_get_unii(chan->center_freq);
Expand Down

0 comments on commit 0816e6b

Please sign in to comment.