if_rsu.c (283537) | if_rsu.c (283540) |
---|---|
1/* $OpenBSD: if_rsu.c,v 1.17 2013/04/15 09:23:01 mglocker Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 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#include <sys/cdefs.h> | 1/* $OpenBSD: if_rsu.c,v 1.17 2013/04/15 09:23:01 mglocker Exp $ */ 2 3/*- 4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 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#include <sys/cdefs.h> |
19__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_rsu.c 283537 2015-05-25 18:50:26Z glebius $"); | 19__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_rsu.c 283540 2015-05-25 19:53:29Z glebius $"); |
20 21/* 22 * Driver for Realtek RTL8188SU/RTL8191SU/RTL8192SU. 23 * 24 * TODO: 25 * o 11n support 26 * o h/w crypto 27 * o hostap / ibss / mesh --- 109 unchanged lines hidden (view full) --- 137static struct ieee80211vap * 138 rsu_vap_create(struct ieee80211com *, const char name[], 139 int, enum ieee80211_opmode, int, const uint8_t bssid[], 140 const uint8_t mac[]); 141static void rsu_vap_delete(struct ieee80211vap *); 142static void rsu_scan_start(struct ieee80211com *); 143static void rsu_scan_end(struct ieee80211com *); 144static void rsu_set_channel(struct ieee80211com *); | 20 21/* 22 * Driver for Realtek RTL8188SU/RTL8191SU/RTL8192SU. 23 * 24 * TODO: 25 * o 11n support 26 * o h/w crypto 27 * o hostap / ibss / mesh --- 109 unchanged lines hidden (view full) --- 137static struct ieee80211vap * 138 rsu_vap_create(struct ieee80211com *, const char name[], 139 int, enum ieee80211_opmode, int, const uint8_t bssid[], 140 const uint8_t mac[]); 141static void rsu_vap_delete(struct ieee80211vap *); 142static void rsu_scan_start(struct ieee80211com *); 143static void rsu_scan_end(struct ieee80211com *); 144static void rsu_set_channel(struct ieee80211com *); |
145static void rsu_update_mcast(struct ifnet *); | 145static void rsu_update_mcast(struct ieee80211com *); |
146static int rsu_alloc_rx_list(struct rsu_softc *); 147static void rsu_free_rx_list(struct rsu_softc *); 148static int rsu_alloc_tx_list(struct rsu_softc *); 149static void rsu_free_tx_list(struct rsu_softc *); 150static void rsu_free_list(struct rsu_softc *, struct rsu_data [], int); 151static struct rsu_data *_rsu_getbuf(struct rsu_softc *); 152static struct rsu_data *rsu_getbuf(struct rsu_softc *); 153static int rsu_write_region_1(struct rsu_softc *, uint16_t, uint8_t *, --- 375 unchanged lines hidden (view full) --- 529 530static void 531rsu_set_channel(struct ieee80211com *ic __unused) 532{ 533 /* We are unable to switch channels, yet. */ 534} 535 536static void | 146static int rsu_alloc_rx_list(struct rsu_softc *); 147static void rsu_free_rx_list(struct rsu_softc *); 148static int rsu_alloc_tx_list(struct rsu_softc *); 149static void rsu_free_tx_list(struct rsu_softc *); 150static void rsu_free_list(struct rsu_softc *, struct rsu_data [], int); 151static struct rsu_data *_rsu_getbuf(struct rsu_softc *); 152static struct rsu_data *rsu_getbuf(struct rsu_softc *); 153static int rsu_write_region_1(struct rsu_softc *, uint16_t, uint8_t *, --- 375 unchanged lines hidden (view full) --- 529 530static void 531rsu_set_channel(struct ieee80211com *ic __unused) 532{ 533 /* We are unable to switch channels, yet. */ 534} 535 536static void |
537rsu_update_mcast(struct ifnet *ifp) | 537rsu_update_mcast(struct ieee80211com *ic) |
538{ 539 /* XXX do nothing? */ 540} 541 542static int 543rsu_alloc_list(struct rsu_softc *sc, struct rsu_data data[], 544 int ndata, int maxsz) 545{ --- 1929 unchanged lines hidden --- | 538{ 539 /* XXX do nothing? */ 540} 541 542static int 543rsu_alloc_list(struct rsu_softc *sc, struct rsu_data data[], 544 int ndata, int maxsz) 545{ --- 1929 unchanged lines hidden --- |