ifieee80211.c (207320) | ifieee80211.c (218090) |
---|---|
1/* 2 * Copyright 2001 The Aerospace Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright 2001 The Aerospace Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 207320 2010-04-28 10:57:27Z rpaulo $ | 27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 218090 2011-01-30 13:17:45Z bschmidt $ |
28 */ 29 30/*- 31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc. 32 * All rights reserved. 33 * 34 * This code is derived from software contributed to The NetBSD Foundation 35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 3181 unchanged lines hidden (view full) --- 3217 return; 3218 } 3219 (void) memset(&ireq, 0, sizeof(ireq)); 3220 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); 3221 ireq.i_type = IEEE80211_IOC_SCAN_REQ; 3222 3223 memset(&sr, 0, sizeof(sr)); 3224 sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE | 28 */ 29 30/*- 31 * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc. 32 * All rights reserved. 33 * 34 * This code is derived from software contributed to The NetBSD Foundation 35 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 3181 unchanged lines hidden (view full) --- 3217 return; 3218 } 3219 (void) memset(&ireq, 0, sizeof(ireq)); 3220 (void) strncpy(ireq.i_name, name, sizeof(ireq.i_name)); 3221 ireq.i_type = IEEE80211_IOC_SCAN_REQ; 3222 3223 memset(&sr, 0, sizeof(sr)); 3224 sr.sr_flags = IEEE80211_IOC_SCAN_ACTIVE |
3225 | IEEE80211_IOC_SCAN_BGSCAN |
|
3225 | IEEE80211_IOC_SCAN_NOPICK 3226 | IEEE80211_IOC_SCAN_ONCE; 3227 sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER; 3228 sr.sr_nssid = 0; 3229 3230 ireq.i_data = &sr; 3231 ireq.i_len = sizeof(sr); 3232 /* NB: only root can trigger a scan so ignore errors */ --- 2044 unchanged lines hidden --- | 3226 | IEEE80211_IOC_SCAN_NOPICK 3227 | IEEE80211_IOC_SCAN_ONCE; 3228 sr.sr_duration = IEEE80211_IOC_SCAN_FOREVER; 3229 sr.sr_nssid = 0; 3230 3231 ireq.i_data = &sr; 3232 ireq.i_len = sizeof(sr); 3233 /* NB: only root can trigger a scan so ignore errors */ --- 2044 unchanged lines hidden --- |