Deleted Added
full compact
ieee80211.c (188774) ieee80211.c (188775)
1/*-
2 * Copyright (c) 2001 Atsushi Onoe
3 * Copyright (c) 2002-2009 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-2009 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 188774 2009-02-19 04:33:36Z sam $");
28__FBSDID("$FreeBSD: head/sys/net80211/ieee80211.c 188775 2009-02-19 04:34:22Z sam $");
29
30/*
31 * IEEE 802.11 generic handler
32 */
33#include "opt_wlan.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

1437 case IEEE80211_MODE_STURBO_A:
1438 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11A);
1439 case IEEE80211_MODE_11B:
1440 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11B);
1441 case IEEE80211_MODE_FH:
1442 return findmedia(rates, N(rates), rate | IFM_IEEE80211_FH);
1443 case IEEE80211_MODE_AUTO:
1444 /* NB: ic may be NULL for some drivers */
29
30/*
31 * IEEE 802.11 generic handler
32 */
33#include "opt_wlan.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

1437 case IEEE80211_MODE_STURBO_A:
1438 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11A);
1439 case IEEE80211_MODE_11B:
1440 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11B);
1441 case IEEE80211_MODE_FH:
1442 return findmedia(rates, N(rates), rate | IFM_IEEE80211_FH);
1443 case IEEE80211_MODE_AUTO:
1444 /* NB: ic may be NULL for some drivers */
1445 if (ic && ic->ic_phytype == IEEE80211_T_FH)
1445 if (ic != NULL && ic->ic_phytype == IEEE80211_T_FH)
1446 return findmedia(rates, N(rates),
1447 rate | IFM_IEEE80211_FH);
1448 /* NB: hack, 11g matches both 11b+11a rates */
1449 /* fall thru... */
1450 case IEEE80211_MODE_11G:
1451 case IEEE80211_MODE_11NG:
1452 case IEEE80211_MODE_TURBO_G:
1453 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11G);

--- 40 unchanged lines hidden ---
1446 return findmedia(rates, N(rates),
1447 rate | IFM_IEEE80211_FH);
1448 /* NB: hack, 11g matches both 11b+11a rates */
1449 /* fall thru... */
1450 case IEEE80211_MODE_11G:
1451 case IEEE80211_MODE_11NG:
1452 case IEEE80211_MODE_TURBO_G:
1453 return findmedia(rates, N(rates), rate | IFM_IEEE80211_11G);

--- 40 unchanged lines hidden ---