ieee80211.c (148843) | ieee80211.c (148936) |
---|---|
1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 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: --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Atsushi Onoe 3 * Copyright (c) 2002-2005 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: --- 17 unchanged lines hidden (view full) --- 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 148843 2005-08-08 03:30:57Z sam $"); | 34__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 148936 2005-08-10 16:22:30Z sam $"); |
35 36/* 37 * IEEE 802.11 generic handler 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 119 unchanged lines hidden (view full) --- 162 if (IEEE80211_IS_CHAN_PUREG(c)) 163 ic->ic_modecaps |= 1<<IEEE80211_MODE_11G; 164 if (IEEE80211_IS_CHAN_FHSS(c)) 165 ic->ic_modecaps |= 1<<IEEE80211_MODE_FH; 166 if (IEEE80211_IS_CHAN_T(c)) 167 ic->ic_modecaps |= 1<<IEEE80211_MODE_TURBO_A; 168 if (IEEE80211_IS_CHAN_108G(c)) 169 ic->ic_modecaps |= 1<<IEEE80211_MODE_TURBO_G; | 35 36/* 37 * IEEE 802.11 generic handler 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 119 unchanged lines hidden (view full) --- 162 if (IEEE80211_IS_CHAN_PUREG(c)) 163 ic->ic_modecaps |= 1<<IEEE80211_MODE_11G; 164 if (IEEE80211_IS_CHAN_FHSS(c)) 165 ic->ic_modecaps |= 1<<IEEE80211_MODE_FH; 166 if (IEEE80211_IS_CHAN_T(c)) 167 ic->ic_modecaps |= 1<<IEEE80211_MODE_TURBO_A; 168 if (IEEE80211_IS_CHAN_108G(c)) 169 ic->ic_modecaps |= 1<<IEEE80211_MODE_TURBO_G; |
170 if (ic->ic_curchan == NULL) { 171 /* arbitrarily pick the first channel */ 172 ic->ic_curchan = &ic->ic_channels[i]; 173 } |
|
170 } 171 } 172 /* validate ic->ic_curmode */ 173 if ((ic->ic_modecaps & (1<<ic->ic_curmode)) == 0) 174 ic->ic_curmode = IEEE80211_MODE_AUTO; 175 ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */ 176#if 0 177 /* --- 839 unchanged lines hidden --- | 174 } 175 } 176 /* validate ic->ic_curmode */ 177 if ((ic->ic_modecaps & (1<<ic->ic_curmode)) == 0) 178 ic->ic_curmode = IEEE80211_MODE_AUTO; 179 ic->ic_des_chan = IEEE80211_CHAN_ANYC; /* any channel is ok */ 180#if 0 181 /* --- 839 unchanged lines hidden --- |