ifieee80211.c (299873) | ifieee80211.c (299921) |
---|---|
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 299873 2016-05-16 00:25:24Z truckman $ | 27 * $FreeBSD: head/sbin/ifconfig/ifieee80211.c 299921 2016-05-16 08:07:32Z truckman $ |
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, --- 3712 unchanged lines hidden (view full) --- 3748 errx(1, "no space for active channel list"); 3749 achans->ic_nchans = 0; 3750 memset(reported, 0, sizeof(reported)); 3751 for (i = 0; i < chaninfo->ic_nchans; i++) { 3752 c = &chaninfo->ic_chans[i]; 3753 /* suppress duplicates as above */ 3754 if (isset(reported, c->ic_ieee) && !verbose) { 3755 /* XXX we assume duplicates are adjacent */ | 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, --- 3712 unchanged lines hidden (view full) --- 3748 errx(1, "no space for active channel list"); 3749 achans->ic_nchans = 0; 3750 memset(reported, 0, sizeof(reported)); 3751 for (i = 0; i < chaninfo->ic_nchans; i++) { 3752 c = &chaninfo->ic_chans[i]; 3753 /* suppress duplicates as above */ 3754 if (isset(reported, c->ic_ieee) && !verbose) { 3755 /* XXX we assume duplicates are adjacent */ |
3756 assert(achans->ic_nchans > 0); |
|
3756 prev = &achans->ic_chans[achans->ic_nchans-1]; 3757 /* display highest power on channel */ 3758 if (c->ic_maxpower > prev->ic_maxpower) 3759 *prev = *c; 3760 } else { 3761 achans->ic_chans[achans->ic_nchans++] = *c; 3762 setbit(reported, c->ic_ieee); 3763 } --- 1685 unchanged lines hidden --- | 3757 prev = &achans->ic_chans[achans->ic_nchans-1]; 3758 /* display highest power on channel */ 3759 if (c->ic_maxpower > prev->ic_maxpower) 3760 *prev = *c; 3761 } else { 3762 achans->ic_chans[achans->ic_nchans++] = *c; 3763 setbit(reported, c->ic_ieee); 3764 } --- 1685 unchanged lines hidden --- |