1 |
< |
/* $FreeBSD: src/sys/dev/usb/if_uralvar.h,v 1.3.2.3 2006/01/29 14:16:36 damien Exp $ */ |
1 |
> |
/* $FreeBSD: src/sys/dev/usb/if_uralvar.h,v 1.9 2007/06/11 03:36:52 sam Exp $ */ |
2 |
|
|
3 |
|
/*- |
4 |
< |
* Copyright (c) 2005, 2006 |
4 |
> |
* Copyright (c) 2005 |
5 |
|
* Damien Bergamini <damien.bergamini@free.fr> |
6 |
|
* |
7 |
|
* Permission to use, copy, modify, and distribute this software for any |
20 |
|
#define RAL_RX_LIST_COUNT 1 |
21 |
|
#define RAL_TX_LIST_COUNT 1 |
22 |
|
|
23 |
+ |
#define URAL_SCAN_START 1 |
24 |
+ |
#define URAL_SCAN_END 2 |
25 |
+ |
#define URAL_SET_CHANNEL 3 |
26 |
+ |
|
27 |
+ |
|
28 |
|
struct ural_rx_radiotap_header { |
29 |
|
struct ieee80211_radiotap_header wr_ihdr; |
30 |
|
uint8_t wr_flags; |
74 |
|
struct mbuf *m; |
75 |
|
}; |
76 |
|
|
72 |
– |
struct ural_amrr { |
73 |
– |
int txcnt; |
74 |
– |
int retrycnt; |
75 |
– |
int success; |
76 |
– |
int success_threshold; |
77 |
– |
int recovery; |
78 |
– |
}; |
79 |
– |
|
77 |
|
struct ural_softc { |
78 |
|
struct ifnet *sc_ifp; |
79 |
|
struct ieee80211com sc_ic; |
80 |
|
int (*sc_newstate)(struct ieee80211com *, |
81 |
|
enum ieee80211_state, int); |
82 |
< |
USBBASEDEVICE sc_dev; |
82 |
> |
device_t sc_dev; |
83 |
|
usbd_device_handle sc_udev; |
84 |
|
usbd_interface_handle sc_iface; |
85 |
|
|
95 |
|
usbd_pipe_handle sc_tx_pipeh; |
96 |
|
|
97 |
|
enum ieee80211_state sc_state; |
98 |
+ |
int sc_arg; |
99 |
+ |
int sc_scan_action; /* should be an enum */ |
100 |
|
struct usb_task sc_task; |
101 |
+ |
struct usb_task sc_scantask; |
102 |
|
|
103 |
< |
struct ural_amrr amrr; |
103 |
> |
struct ieee80211_amrr amrr; |
104 |
> |
struct ieee80211_amrr_node amn; |
105 |
|
|
106 |
|
struct ural_rx_data rx_data[RAL_RX_LIST_COUNT]; |
107 |
|
struct ural_tx_data tx_data[RAL_TX_LIST_COUNT]; |
111 |
|
|
112 |
|
struct mtx sc_mtx; |
113 |
|
|
114 |
< |
struct callout scan_ch; |
114 |
> |
struct callout watchdog_ch; |
115 |
|
struct callout amrr_ch; |
115 |
– |
|
116 |
|
int sc_tx_timer; |
117 |
|
|
118 |
|
uint16_t sta[11]; |