if_otus.c (31021a2b4ef82d6491e5769defa8b34f16437761) | if_otus.c (a061fea6eeb689ab01affff1350cc47beb4a0ce5) |
---|---|
1/* $OpenBSD: if_otus.c,v 1.46 2015/03/14 03:38:49 jsg Exp $ */ 2 3/*- 4 * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2015 Adrian Chadd <adrian@FreeBSD.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 --- 610 unchanged lines hidden (view full) --- 619} 620 621static int 622otus_attachhook(struct otus_softc *sc) 623{ 624 struct ieee80211com *ic = &sc->sc_ic; 625 usb_device_request_t req; 626 uint32_t in, out; | 1/* $OpenBSD: if_otus.c,v 1.46 2015/03/14 03:38:49 jsg Exp $ */ 2 3/*- 4 * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2015 Adrian Chadd <adrian@FreeBSD.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 --- 610 unchanged lines hidden (view full) --- 619} 620 621static int 622otus_attachhook(struct otus_softc *sc) 623{ 624 struct ieee80211com *ic = &sc->sc_ic; 625 usb_device_request_t req; 626 uint32_t in, out; |
627 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; | 627 uint8_t bands[IEEE80211_MODE_BYTES]; |
628 int error; 629 630 /* Not locked */ 631 error = otus_load_firmware(sc, "otusfw_init", AR_FW_INIT_ADDR); 632 if (error != 0) { 633 device_printf(sc->sc_dev, "%s: could not load %s firmware\n", 634 __func__, "init"); 635 return (ENXIO); --- 2541 unchanged lines hidden --- | 628 int error; 629 630 /* Not locked */ 631 error = otus_load_firmware(sc, "otusfw_init", AR_FW_INIT_ADDR); 632 if (error != 0) { 633 device_printf(sc->sc_dev, "%s: could not load %s firmware\n", 634 __func__, "init"); 635 return (ENXIO); --- 2541 unchanged lines hidden --- |