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)
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>

No differences found