ieee80211_freebsd.h (188554) | ieee80211_freebsd.h (189170) |
---|---|
1/*- 2 * Copyright (c) 2003-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2003-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 188554 2009-02-13 05:26:04Z sam $ | 25 * $FreeBSD: head/sys/net80211/ieee80211_freebsd.h 189170 2009-02-28 16:21:25Z ed $ |
26 */ 27#ifndef _NET80211_IEEE80211_FREEBSD_H_ 28#define _NET80211_IEEE80211_FREEBSD_H_ 29 30#ifdef _KERNEL 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/mutex.h> --- 168 unchanged lines hidden (view full) --- 202#define msecs_to_ticks(ms) (((ms)*hz)/1000) 203#define ticks_to_msecs(t) (1000*(t) / hz) 204#define ticks_to_secs(t) ((t) / hz) 205#define time_after(a,b) ((long)(b) - (long)(a) < 0) 206#define time_before(a,b) time_after(b,a) 207#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) 208#define time_before_eq(a,b) time_after_eq(b,a) 209 | 26 */ 27#ifndef _NET80211_IEEE80211_FREEBSD_H_ 28#define _NET80211_IEEE80211_FREEBSD_H_ 29 30#ifdef _KERNEL 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/mutex.h> --- 168 unchanged lines hidden (view full) --- 202#define msecs_to_ticks(ms) (((ms)*hz)/1000) 203#define ticks_to_msecs(t) (1000*(t) / hz) 204#define ticks_to_secs(t) ((t) / hz) 205#define time_after(a,b) ((long)(b) - (long)(a) < 0) 206#define time_before(a,b) time_after(b,a) 207#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0) 208#define time_before_eq(a,b) time_after_eq(b,a) 209 |
210#define memmove(dst, src, n) ovbcopy(src, dst, n) 211 | |
212struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen); 213 214/* tx path usage */ 215#define M_ENCAP M_PROTO1 /* 802.11 encap done */ 216#define M_WDS M_PROTO2 /* WDS frame */ 217#define M_EAPOL M_PROTO3 /* PAE/EAPOL frame */ 218#define M_PWR_SAV M_PROTO4 /* bypass PS handling */ 219#define M_MORE_DATA M_PROTO5 /* more data frames to follow */ --- 304 unchanged lines hidden --- | 210struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen); 211 212/* tx path usage */ 213#define M_ENCAP M_PROTO1 /* 802.11 encap done */ 214#define M_WDS M_PROTO2 /* WDS frame */ 215#define M_EAPOL M_PROTO3 /* PAE/EAPOL frame */ 216#define M_PWR_SAV M_PROTO4 /* bypass PS handling */ 217#define M_MORE_DATA M_PROTO5 /* more data frames to follow */ --- 304 unchanged lines hidden --- |