aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-07-11 03:55:46 -0400
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-07-15 12:19:04 -0400
commit31401464db0dbbdfec2487af9c959a35d6d9547b (patch)
tree797e1d88a4ded6a69d415963872e6c1d0dd3b40b
parenta835fc372bb42dfb4858ad8e3d1f4ab28ead75f1 (diff)
[PATCH] Improve comments, reorder some fields in at76_usb.h
Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--at76_usb.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/at76_usb.h b/at76_usb.h
index f94f479..f517621 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -399,9 +399,9 @@ struct bss_info {
u8 channel;
u16 capa; /* BSS capabilities */
u16 beacon_interval; /* beacon interval in Kus (1024 microseconds) */
- u8 rates[BSS_LIST_MAX_RATE_LEN]; /* supported rates (list of bytes:
- (basic_rate ? 0x80 : 0) + rate/(500 Kbit/s); e.g.
- x82,x84,x8b,x96 for basic rates 1,2,5.5,11 MBit/s) */
+ u8 rates[BSS_LIST_MAX_RATE_LEN]; /* supported rates in units of
+ 500 kbps, ORed with 0x80 for
+ basic rates */
u8 rates_len;
/* quality of received beacon */
@@ -444,16 +444,17 @@ struct fwentry {
struct at76_priv {
struct usb_device *udev; /* USB device pointer */
struct net_device *netdev; /* net device pointer */
- struct net_device_stats stats;
- struct iw_statistics wstats;
+ struct net_device_stats stats; /* net device stats */
+ struct iw_statistics wstats; /* wireless stats */
- struct sk_buff *rx_skb; /* skbuff for receiving packets */
- unsigned int rx_bulk_pipe; /* bulk in endpoint */
+ struct sk_buff *rx_skb; /* skbuff for receiving data */
+ void *bulk_out_buffer; /* buffer for sending data */
+
+ struct urb *write_urb; /* URB for sending data */
+ struct urb *read_urb; /* URB for receiving data */
- void *bulk_out_buffer; /* the buffer to send data */
- struct urb *write_urb; /* the urb used to send data */
- struct urb *read_urb;
unsigned int tx_bulk_pipe; /* bulk out endpoint */
+ unsigned int rx_bulk_pipe; /* bulk in endpoint */
struct mutex mtx; /* locks this structure */