mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
cfg80211: add channel flag to prohibit OFDM operation
Currently the only way for wireless drivers to tell whether or not OFDM is allowed on the current channel is to check the regulatory information. However, this requires hodling cfg80211_mutex, which is not visible to the drivers. Other regulatory restrictions are provided as flags in the channel definition, so let's do similarly with OFDM. This patch adds a new flag, IEEE80211_CHAN_NO_OFDM, to tell drivers that OFDM on a channel is not allowed. This flag is set on any channels for which regulatory indicates that OFDM is prohibited. Signed-off-by: Seth Forshee <[email protected]> Tested-by: Arend van Spriel <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
dd4c9260e7
commit
03f6b0843a
2 changed files with 4 additions and 0 deletions
|
|
@ -680,6 +680,8 @@ static u32 map_regdom_flags(u32 rd_flags)
|
|||
channel_flags |= IEEE80211_CHAN_NO_IBSS;
|
||||
if (rd_flags & NL80211_RRF_DFS)
|
||||
channel_flags |= IEEE80211_CHAN_RADAR;
|
||||
if (rd_flags & NL80211_RRF_NO_OFDM)
|
||||
channel_flags |= IEEE80211_CHAN_NO_OFDM;
|
||||
return channel_flags;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue