Deleted Added
full compact
if_urtwvar.h (286437) if_urtwvar.h (287197)
1/* $FreeBSD: head/sys/dev/usb/wlan/if_urtwvar.h 286437 2015-08-08 01:10:17Z adrian $ */
1/* $FreeBSD: head/sys/dev/usb/wlan/if_urtwvar.h 287197 2015-08-27 08:56:39Z glebius $ */
2
3/*-
4 * Copyright (c) 2008 Weongyo Jeong <weongyo@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 *

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

88struct urtw_vap {
89 struct ieee80211vap vap;
90 int (*newstate)(struct ieee80211vap *,
91 enum ieee80211_state, int);
92};
93#define URTW_VAP(vap) ((struct urtw_vap *)(vap))
94
95struct urtw_softc {
2
3/*-
4 * Copyright (c) 2008 Weongyo Jeong <weongyo@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 *

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

88struct urtw_vap {
89 struct ieee80211vap vap;
90 int (*newstate)(struct ieee80211vap *,
91 enum ieee80211_state, int);
92};
93#define URTW_VAP(vap) ((struct urtw_vap *)(vap))
94
95struct urtw_softc {
96 struct ifnet *sc_ifp;
96 struct ieee80211com sc_ic;
97 struct mbufq sc_snd;
97 device_t sc_dev;
98 struct usb_device *sc_udev;
99 struct mtx sc_mtx;
100 void *sc_tx_dma_buf;
101
102 int sc_debug;
98 device_t sc_dev;
99 struct usb_device *sc_udev;
100 struct mtx sc_mtx;
101 void *sc_tx_dma_buf;
102
103 int sc_debug;
103 int sc_if_flags;
104 int sc_flags;
105#define URTW_INIT_ONCE (1 << 1)
106#define URTW_RTL8187B (1 << 2)
107#define URTW_RTL8187B_REV_B (1 << 3)
108#define URTW_RTL8187B_REV_D (1 << 4)
109#define URTW_RTL8187B_REV_E (1 << 5)
110#define URTW_DETACHED (1 << 6)
104 int sc_flags;
105#define URTW_INIT_ONCE (1 << 1)
106#define URTW_RTL8187B (1 << 2)
107#define URTW_RTL8187B_REV_B (1 << 3)
108#define URTW_RTL8187B_REV_D (1 << 4)
109#define URTW_RTL8187B_REV_E (1 << 5)
110#define URTW_DETACHED (1 << 6)
111#define URTW_RUNNING (1 << 7)
111 enum ieee80211_state sc_state;
112
113 int sc_epromtype;
114#define URTW_EEPROM_93C46 0
115#define URTW_EEPROM_93C56 1
116 uint8_t sc_crcmon;
112 enum ieee80211_state sc_state;
113
114 int sc_epromtype;
115#define URTW_EEPROM_93C46 0
116#define URTW_EEPROM_93C56 1
117 uint8_t sc_crcmon;
117 uint8_t sc_bssid[IEEE80211_ADDR_LEN];
118
119 struct ieee80211_channel *sc_curchan;
120
121 /* for RF */
122 usb_error_t (*sc_rf_init)(struct urtw_softc *);
123 usb_error_t (*sc_rf_set_chan)(struct urtw_softc *,
124 int);
125 usb_error_t (*sc_rf_set_sens)(struct urtw_softc *,

--- 63 unchanged lines hidden ---
118
119 struct ieee80211_channel *sc_curchan;
120
121 /* for RF */
122 usb_error_t (*sc_rf_init)(struct urtw_softc *);
123 usb_error_t (*sc_rf_set_chan)(struct urtw_softc *,
124 int);
125 usb_error_t (*sc_rf_set_sens)(struct urtw_softc *,

--- 63 unchanged lines hidden ---