]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: add channel flag to prohibit OFDM operation
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 1 Aug 2012 20:58:42 +0000 (15:58 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 2 Aug 2012 13:30:49 +0000 (15:30 +0200)
commit1737255ce8a492d1e7f33d570de50b2de0e6c2eb
tree607cffb37a59419093cc3bfe6b08bc83365e822d
parentaf7d4ee6ed3ec1c940b1df1e38839a7d76a375e2
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 <seth.forshee@canonical.com>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/reg.c