netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nl80211: remove VLAN type
@ 2007-08-15  9:18 Johannes Berg
       [not found] ` <1187169518.3960.0.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2007-08-15  9:18 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, John W. Linville, linux-wireless

There is no point in trying to handle source MAC address based VLANs in
the wireless stack, something like "smacvlan" modeled after macvlan
should be sufficient.

Signed-off-by: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>

---
We could just not keep the hole as well since people can't really be
using that header yet, but the version we have in previous kernels could
still be shipped somewhere so I think it should be kept compatible.

 include/linux/nl80211.h |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

--- wireless-dev.orig/include/linux/nl80211.h	2007-08-15 00:43:06.290200043 +0200
+++ wireless-dev/include/linux/nl80211.h	2007-08-15 00:45:51.860200043 +0200
@@ -207,7 +207,6 @@ enum nl80211_attrs {
  * @NL80211_IFTYPE_ADHOC: independent BSS member
  * @NL80211_IFTYPE_STATION: managed BSS member
  * @NL80211_IFTYPE_AP: access point
- * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points
  * @NL80211_IFTYPE_WDS: wireless distribution interface
  * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames
  * @__NL80211_IFTYPE_AFTER_LAST: internal use
@@ -217,13 +216,17 @@ enum nl80211_attrs {
  *
  */
 enum nl80211_iftype {
-	NL80211_IFTYPE_UNSPECIFIED,
-	NL80211_IFTYPE_ADHOC,
-	NL80211_IFTYPE_STATION,
-	NL80211_IFTYPE_AP,
-	NL80211_IFTYPE_AP_VLAN,
-	NL80211_IFTYPE_WDS,
-	NL80211_IFTYPE_MONITOR,
+	NL80211_IFTYPE_UNSPECIFIED = 0,
+	NL80211_IFTYPE_ADHOC = 1,
+	NL80211_IFTYPE_STATION = 2,
+	NL80211_IFTYPE_AP = 3,
+	/*
+	 * there was AP_VLAN here but it was never used
+	 * keep the number unallocated for the benefit
+	 * of those people using old headers
+	 */
+	NL80211_IFTYPE_WDS = 5,
+	NL80211_IFTYPE_MONITOR = 6,
 
 	/* keep last */
 	__NL80211_IFTYPE_AFTER_LAST

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] nl80211: remove VLAN type
       [not found] ` <1187169518.3960.0.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
@ 2007-08-16 15:03   ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2007-08-16 15:03 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

On Wed, 2007-08-15 at 11:18 +0200, Johannes Berg wrote:
> There is no point in trying to handle source MAC address based VLANs in
> the wireless stack, something like "smacvlan" modeled after macvlan
> should be sufficient.

Whoops. I only forgot the use with encryption. Please consider this
patch withdrawn, at least until I see clearer through that crypto issue.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-16 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15  9:18 [PATCH] nl80211: remove VLAN type Johannes Berg
     [not found] ` <1187169518.3960.0.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-08-16 15:03   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).