Deleted Added
full compact
ieee80211_radiotap.c (193761) ieee80211_radiotap.c (229952)
1/*-
2 * Copyright (c) 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

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

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
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 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

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

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
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_radiotap.c 193761 2009-06-08 21:16:06Z sam $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_radiotap.c 229952 2012-01-11 01:09:08Z adrian $");
28
29/*
30 * IEEE 802.11 radiotap support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

320 [IEEE80211_RADIOTAP_DB_ANTNOISE] = {
321 .align = sizeof(uint8_t),
322 .width = sizeof(uint8_t),
323 },
324 [IEEE80211_RADIOTAP_XCHANNEL] = {
325 .align = sizeof(uint32_t),
326 .width = 2*sizeof(uint32_t),
327 },
28
29/*
30 * IEEE 802.11 radiotap support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

320 [IEEE80211_RADIOTAP_DB_ANTNOISE] = {
321 .align = sizeof(uint8_t),
322 .width = sizeof(uint8_t),
323 },
324 [IEEE80211_RADIOTAP_XCHANNEL] = {
325 .align = sizeof(uint32_t),
326 .width = 2*sizeof(uint32_t),
327 },
328 [IEEE80211_RADIOTAP_MCS] = {
329 .align = sizeof(uint8_t),
330 .width = 3*sizeof(uint8_t),
331 },
328 };
329 uint32_t present = le32toh(rh->it_present);
330 int off, i;
331
332 off = sizeof(struct ieee80211_radiotap_header);
333 for (i = 0; i < IEEE80211_RADIOTAP_EXT; i++) {
334 if ((present & (1<<i)) == 0)
335 continue;

--- 20 unchanged lines hidden ---
332 };
333 uint32_t present = le32toh(rh->it_present);
334 int off, i;
335
336 off = sizeof(struct ieee80211_radiotap_header);
337 for (i = 0; i < IEEE80211_RADIOTAP_EXT; i++) {
338 if ((present & (1<<i)) == 0)
339 continue;

--- 20 unchanged lines hidden ---