Deleted Added
full compact
if_bwn.c (300195) if_bwn.c (300292)
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 300195 2016-05-19 05:09:20Z adrian $");
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn.c 300292 2016-05-20 08:58:06Z avos $");
32
33/*
34 * The Broadcom Wireless LAN controller driver.
35 */
36
37#include "opt_bwn.h"
38#include "opt_wlan.h"
39

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

1493 return (ENODEV);
1494}
1495
1496static int
1497bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a)
1498{
1499 struct bwn_softc *sc = mac->mac_sc;
1500 struct ieee80211com *ic = &sc->sc_ic;
32
33/*
34 * The Broadcom Wireless LAN controller driver.
35 */
36
37#include "opt_bwn.h"
38#include "opt_wlan.h"
39

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

1493 return (ENODEV);
1494}
1495
1496static int
1497bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a)
1498{
1499 struct bwn_softc *sc = mac->mac_sc;
1500 struct ieee80211com *ic = &sc->sc_ic;
1501 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
1501 uint8_t bands[IEEE80211_MODE_BYTES];
1502
1503 memset(ic->ic_channels, 0, sizeof(ic->ic_channels));
1504 ic->ic_nchans = 0;
1505
1506 DPRINTF(sc, BWN_DEBUG_EEPROM, "%s: called; bg=%d, a=%d\n",
1507 __func__,
1508 have_bg,
1509 have_a);

--- 5965 unchanged lines hidden ---
1502
1503 memset(ic->ic_channels, 0, sizeof(ic->ic_channels));
1504 ic->ic_nchans = 0;
1505
1506 DPRINTF(sc, BWN_DEBUG_EEPROM, "%s: called; bg=%d, a=%d\n",
1507 __func__,
1508 have_bg,
1509 have_a);

--- 5965 unchanged lines hidden ---