Deleted Added
full compact
if_bwi.c (331722) if_bwi.c (337951)
1/*
2 * Copyright (c) 2007 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Sepherosa Ziehau <sepherosa@gmail.com>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $DragonFly: src/sys/dev/netif/bwi/if_bwi.c,v 1.19 2008/02/15 11:15:38 sephe Exp $
35 */
36
37#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2007 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Sepherosa Ziehau <sepherosa@gmail.com>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $DragonFly: src/sys/dev/netif/bwi/if_bwi.c,v 1.19 2008/02/15 11:15:38 sephe Exp $
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: stable/11/sys/dev/bwi/if_bwi.c 331722 2018-03-29 02:50:57Z eadler $");
38__FBSDID("$FreeBSD: stable/11/sys/dev/bwi/if_bwi.c 337951 2018-08-17 03:05:09Z kevans $");
39
40#include "opt_inet.h"
41#include "opt_bwi.h"
42#include "opt_wlan.h"
43
44#include <sys/param.h>
45#include <sys/endian.h>
46#include <sys/kernel.h>

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

483 panic("unknown phymode %d\n", phy->phy_mode);
484 }
485
486 /* Get locale */
487 sc->sc_locale = __SHIFTOUT(bwi_read_sprom(sc, BWI_SPROM_CARD_INFO),
488 BWI_SPROM_CARD_INFO_LOCALE);
489 DPRINTF(sc, BWI_DBG_ATTACH, "locale: %d\n", sc->sc_locale);
490 /* XXX use locale */
39
40#include "opt_inet.h"
41#include "opt_bwi.h"
42#include "opt_wlan.h"
43
44#include <sys/param.h>
45#include <sys/endian.h>
46#include <sys/kernel.h>

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

483 panic("unknown phymode %d\n", phy->phy_mode);
484 }
485
486 /* Get locale */
487 sc->sc_locale = __SHIFTOUT(bwi_read_sprom(sc, BWI_SPROM_CARD_INFO),
488 BWI_SPROM_CARD_INFO_LOCALE);
489 DPRINTF(sc, BWI_DBG_ATTACH, "locale: %d\n", sc->sc_locale);
490 /* XXX use locale */
491
492 ic->ic_softc = sc;
493
491 bwi_getradiocaps(ic, IEEE80211_CHAN_MAX, &ic->ic_nchans,
492 ic->ic_channels);
493
494 bwi_getradiocaps(ic, IEEE80211_CHAN_MAX, &ic->ic_nchans,
495 ic->ic_channels);
496
494 ic->ic_softc = sc;
495 ic->ic_name = device_get_nameunit(dev);
496 ic->ic_caps = IEEE80211_C_STA |
497 IEEE80211_C_SHSLOT |
498 IEEE80211_C_SHPREAMBLE |
499 IEEE80211_C_WPA |
500 IEEE80211_C_BGSCAN |
501 IEEE80211_C_MONITOR;
502 ic->ic_opmode = IEEE80211_M_STA;

--- 3513 unchanged lines hidden ---
497 ic->ic_name = device_get_nameunit(dev);
498 ic->ic_caps = IEEE80211_C_STA |
499 IEEE80211_C_SHSLOT |
500 IEEE80211_C_SHPREAMBLE |
501 IEEE80211_C_WPA |
502 IEEE80211_C_BGSCAN |
503 IEEE80211_C_MONITOR;
504 ic->ic_opmode = IEEE80211_M_STA;

--- 3513 unchanged lines hidden ---