]> 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)
commit456d322eae1f49e069fc85a8857170c7bae54672
tree607cffb37a59419093cc3bfe6b08bc83365e822d
parent064a44a42d5b8fcfc80c79d6a3617e5b96222724
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