if_malo.c (6459bd2843eab7f7d383415a6ee0873f68f3437d) | if_malo.c (a061fea6eeb689ab01affff1350cc47beb4a0ce5) |
---|---|
1/*- 2 * Copyright (c) 2008 Weongyo Jeong <weongyo@freebsd.org> 3 * Copyright (c) 2007 Marvell Semiconductor, Inc. 4 * Copyright (c) 2007 Sam Leffler, Errno Consulting 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 160 unchanged lines hidden (view full) --- 169} 170 171int 172malo_attach(uint16_t devid, struct malo_softc *sc) 173{ 174 struct ieee80211com *ic = &sc->malo_ic; 175 struct malo_hal *mh; 176 int error; | 1/*- 2 * Copyright (c) 2008 Weongyo Jeong <weongyo@freebsd.org> 3 * Copyright (c) 2007 Marvell Semiconductor, Inc. 4 * Copyright (c) 2007 Sam Leffler, Errno Consulting 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 160 unchanged lines hidden (view full) --- 169} 170 171int 172malo_attach(uint16_t devid, struct malo_softc *sc) 173{ 174 struct ieee80211com *ic = &sc->malo_ic; 175 struct malo_hal *mh; 176 int error; |
177 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; | 177 uint8_t bands[IEEE80211_MODE_BYTES]; |
178 179 MALO_LOCK_INIT(sc); 180 callout_init_mtx(&sc->malo_watchdog_timer, &sc->malo_mtx, 0); 181 mbufq_init(&sc->malo_snd, ifqmaxlen); 182 183 mh = malo_hal_attach(sc->malo_dev, devid, 184 sc->malo_io1h, sc->malo_io1t, sc->malo_dmat); 185 if (mh == NULL) { --- 1989 unchanged lines hidden --- | 178 179 MALO_LOCK_INIT(sc); 180 callout_init_mtx(&sc->malo_watchdog_timer, &sc->malo_mtx, 0); 181 mbufq_init(&sc->malo_snd, ifqmaxlen); 182 183 mh = malo_hal_attach(sc->malo_dev, devid, 184 sc->malo_io1h, sc->malo_io1t, sc->malo_dmat); 185 if (mh == NULL) { --- 1989 unchanged lines hidden --- |