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 198099 2009-10-14 20:30:27Z weongyo $"); |
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 --- 2696 unchanged lines hidden (view full) --- 2757 /* node is no longer needed */ 2758 ieee80211_free_node(ni); 2759 } else 2760 (void) ieee80211_input_all(ic, m, 2761 (int)be32toh(desc->rssi), nf); 2762 m = NULL; 2763 desc = NULL; 2764 } |
2765 if ((ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0 && 2766 !IFQ_IS_EMPTY(&ifp->if_snd)) 2767 uath_start(ifp); |
2768 UATH_LOCK(sc); 2769 break; 2770 default: 2771 /* needs it to the inactive queue due to a error. */ 2772 data = STAILQ_FIRST(&sc->sc_rx_active); 2773 if (data != NULL) { 2774 STAILQ_REMOVE_HEAD(&sc->sc_rx_active, next); 2775 UATH_STAT_DEC(sc, st_rx_active); --- 119 unchanged lines hidden --- |