forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wifi: nl80211/reg: add no-EHT regulatory flag
This just propagates to the channel flags, like no-HE and similar other flags before it. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Gregory Greenman <[email protected]> Link: https://lore.kernel.org/r/20230619161906.74ce2983aed8.Ifa343ba89c11760491daad5aee5a81209d5735a7@changeid Signed-off-by: Johannes Berg <[email protected]>
- Loading branch information
1 parent
4ef2f53
commit 6c5b9a3
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Copyright 2008-2011 Luis R. Rodriguez <[email protected]> | ||
* Copyright 2013-2014 Intel Mobile Communications GmbH | ||
* Copyright 2017 Intel Deutschland GmbH | ||
* Copyright (C) 2018 - 2022 Intel Corporation | ||
* Copyright (C) 2018 - 2023 Intel Corporation | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
|
@@ -1587,6 +1587,8 @@ static u32 map_regdom_flags(u32 rd_flags) | |
channel_flags |= IEEE80211_CHAN_NO_HE; | ||
if (rd_flags & NL80211_RRF_NO_320MHZ) | ||
channel_flags |= IEEE80211_CHAN_NO_320MHZ; | ||
if (rd_flags & NL80211_RRF_NO_EHT) | ||
channel_flags |= IEEE80211_CHAN_NO_EHT; | ||
return channel_flags; | ||
} | ||
|
||
|