aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-02-21 19:44:45 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-02-21 19:44:45 +0100
commit5aa877787caf4a6aa8b2581c8ce0e394d92641dd (patch)
treeea00d27d8890250e8ba82a1a1dfcb9b24cd1ab6f
parentd5359cae6ea2df42a14344c20ad5f9cd54fb4744 (diff)
remove more dead code, reforamt, etc.
-rw-r--r--at76c503.h38
1 files changed, 16 insertions, 22 deletions
diff --git a/at76c503.h b/at76c503.h
index b1cb3e5..526a3ae 100644
--- a/at76c503.h
+++ b/at76c503.h
@@ -19,7 +19,7 @@
* kept binary only). Thanks for that decision to Atmel!
*
* For the latest version of this driver, mailinglists
- * and other info, please check
+ * and other info, please check
* http://at76c503a.berlios.de/
*/
@@ -90,7 +90,7 @@
#define MIB_FW_VERSION 0x08
#define MIB_MDOMAIN 0x09
-#define ADHOC_MODE 1
+#define ADHOC_MODE 1
#define INFRASTRUCTURE_MODE 2
/* values for struct mib_local, field preamble_type */
@@ -98,11 +98,11 @@
#define PREAMBLE_TYPE_LONG 0
/* values for tx_rate */
-#define TX_RATE_1MBIT 0
-#define TX_RATE_2MBIT 1
+#define TX_RATE_1MBIT 0
+#define TX_RATE_2MBIT 1
#define TX_RATE_5_5MBIT 2
-#define TX_RATE_11MBIT 3
-#define TX_RATE_AUTO 4
+#define TX_RATE_11MBIT 3
+#define TX_RATE_AUTO 4
/* power management modes */
#define PM_ACTIVE 1
@@ -127,7 +127,7 @@
/* valid only for rfmd and 505 !*/
#define IBSS_CHANGE_OK_OFFSET offsetof(struct mib_mac_mgmt, ibss_change)
-#define IROAMING_IMPL_OFFSET offsetof(struct mib_mac_mgmt, multi_domain_capability_implemented)
+#define IROAMING_IMPL_OFFSET offsetof(struct mib_mac_mgmt, multi_domain_capability_implemented)
#define IROAMING_OFFSET \
offsetof(struct mib_mac_mgmt, multi_domain_capability_enabled)
/* the AssocID */
@@ -135,7 +135,7 @@
#define POWER_MGMT_MODE_OFFSET offsetof(struct mib_mac_mgmt, power_mgmt_mode)
#define LISTEN_INTERVAL_OFFSET offsetof(struct mib_mac, listen_interval)
-#define PRIVACY_OPT_IMPL offsetof(struct mib_mac_mgmt, privacy_option_implemented)
+#define PRIVACY_OPT_IMPL offsetof(struct mib_mac_mgmt, privacy_option_implemented)
#define BOARDTYPE_503_INTERSIL_3861 1
#define BOARDTYPE_503_INTERSIL_3863 2
@@ -188,12 +188,12 @@ struct at76c503_card_config{
u8 short_retry_limit;
u8 encryption_type;
__le16 rts_threshold;
- __le16 fragmentation_threshold; // 256..2346
+ __le16 fragmentation_threshold; /* 256..2346 */
u8 basic_rate_set[4];
- u8 auto_rate_fallback; //0,1
+ u8 auto_rate_fallback; /* 0,1 */
u8 channel;
u8 privacy_invoked;
- u8 wep_default_key_id; // 0..3
+ u8 wep_default_key_id; /* 0..3 */
u8 current_ssid[32];
u8 wep_default_key_value[4][WEP_KEY_LEN];
u8 ssid_len;
@@ -461,12 +461,7 @@ struct at76c503 {
struct net_device_stats stats;
struct iw_statistics wstats;
struct usb_interface *interface; /* the interface for this device */
-
-// unsigned char num_ports; /* the number of ports this device has */
-// char num_interrupt_in; /* number of interrupt in endpoints we have */
-// char num_bulk_in; /* number of bulk in endpoints we have */
-// char num_bulk_out; /* number of bulk out endpoints we have */
-
+
struct sk_buff * rx_skb; /* skbuff for receiving packets */
__u8 bulk_in_endpointAddr; /* the address of the bulk in endpoint */
@@ -484,7 +479,7 @@ struct at76c503 {
struct work_struct kevent;
int nr_submit_rx_tries; /* number of tries to submit an rx urb left */
struct tasklet_struct tasklet;
- struct urb *rx_urb; /* tmp urb pointer for rx_tasklet */
+ struct urb *rx_urb; /* tmp urb pointer for rx_tasklet */
unsigned char *ctrl_buffer;
struct urb *ctrl_urb;
@@ -514,7 +509,6 @@ struct at76c503 {
int frag_threshold; /* threshold for fragmentation of tx packets */
int rts_threshold; /* threshold for RTS mechanism */
int short_retry_limit;
- //int long_retry_limit;
int scan_min_time; /* scan min channel time */
int scan_max_time; /* scan max channel time */
@@ -541,8 +535,8 @@ struct at76c503 {
/* some data for infrastructure mode only */
spinlock_t mgmt_spinlock; /* this spinlock protects access to
next_mgmt_bulk */
- spinlock_t istate_spinlock; /* this spinlock protects access to
- istate */
+ spinlock_t istate_spinlock;/* this spinlock protects access to
+ istate */
struct at76c503_tx_buffer *next_mgmt_bulk; /* pending management msg to
@@ -564,7 +558,7 @@ struct at76c503 {
u32 pm_period_us; /* power manag. period (in us ?) - set by iwconfig */
u32 pm_period_beacon; /* power manag. period (in beacon intervals
of the curr_bss) */
- u32 board_type; /* BOARDTYPE_* defined above*/
+ u32 board_type; /* BOARDTYPE_* defined above */
struct reg_domain const *domain; /* the description of the regulatory domain */