Deleted Added
sdiff udiff text old ( 121827 ) new ( 127649 )
full compact
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 121827 2003-11-01 00:03:20Z brooks $
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,

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

281 for (i = 1; i < 4; i++)
282 set80211(s, IEEE80211_IOC_WEPKEY, i, 0, data);
283 }
284
285 set80211(s, IEEE80211_IOC_WEPTXKEY, txkey, 0, NULL);
286}
287
288void
289ieee80211_status (int s, struct rt_addrinfo *info __unused)
290{
291 int i;
292 int num;
293 struct ieee80211req ireq;
294 u_int8_t data[32];
295 char spacer;
296

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

375 if (ioctl(s, SIOCG80211, &ireq) != -1) {
376 if (ireq.i_val)
377 printf(" powersavesleep %d", ireq.i_val);
378 }
379 }
380
381 printf("\n");
382
383 ireq.i_type = IEEE80211_IOC_WEP;
384 if (ioctl(s, SIOCG80211, &ireq) != -1 &&
385 ireq.i_val != IEEE80211_WEP_NOSUP) {
386 printf("\twepmode");
387 switch (ireq.i_val) {
388 case IEEE80211_WEP_OFF:
389 printf(" OFF");
390 break;

--- 150 unchanged lines hidden ---