Deleted Added
full compact
if_upgt.c (293339) if_upgt.c (298818)
1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */
1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */
2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 293339 2016-01-07 18:41:03Z avos $ */
2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 298818 2016-04-29 22:14:11Z avos $ */
3
4/*
5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.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
9 * copyright notice and this permission notice appear in all copies.
10 *

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

238}
239
240static int
241upgt_attach(device_t dev)
242{
243 struct upgt_softc *sc = device_get_softc(dev);
244 struct ieee80211com *ic = &sc->sc_ic;
245 struct usb_attach_arg *uaa = device_get_ivars(dev);
3
4/*
5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.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
9 * copyright notice and this permission notice appear in all copies.
10 *

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

238}
239
240static int
241upgt_attach(device_t dev)
242{
243 struct upgt_softc *sc = device_get_softc(dev);
244 struct ieee80211com *ic = &sc->sc_ic;
245 struct usb_attach_arg *uaa = device_get_ivars(dev);
246 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
246 uint8_t bands[IEEE80211_MODE_BYTES];
247 uint8_t iface_index = UPGT_IFACE_INDEX;
248 int error;
249
250 sc->sc_dev = dev;
251 sc->sc_udev = uaa->device;
252#ifdef UPGT_DEBUG
253 sc->sc_debug = upgt_debug;
254#endif

--- 2097 unchanged lines hidden ---
247 uint8_t iface_index = UPGT_IFACE_INDEX;
248 int error;
249
250 sc->sc_dev = dev;
251 sc->sc_udev = uaa->device;
252#ifdef UPGT_DEBUG
253 sc->sc_debug = upgt_debug;
254#endif

--- 2097 unchanged lines hidden ---