Deleted Added
full compact
if_run.c (228508) if_run.c (228621)
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 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#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 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#include <sys/cdefs.h>
20__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 228508 2011-12-14 22:14:05Z hselasky $");
20__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_run.c 228621 2011-12-17 10:23:17Z bschmidt $");
21
22/*-
23 * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver.
24 * http://www.ralinktech.com/
25 */
26
27#include <sys/param.h>
28#include <sys/sockio.h>

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

310static usb_callback_t run_bulk_tx_callback2;
311static usb_callback_t run_bulk_tx_callback3;
312static usb_callback_t run_bulk_tx_callback4;
313static usb_callback_t run_bulk_tx_callback5;
314
315static void run_bulk_tx_callbackN(struct usb_xfer *xfer,
316 usb_error_t error, unsigned int index);
317static struct ieee80211vap *run_vap_create(struct ieee80211com *,
21
22/*-
23 * Ralink Technology RT2700U/RT2800U/RT3000U chipset driver.
24 * http://www.ralinktech.com/
25 */
26
27#include <sys/param.h>
28#include <sys/sockio.h>

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

310static usb_callback_t run_bulk_tx_callback2;
311static usb_callback_t run_bulk_tx_callback3;
312static usb_callback_t run_bulk_tx_callback4;
313static usb_callback_t run_bulk_tx_callback5;
314
315static void run_bulk_tx_callbackN(struct usb_xfer *xfer,
316 usb_error_t error, unsigned int index);
317static struct ieee80211vap *run_vap_create(struct ieee80211com *,
318 const char name[IFNAMSIZ], int unit, int opmode, int flags,
319 const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t
320 mac[IEEE80211_ADDR_LEN]);
318 const char [IFNAMSIZ], int, enum ieee80211_opmode, int,
319 const uint8_t [IEEE80211_ADDR_LEN],
320 const uint8_t [IEEE80211_ADDR_LEN]);
321static void run_vap_delete(struct ieee80211vap *);
322static void run_cmdq_cb(void *, int);
323static void run_setup_tx_list(struct run_softc *,
324 struct run_endpoint_queue *);
325static void run_unsetup_tx_list(struct run_softc *,
326 struct run_endpoint_queue *);
327static int run_load_microcode(struct run_softc *);
328static int run_reset(struct run_softc *);

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

743 }
744
745 mtx_destroy(&sc->sc_mtx);
746
747 return (0);
748}
749
750static struct ieee80211vap *
321static void run_vap_delete(struct ieee80211vap *);
322static void run_cmdq_cb(void *, int);
323static void run_setup_tx_list(struct run_softc *,
324 struct run_endpoint_queue *);
325static void run_unsetup_tx_list(struct run_softc *,
326 struct run_endpoint_queue *);
327static int run_load_microcode(struct run_softc *);
328static int run_reset(struct run_softc *);

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

743 }
744
745 mtx_destroy(&sc->sc_mtx);
746
747 return (0);
748}
749
750static struct ieee80211vap *
751run_vap_create(struct ieee80211com *ic,
752 const char name[IFNAMSIZ], int unit, int opmode, int flags,
751run_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit,
752 enum ieee80211_opmode opmode, int flags,
753 const uint8_t bssid[IEEE80211_ADDR_LEN],
754 const uint8_t mac[IEEE80211_ADDR_LEN])
755{
756 struct ifnet *ifp = ic->ic_ifp;
757 struct run_softc *sc = ifp->if_softc;
758 struct run_vap *rvp;
759 struct ieee80211vap *vap;
760 int i;

--- 4203 unchanged lines hidden ---
753 const uint8_t bssid[IEEE80211_ADDR_LEN],
754 const uint8_t mac[IEEE80211_ADDR_LEN])
755{
756 struct ifnet *ifp = ic->ic_ifp;
757 struct run_softc *sc = ifp->if_softc;
758 struct run_vap *rvp;
759 struct ieee80211vap *vap;
760 int i;

--- 4203 unchanged lines hidden ---