if_run.c (289753) | if_run.c (289841) |
---|---|
1/*- 2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr> 3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 5 * Copyright (c) 2013-2014 Kevin Lo 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 --- 4 unchanged lines hidden (view full) --- 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008,2010 Damien Bergamini <damien.bergamini@free.fr> 3 * ported to FreeBSD by Akinori Furukoshi <moonlightakkiy@yahoo.ca> 4 * USB Consulting, Hans Petter Selasky <hselasky@freebsd.org> 5 * Copyright (c) 2013-2014 Kevin Lo 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 --- 4 unchanged lines hidden (view full) --- 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20#include <sys/cdefs.h> |
21__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 289753 2015-10-22 12:15:40Z avos $"); | 21__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 289841 2015-10-23 17:35:03Z avos $"); |
22 23/*- 24 * Ralink Technology RT2700U/RT2800U/RT3000U/RT3900E chipset driver. 25 * http://www.ralinktech.com/ 26 */ 27 28#include <sys/param.h> 29#include <sys/sockio.h> --- 2995 unchanged lines hidden (view full) --- 3025 3026 RUN_LOCK(sc); 3027} 3028 3029static void 3030run_tx_free(struct run_endpoint_queue *pq, 3031 struct run_tx_data *data, int txerr) 3032{ | 22 23/*- 24 * Ralink Technology RT2700U/RT2800U/RT3000U/RT3900E chipset driver. 25 * http://www.ralinktech.com/ 26 */ 27 28#include <sys/param.h> 29#include <sys/sockio.h> --- 2995 unchanged lines hidden (view full) --- 3025 3026 RUN_LOCK(sc); 3027} 3028 3029static void 3030run_tx_free(struct run_endpoint_queue *pq, 3031 struct run_tx_data *data, int txerr) 3032{ |
3033 if (data->m != NULL) { 3034 if (data->m->m_flags & M_TXCB) 3035 ieee80211_process_callback(data->ni, data->m, 3036 txerr ? ETIMEDOUT : 0); 3037 m_freem(data->m); 3038 data->m = NULL; | |
3039 | 3033 |
3040 if (data->ni == NULL) { 3041 DPRINTF("no node\n"); 3042 } else { 3043 ieee80211_free_node(data->ni); 3044 data->ni = NULL; 3045 } 3046 } | 3034 ieee80211_tx_complete(data->ni, data->m, txerr); |
3047 | 3035 |
3036 data->m = NULL; 3037 data->ni = NULL; 3038 |
|
3048 STAILQ_INSERT_TAIL(&pq->tx_fh, data, next); 3049 pq->tx_nfree++; 3050} 3051 3052static void 3053run_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index) 3054{ 3055 struct run_softc *sc = usbd_xfer_softc(xfer); --- 3218 unchanged lines hidden --- | 3039 STAILQ_INSERT_TAIL(&pq->tx_fh, data, next); 3040 pq->tx_nfree++; 3041} 3042 3043static void 3044run_bulk_tx_callbackN(struct usb_xfer *xfer, usb_error_t error, u_int index) 3045{ 3046 struct run_softc *sc = usbd_xfer_softc(xfer); --- 3218 unchanged lines hidden --- |