rt2661.c (057b4402bf634907fd03590e2757e09e975d04c7) | rt2661.c (a061fea6eeb689ab01affff1350cc47beb4a0ce5) |
---|---|
1/* $FreeBSD$ */ 2 3/*- 4 * Copyright (c) 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 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 --- 185 unchanged lines hidden (view full) --- 194}; 195 196int 197rt2661_attach(device_t dev, int id) 198{ 199 struct rt2661_softc *sc = device_get_softc(dev); 200 struct ieee80211com *ic = &sc->sc_ic; 201 uint32_t val; | 1/* $FreeBSD$ */ 2 3/*- 4 * Copyright (c) 2006 5 * Damien Bergamini <damien.bergamini@free.fr> 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 --- 185 unchanged lines hidden (view full) --- 194}; 195 196int 197rt2661_attach(device_t dev, int id) 198{ 199 struct rt2661_softc *sc = device_get_softc(dev); 200 struct ieee80211com *ic = &sc->sc_ic; 201 uint32_t val; |
202 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; | 202 uint8_t bands[IEEE80211_MODE_BYTES]; |
203 int error, ac, ntries; 204 205 sc->sc_id = id; 206 sc->sc_dev = dev; 207 208 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 209 MTX_DEF | MTX_RECURSE); 210 --- 2563 unchanged lines hidden --- | 203 int error, ac, ntries; 204 205 sc->sc_id = id; 206 sc->sc_dev = dev; 207 208 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, 209 MTX_DEF | MTX_RECURSE); 210 --- 2563 unchanged lines hidden --- |