if_urtwn.c (298436) | if_urtwn.c (298818) |
---|---|
1/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> 6 * Copyright (c) 2015 Andriy Voskoboinyk <avos@FreeBSD.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 */ 20 21#include <sys/cdefs.h> | 1/* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org> 6 * Copyright (c) 2015 Andriy Voskoboinyk <avos@FreeBSD.org> 7 * 8 * Permission to use, copy, modify, and distribute this software for any --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 19 */ 20 21#include <sys/cdefs.h> |
22__FBSDID("$FreeBSD: head/sys/dev/urtwn/if_urtwn.c 298436 2016-04-21 20:34:38Z avos $"); | 22__FBSDID("$FreeBSD: head/sys/dev/urtwn/if_urtwn.c 298818 2016-04-29 22:14:11Z avos $"); |
23 24/* 25 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. 26 */ 27 28#include "opt_wlan.h" 29#include "opt_urtwn.h" 30 --- 454 unchanged lines hidden (view full) --- 485} 486 487static int 488urtwn_attach(device_t self) 489{ 490 struct usb_attach_arg *uaa = device_get_ivars(self); 491 struct urtwn_softc *sc = device_get_softc(self); 492 struct ieee80211com *ic = &sc->sc_ic; | 23 24/* 25 * Driver for Realtek RTL8188CE-VAU/RTL8188CUS/RTL8188EU/RTL8188RU/RTL8192CU. 26 */ 27 28#include "opt_wlan.h" 29#include "opt_urtwn.h" 30 --- 454 unchanged lines hidden (view full) --- 485} 486 487static int 488urtwn_attach(device_t self) 489{ 490 struct usb_attach_arg *uaa = device_get_ivars(self); 491 struct urtwn_softc *sc = device_get_softc(self); 492 struct ieee80211com *ic = &sc->sc_ic; |
493 uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; | 493 uint8_t bands[IEEE80211_MODE_BYTES]; |
494 int error; 495 496 device_set_usb_desc(self); 497 sc->sc_udev = uaa->device; 498 sc->sc_dev = self; 499 if (USB_GET_DRIVER_INFO(uaa) == URTWN_RTL8188E) 500 sc->chip |= URTWN_CHIP_88E; 501 --- 4993 unchanged lines hidden --- | 494 int error; 495 496 device_set_usb_desc(self); 497 sc->sc_udev = uaa->device; 498 sc->sc_dev = self; 499 if (USB_GET_DRIVER_INFO(uaa) == URTWN_RTL8188E) 500 sc->chip |= URTWN_CHIP_88E; 501 --- 4993 unchanged lines hidden --- |