Deleted Added
full compact
if_uath.c (203143) if_uath.c (207554)
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 203143 2010-01-29 02:32:46Z thompsa $");
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 207554 2010-05-03 07:32:50Z sobomax $");
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

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

433
434 ifp->if_softc = sc;
435 if_initname(ifp, "uath", device_get_unit(sc->sc_dev));
436 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
437 ifp->if_init = uath_init;
438 ifp->if_ioctl = uath_ioctl;
439 ifp->if_start = uath_start;
440 /* XXX UATH_TX_DATA_LIST_COUNT */
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

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

433
434 ifp->if_softc = sc;
435 if_initname(ifp, "uath", device_get_unit(sc->sc_dev));
436 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
437 ifp->if_init = uath_init;
438 ifp->if_ioctl = uath_ioctl;
439 ifp->if_start = uath_start;
440 /* XXX UATH_TX_DATA_LIST_COUNT */
441 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
442 ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
441 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
442 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
443 IFQ_SET_READY(&ifp->if_snd);
444
445 ic = ifp->if_l2com;
446 ic->ic_ifp = ifp;
447 ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
448 ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
449
450 /* set device capabilities */

--- 2444 unchanged lines hidden ---
443 IFQ_SET_READY(&ifp->if_snd);
444
445 ic = ifp->if_l2com;
446 ic->ic_ifp = ifp;
447 ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */
448 ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */
449
450 /* set device capabilities */

--- 2444 unchanged lines hidden ---