Deleted Added
full compact
ieee80211_input.h (190391) ieee80211_input.h (195757)
1/*-
2 * Copyright (c) 2007-2009 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) 2007-2009 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_input.h 190391 2009-03-24 20:39:08Z sam $
25 * $FreeBSD: head/sys/net80211/ieee80211_input.h 195757 2009-07-18 20:19:53Z sam $
26 */
27#ifndef _NET80211_IEEE80211_INPUT_H_
28#define _NET80211_IEEE80211_INPUT_H_
29
30/* Verify the existence and length of __elem or get out. */
31#define IEEE80211_VERIFY_ELEMENT(__elem, __maxlen, _action) do { \
32 if ((__elem) == NULL) { \
33 IEEE80211_DISCARD(vap, IEEE80211_MSG_ELEMID, \

--- 107 unchanged lines hidden (view full) ---

141{
142 return frm[1] > 3 && LE_READ_4(frm+2) == ((BCM_OUI_HTINFO<<24)|BCM_OUI);
143}
144
145void ieee80211_deliver_data(struct ieee80211vap *,
146 struct ieee80211_node *, struct mbuf *);
147struct mbuf *ieee80211_defrag(struct ieee80211_node *,
148 struct mbuf *, int);
26 */
27#ifndef _NET80211_IEEE80211_INPUT_H_
28#define _NET80211_IEEE80211_INPUT_H_
29
30/* Verify the existence and length of __elem or get out. */
31#define IEEE80211_VERIFY_ELEMENT(__elem, __maxlen, _action) do { \
32 if ((__elem) == NULL) { \
33 IEEE80211_DISCARD(vap, IEEE80211_MSG_ELEMID, \

--- 107 unchanged lines hidden (view full) ---

141{
142 return frm[1] > 3 && LE_READ_4(frm+2) == ((BCM_OUI_HTINFO<<24)|BCM_OUI);
143}
144
145void ieee80211_deliver_data(struct ieee80211vap *,
146 struct ieee80211_node *, struct mbuf *);
147struct mbuf *ieee80211_defrag(struct ieee80211_node *,
148 struct mbuf *, int);
149struct mbuf *ieee80211_realign(struct ieee80211vap *, struct mbuf *, size_t);
149struct mbuf *ieee80211_decap(struct ieee80211vap *, struct mbuf *, int);
150struct mbuf *ieee80211_decap1(struct mbuf *, int *);
151int ieee80211_setup_rates(struct ieee80211_node *ni,
152 const uint8_t *rates, const uint8_t *xrates, int flags);
153void ieee80211_send_error(struct ieee80211_node *,
154 const uint8_t mac[IEEE80211_ADDR_LEN], int subtype, int arg);
155int ieee80211_alloc_challenge(struct ieee80211_node *);
156int ieee80211_parse_beacon(struct ieee80211_node *, struct mbuf *,
157 struct ieee80211_scanparams *);
158int ieee80211_parse_action(struct ieee80211_node *, struct mbuf *);
159#endif /* _NET80211_IEEE80211_INPUT_H_ */
150struct mbuf *ieee80211_decap(struct ieee80211vap *, struct mbuf *, int);
151struct mbuf *ieee80211_decap1(struct mbuf *, int *);
152int ieee80211_setup_rates(struct ieee80211_node *ni,
153 const uint8_t *rates, const uint8_t *xrates, int flags);
154void ieee80211_send_error(struct ieee80211_node *,
155 const uint8_t mac[IEEE80211_ADDR_LEN], int subtype, int arg);
156int ieee80211_alloc_challenge(struct ieee80211_node *);
157int ieee80211_parse_beacon(struct ieee80211_node *, struct mbuf *,
158 struct ieee80211_scanparams *);
159int ieee80211_parse_action(struct ieee80211_node *, struct mbuf *);
160#endif /* _NET80211_IEEE80211_INPUT_H_ */