Deleted Added
full compact
if_uath.c (192468) if_uath.c (192499)
1/*-
2 * Copyright (c) 2006 Sam Leffler, Errno Consulting
3 * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
48 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Sam Leffler, Errno Consulting
3 * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
48 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51#include <sys/cdefs.h>
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 192468 2009-05-20 20:00:40Z sam $");
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 192499 2009-05-21 00:04:17Z thompsa $");
53
54/*-
55 * Driver for Atheros AR5523 USB parts.
56 *
57 * The driver requires firmware to be loaded into the device. This
58 * is done on device discovery from a user application (uathload)
59 * that is launched by devd when a device with suitable product ID
60 * is recognized. Once firmware has been loaded the device will

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

324static int uath_set_keys(struct uath_softc *, struct ieee80211vap *);
325static void uath_sysctl_node(struct uath_softc *);
326
327static int
328uath_match(device_t dev)
329{
330 struct usb2_attach_arg *uaa = device_get_ivars(dev);
331
53
54/*-
55 * Driver for Atheros AR5523 USB parts.
56 *
57 * The driver requires firmware to be loaded into the device. This
58 * is done on device discovery from a user application (uathload)
59 * that is launched by devd when a device with suitable product ID
60 * is recognized. Once firmware has been loaded the device will

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

324static int uath_set_keys(struct uath_softc *, struct ieee80211vap *);
325static void uath_sysctl_node(struct uath_softc *);
326
327static int
328uath_match(device_t dev)
329{
330 struct usb2_attach_arg *uaa = device_get_ivars(dev);
331
332 if (uaa->usb2_mode != USB_MODE_HOST)
332 if (uaa->usb_mode != USB_MODE_HOST)
333 return (ENXIO);
334 if (uaa->info.bConfigIndex != UATH_CONFIG_INDEX)
335 return (ENXIO);
336 if (uaa->info.bIfaceIndex != UATH_IFACE_INDEX)
337 return (ENXIO);
338
339 return (usb2_lookup_id_by_uaa(uath_devs, sizeof(uath_devs), uaa));
340}

--- 2518 unchanged lines hidden ---
333 return (ENXIO);
334 if (uaa->info.bConfigIndex != UATH_CONFIG_INDEX)
335 return (ENXIO);
336 if (uaa->info.bIfaceIndex != UATH_IFACE_INDEX)
337 return (ENXIO);
338
339 return (usb2_lookup_id_by_uaa(uath_devs, sizeof(uath_devs), uaa));
340}

--- 2518 unchanged lines hidden ---