if_otus.c (298359) | if_otus.c (298818) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20/* 21 * Driver for Atheros AR9001U chipset. 22 */ 23 24#include <sys/cdefs.h> | 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 --- 8 unchanged lines hidden (view full) --- 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20/* 21 * Driver for Atheros AR9001U chipset. 22 */ 23 24#include <sys/cdefs.h> |
25__FBSDID("$FreeBSD: head/sys/dev/otus/if_otus.c 298359 2016-04-20 18:29:30Z avos $"); | 25__FBSDID("$FreeBSD: head/sys/dev/otus/if_otus.c 298818 2016-04-29 22:14:11Z avos $"); |
26 27#include "opt_wlan.h" 28 29#include <sys/param.h> 30#include <sys/endian.h> 31#include <sys/sockio.h> 32#include <sys/mbuf.h> 33#include <sys/kernel.h> --- 585 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; | 26 27#include "opt_wlan.h" 28 29#include <sys/param.h> 30#include <sys/endian.h> 31#include <sys/sockio.h> 32#include <sys/mbuf.h> 33#include <sys/kernel.h> --- 585 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 --- |