diff mbox

[RFC,1/8] nl80211: Add new channel types -- 5MHz and 10MHz

Message ID 1394199475-5208-2-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
These attributes are necessary to provide a way how to
set a channel type of '5MHz' or '10MHz' from userspace.
This is necessary for future 802.11p implementation.

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

Comments

Johannes Berg March 7, 2014, 2:27 p.m. UTC | #1
On Fri, 2014-03-07 at 14:37 +0100, Rostislav Lisovy wrote:
> These attributes are necessary to provide a way how to
> set a channel type of '5MHz' or '10MHz' from userspace.
> This is necessary for future 802.11p implementation.

>  enum nl80211_channel_type {
>  	NL80211_CHAN_NO_HT,
>  	NL80211_CHAN_HT20,
>  	NL80211_CHAN_HT40MINUS,
> -	NL80211_CHAN_HT40PLUS
> +	NL80211_CHAN_HT40PLUS,
> +	NL80211_CHAN_5MHZ,
> +	NL80211_CHAN_10MHZ,

I think that this is completely unnecessary since all APIs that take
channel types also take channel width with the new chandef framework.

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/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 91054fd..8d0e319 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -2891,12 +2891,16 @@  enum nl80211_ac {
  *	below the control channel
  * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel
  *	above the control channel
+ * @NL80211_CHAN_5MHZ: normal, 5 MHz bandwidth
+ * @NL80211_CHAN_10MHZ: normal, 10 MHz bandwidth
  */
 enum nl80211_channel_type {
 	NL80211_CHAN_NO_HT,
 	NL80211_CHAN_HT20,
 	NL80211_CHAN_HT40MINUS,
-	NL80211_CHAN_HT40PLUS
+	NL80211_CHAN_HT40PLUS,
+	NL80211_CHAN_5MHZ,
+	NL80211_CHAN_10MHZ,
 };
 
 /**