From owner-p4-projects@FreeBSD.ORG Tue Feb 3 23:04:53 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9425416A4D0; Tue, 3 Feb 2004 23:04:52 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A89616A4CE for ; Tue, 3 Feb 2004 23:04:52 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 270F943D1D for ; Tue, 3 Feb 2004 23:04:51 -0800 (PST) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1474o0B043144 for ; Tue, 3 Feb 2004 23:04:50 -0800 (PST) (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1474okm043141 for perforce@freebsd.org; Tue, 3 Feb 2004 23:04:50 -0800 (PST) (envelope-from sam@freebsd.org) Date: Tue, 3 Feb 2004 23:04:50 -0800 (PST) Message-Id: <200402040704.i1474okm043141@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 46466 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 07:04:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=46466 Change 46466 by sam@sam_ebb on 2004/02/03 23:03:50 sync w/ madwifi Affected files ... .. //depot/projects/netperf+sockets/sys/net80211/ieee80211_linux.c#2 edit .. //depot/projects/netperf+sockets/sys/net80211/ieee80211_linux.h#2 edit Differences ... ==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_linux.c#2 (text+ko) ==== @@ -28,6 +28,20 @@ #define EXPORT_SYMTAB #endif +/* + * IEEE 802.11 support (Linux-specific code) + */ +#include +#include +#include +#include +#include +#include +#include +#include + +#include "if_media.h" + #include /* @@ -110,6 +124,33 @@ } EXPORT_SYMBOL(ieee80211_ioctl); +#if IEEE80211_VLAN_TAG_USED +/* + * VLAN support. + */ + +/* + * Register a vlan group. + */ +void +ieee80211_vlan_register(struct ieee80211com *ic, struct vlan_group *grp) +{ + ic->ic_vlgrp = grp; +} +EXPORT_SYMBOL(ieee80211_vlan_register); + +/* + * Kill (i.e. delete) a vlan identifier. + */ +void +ieee80211_vlan_kill_vid(struct ieee80211com *ic, unsigned short vid) +{ + if (ic->ic_vlgrp) + ic->ic_vlgrp->vlan_devices[vid] = NULL; +} +EXPORT_SYMBOL(ieee80211_vlan_kill_vid); +#endif /* IEEE80211_VLAN_TAG_USED */ + #ifdef CONFIG_PROC_FS #include #include ==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_linux.h#2 (text+ko) ==== @@ -29,19 +29,6 @@ #ifndef _NET80211_IEEE80211_LINUX_H_ #define _NET80211_IEEE80211_LINUX_H_ -#include -#include -#include -#include -#include -#include -#include -#include - -#include "if_llc.h" -#include "if_ethersubr.h" -#include "if_media.h" - /* * Locking definitions. */ @@ -132,6 +119,15 @@ extern void ieee80211_proc_remove(struct ieee80211com *); #endif /* CONFIG_PROC_FS */ +#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) +#define IEEE80211_VLAN_TAG_USED 1 + +extern void ieee80211_vlan_register(struct ieee80211com *, struct vlan_group*); +extern void ieee80211_vlan_kill_vid(struct ieee80211com *, unsigned short); +#else +#define IEEE80211_VLAN_TAG_USED 0 +#endif + #ifdef CONFIG_NET_WIRELESS struct iw_statistics; extern void ieee80211_iw_getstats(struct ieee80211com*, struct iw_statistics*);