summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_freebsd.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-09-05 20:22:59 +0000
committersam <sam@FreeBSD.org>2007-09-05 20:22:59 +0000
commit31b9300aaae2359c1de8a4289e294f0ad852dab2 (patch)
tree2dcfdf9504803541734b66b2ffdcdd397f4f1224 /sys/net80211/ieee80211_freebsd.h
parentef86a72db612f7100b57704e0c0f097cb3c1b6a0 (diff)
downloadFreeBSD-src-31b9300aaae2359c1de8a4289e294f0ad852dab2.zip
FreeBSD-src-31b9300aaae2359c1de8a4289e294f0ad852dab2.tar.gz
o add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
device and have had the crypto bits stripped from the 802.11 header o strip mbuf flags in the rx path before passing up the stack Reviewed by: thompsa, sephe, avatar Approved by: re (blanket wireless)
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.h')
-rw-r--r--sys/net80211/ieee80211_freebsd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h
index 46a15d5..005f61d 100644
--- a/sys/net80211/ieee80211_freebsd.h
+++ b/sys/net80211/ieee80211_freebsd.h
@@ -184,14 +184,19 @@ void ieee80211_drain_ifq(struct ifqueue *);
#define time_before_eq(a,b) time_after_eq(b,a)
struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen);
+
/* tx path usage */
#define M_LINK0 M_PROTO1 /* WEP requested */
#define M_PWR_SAV M_PROTO4 /* bypass PS handling */
#define M_MORE_DATA M_PROTO5 /* more data frames to follow */
#define M_FF 0x20000 /* fast frame */
#define M_TXCB 0x40000 /* do tx complete callback */
+#define M_80211_TX (0x60000|M_PROTO1|M_WME_AC_MASK|M_PROTO4|M_PROTO5)
+
/* rx path usage */
#define M_AMPDU M_PROTO1 /* A-MPDU processing done */
+#define M_WEP M_PROTO2 /* WEP done by hardware */
+#define M_80211_RX (M_AMPDU|M_WEP)
/*
* Encode WME access control bits in the PROTO flags.
* This is safe since it's passed directly in to the
OpenPOWER on IntegriCloud