diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2008-07-21 19:27:27 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2008-07-21 19:27:27 +0000 |
commit | 08430a2ddf7fd5201d4b1fbb8da645d3a9634bca (patch) | |
tree | c30ae6f0787b1041d0fe63944a78ebf8dedf4290 /sys/net80211/ieee80211_input.c | |
parent | a9742443496f17c1a7ae97abed8bf5191fc67d7f (diff) |
add ieee80211_priv.h file: contains definitions private to net80211.
this must not be included by drivers.
Diffstat (limited to 'sys/net80211/ieee80211_input.c')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 0fa629c0a33..846c15eb94f 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,5 +1,5 @@ /* $NetBSD: ieee80211_input.c,v 1.24 2004/05/31 11:12:24 dyoung Exp $ */ -/* $OpenBSD: ieee80211_input.c,v 1.82 2008/07/21 19:05:21 damien Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.83 2008/07/21 19:27:26 damien Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -61,6 +61,7 @@ #endif #include <net80211/ieee80211_var.h> +#include <net80211/ieee80211_priv.h> int ieee80211_parse_edca_params_body(struct ieee80211com *, const u_int8_t *); @@ -630,18 +631,6 @@ ieee80211_decap(struct ifnet *ifp, struct mbuf *m, int hdrlen) return m; } -/* unaligned little endian access */ -#define LE_READ_2(p) \ - ((u_int16_t) \ - ((((const u_int8_t *)(p))[0]) | \ - (((const u_int8_t *)(p))[1] << 8))) -#define LE_READ_4(p) \ - ((u_int32_t) \ - ((((const u_int8_t *)(p))[0]) | \ - (((const u_int8_t *)(p))[1] << 8) | \ - (((const u_int8_t *)(p))[2] << 16) | \ - (((const u_int8_t *)(p))[3] << 24))) - /* * Parse an EDCA Parameter Set element (see 7.3.2.27). */ |