Deleted Added
full compact
ieee80211.c (271861) ieee80211.c (276757)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 271861 2014-09-19 09:20:55Z glebius $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 276757 2015-01-06 18:25:10Z adrian $");
29
30/*
31 * IEEE 802.11 generic handler
32 */
33#include "opt_wlan.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

1742 a += addr[1] << 8;
1743 a += addr[0];
1744
1745 mix(a, b, c);
1746
1747 return c;
1748}
1749#undef mix
29
30/*
31 * IEEE 802.11 generic handler
32 */
33#include "opt_wlan.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

1742 a += addr[1] << 8;
1743 a += addr[0];
1744
1745 mix(a, b, c);
1746
1747 return c;
1748}
1749#undef mix
1750
1751char
1752ieee80211_channel_type_char(const struct ieee80211_channel *c)
1753{
1754 if (IEEE80211_IS_CHAN_ST(c))
1755 return 'S';
1756 if (IEEE80211_IS_CHAN_108A(c))
1757 return 'T';
1758 if (IEEE80211_IS_CHAN_108G(c))
1759 return 'G';
1760 if (IEEE80211_IS_CHAN_HT(c))
1761 return 'n';
1762 if (IEEE80211_IS_CHAN_A(c))
1763 return 'a';
1764 if (IEEE80211_IS_CHAN_ANYG(c))
1765 return 'g';
1766 if (IEEE80211_IS_CHAN_B(c))
1767 return 'b';
1768 return 'f';
1769}