Deleted Added
full compact
ieee80211.c (172227) ieee80211.c (172233)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2007 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-2007 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 172227 2007-09-18 20:51:55Z sam $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 172233 2007-09-18 21:54:27Z sam $");
29
30/*
31 * IEEE 802.11 generic handler
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

183 setbit(ic->ic_modecaps, IEEE80211_MODE_11NG);
184 }
185 /* initialize candidate channels to all available */
186 memcpy(ic->ic_chan_active, ic->ic_chan_avail,
187 sizeof(ic->ic_chan_avail));
188
189 ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */
190 ic->ic_bsschan = IEEE80211_CHAN_ANYC;
29
30/*
31 * IEEE 802.11 generic handler
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>

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

183 setbit(ic->ic_modecaps, IEEE80211_MODE_11NG);
184 }
185 /* initialize candidate channels to all available */
186 memcpy(ic->ic_chan_active, ic->ic_chan_avail,
187 sizeof(ic->ic_chan_avail));
188
189 ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */
190 ic->ic_bsschan = IEEE80211_CHAN_ANYC;
191 ic->ic_prevchan = NULL;
191 /* arbitrarily pick the first channel */
192 ic->ic_curchan = &ic->ic_channels[0];
193
194 /* fillin well-known rate sets if driver has not specified */
195 DEFAULTRATES(IEEE80211_MODE_11B, ieee80211_rateset_11b);
196 DEFAULTRATES(IEEE80211_MODE_11G, ieee80211_rateset_11g);
197 DEFAULTRATES(IEEE80211_MODE_11A, ieee80211_rateset_11a);
198 DEFAULTRATES(IEEE80211_MODE_TURBO_A, ieee80211_rateset_11a);

--- 1001 unchanged lines hidden ---
192 /* arbitrarily pick the first channel */
193 ic->ic_curchan = &ic->ic_channels[0];
194
195 /* fillin well-known rate sets if driver has not specified */
196 DEFAULTRATES(IEEE80211_MODE_11B, ieee80211_rateset_11b);
197 DEFAULTRATES(IEEE80211_MODE_11G, ieee80211_rateset_11g);
198 DEFAULTRATES(IEEE80211_MODE_11A, ieee80211_rateset_11a);
199 DEFAULTRATES(IEEE80211_MODE_TURBO_A, ieee80211_rateset_11a);

--- 1001 unchanged lines hidden ---