if_rtwn.c (31021a2b4ef82d6491e5769defa8b34f16437761) if_rtwn.c (a061fea6eeb689ab01affff1350cc47beb4a0ce5)
1/* $OpenBSD: if_rtwn.c,v 1.6 2015/08/28 00:03:53 deraadt Exp $ */
2
3/*-
4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5 * Copyright (c) 2015 Stefan Sperling <stsp@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

246}
247
248static int
249rtwn_attach(device_t dev)
250{
251 struct rtwn_softc *sc = device_get_softc(dev);
252 struct ieee80211com *ic = &sc->sc_ic;
253 uint32_t lcsr;
1/* $OpenBSD: if_rtwn.c,v 1.6 2015/08/28 00:03:53 deraadt Exp $ */
2
3/*-
4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5 * Copyright (c) 2015 Stefan Sperling <stsp@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

246}
247
248static int
249rtwn_attach(device_t dev)
250{
251 struct rtwn_softc *sc = device_get_softc(dev);
252 struct ieee80211com *ic = &sc->sc_ic;
253 uint32_t lcsr;
254 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
254 uint8_t bands[IEEE80211_MODE_BYTES];
255 int i, count, error, rid;
256
257 sc->sc_dev = dev;
258 sc->sc_debug = 0;
259
260 /*
261 * Get the offset of the PCI Express Capability Structure in PCI
262 * Configuration Space.

--- 3229 unchanged lines hidden ---
255 int i, count, error, rid;
256
257 sc->sc_dev = dev;
258 sc->sc_debug = 0;
259
260 /*
261 * Get the offset of the PCI Express Capability Structure in PCI
262 * Configuration Space.

--- 3229 unchanged lines hidden ---