if_iwi.c (009e81b16465ea457c0e63fd49fe77f47cc27a5a) if_iwi.c (a061fea6eeb689ab01affff1350cc47beb4a0ce5)
1/*-
2 * Copyright (c) 2004, 2005
3 * Damien Bergamini <damien.bergamini@free.fr>. All rights reserved.
4 * Copyright (c) 2005-2006 Sam Leffler, Errno Consulting
5 * Copyright (c) 2007 Andrew Thompson <thompsa@FreeBSD.org>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

266}
267
268static int
269iwi_attach(device_t dev)
270{
271 struct iwi_softc *sc = device_get_softc(dev);
272 struct ieee80211com *ic = &sc->sc_ic;
273 uint16_t val;
1/*-
2 * Copyright (c) 2004, 2005
3 * Damien Bergamini <damien.bergamini@free.fr>. All rights reserved.
4 * Copyright (c) 2005-2006 Sam Leffler, Errno Consulting
5 * Copyright (c) 2007 Andrew Thompson <thompsa@FreeBSD.org>
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

266}
267
268static int
269iwi_attach(device_t dev)
270{
271 struct iwi_softc *sc = device_get_softc(dev);
272 struct ieee80211com *ic = &sc->sc_ic;
273 uint16_t val;
274 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
274 uint8_t bands[IEEE80211_MODE_BYTES];
275 int i, error;
276
277 sc->sc_dev = dev;
278
279 IWI_LOCK_INIT(sc);
280 mbufq_init(&sc->sc_snd, ifqmaxlen);
281
282 sc->sc_unr = new_unrhdr(1, IWI_MAX_IBSSNODE-1, &sc->sc_mtx);

--- 3289 unchanged lines hidden ---
275 int i, error;
276
277 sc->sc_dev = dev;
278
279 IWI_LOCK_INIT(sc);
280 mbufq_init(&sc->sc_snd, ifqmaxlen);
281
282 sc->sc_unr = new_unrhdr(1, IWI_MAX_IBSSNODE-1, &sc->sc_mtx);

--- 3289 unchanged lines hidden ---