diff mbox

[RFC,3/8] cfg80211: Add attributes describing channel bandwidth

Message ID 1394199475-5208-4-git-send-email-rostislav.lisovy@fel.cvut.cz (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Rostislav Lisovy March 7, 2014, 1:37 p.m. UTC
Since channels with frequencies ranging from 5850 to 5925
are used with 5/10 MHz channels according to IEEE 802.11p,
we need a way how to keep the information about the forbidden
bandwidths.

Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>
---
 include/net/cfg80211.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Johannes Berg March 7, 2014, 2:28 p.m. UTC | #1
On Fri, 2014-03-07 at 14:37 +0100, Rostislav Lisovy wrote:
> Since channels with frequencies ranging from 5850 to 5925
> are used with 5/10 MHz channels according to IEEE 802.11p,
> we need a way how to keep the information about the forbidden
> bandwidths.

I see no reason to have this as a separate patch with the previous one.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index b1f84b0..f5ecd6c 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -109,6 +109,10 @@  enum ieee80211_band {
  *	channel as the control or any of the secondary channels.
  *	This may be due to the driver or due to regulatory bandwidth
  *	restrictions.
+ * @IEEE80211_CHAN_NO_20MHZ: 20 MHz bandwidth is not permitted
+ *     on this channel.
+ * @IEEE80211_CHAN_NO_10MHZ: 10 MHz bandwidth is not permitted
+ *     on this channel.
  */
 enum ieee80211_channel_flags {
 	IEEE80211_CHAN_DISABLED		= 1<<0,
@@ -120,6 +124,8 @@  enum ieee80211_channel_flags {
 	IEEE80211_CHAN_NO_OFDM		= 1<<6,
 	IEEE80211_CHAN_NO_80MHZ		= 1<<7,
 	IEEE80211_CHAN_NO_160MHZ	= 1<<8,
+	IEEE80211_CHAN_NO_20MHZ		= 1<<9,
+	IEEE80211_CHAN_NO_10MHZ		= 1<<10,
 };
 
 #define IEEE80211_CHAN_NO_HT40 \