Deleted Added
full compact
ieee80211_scan.c (193366) ieee80211_scan.c (195618)
1/*-
2 * Copyright (c) 2002-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

--- 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) 2002-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

--- 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_scan.c 193366 2009-06-03 04:10:22Z weongyo $");
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_scan.c 195618 2009-07-11 15:02:45Z rpaulo $");
28
29/*
30 * IEEE 802.11 scanning support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

204 */
205static const char *scan_modnames[IEEE80211_OPMODE_MAX] = {
206 "wlan_scan_sta", /* IEEE80211_M_IBSS */
207 "wlan_scan_sta", /* IEEE80211_M_STA */
208 "wlan_scan_wds", /* IEEE80211_M_WDS */
209 "wlan_scan_sta", /* IEEE80211_M_AHDEMO */
210 "wlan_scan_ap", /* IEEE80211_M_HOSTAP */
211 "wlan_scan_monitor", /* IEEE80211_M_MONITOR */
28
29/*
30 * IEEE 802.11 scanning support.
31 */
32#include "opt_wlan.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>

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

204 */
205static const char *scan_modnames[IEEE80211_OPMODE_MAX] = {
206 "wlan_scan_sta", /* IEEE80211_M_IBSS */
207 "wlan_scan_sta", /* IEEE80211_M_STA */
208 "wlan_scan_wds", /* IEEE80211_M_WDS */
209 "wlan_scan_sta", /* IEEE80211_M_AHDEMO */
210 "wlan_scan_ap", /* IEEE80211_M_HOSTAP */
211 "wlan_scan_monitor", /* IEEE80211_M_MONITOR */
212 "wlan_scan_sta", /* IEEE80211_M_MBSS */
212};
213static const struct ieee80211_scanner *scanners[IEEE80211_OPMODE_MAX];
214
215const struct ieee80211_scanner *
216ieee80211_scanner_get(enum ieee80211_opmode mode)
217{
218 if (mode >= IEEE80211_OPMODE_MAX)
219 return NULL;

--- 1018 unchanged lines hidden ---
213};
214static const struct ieee80211_scanner *scanners[IEEE80211_OPMODE_MAX];
215
216const struct ieee80211_scanner *
217ieee80211_scanner_get(enum ieee80211_opmode mode)
218{
219 if (mode >= IEEE80211_OPMODE_MAX)
220 return NULL;

--- 1018 unchanged lines hidden ---