aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-16 03:38:36 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-16 13:42:57 +0200
commit4176d78759eedfab4dc08e7bde8991fb7942bf5c (patch)
tree2e533c9ca1c97fd644d6e5333fad589b2c3864da /at76_usb.h
parent50f4afa032dca9bab401284d5b87c149cae6a5c5 (diff)
[PATCH] Eliminate macros containing offsetof for MIB structures
They make it harder to check correctness of MIB requests. For instance, STATION_ID_OFFSET doesn't show that it's an offset in struct mib_mac_mgmt, so it's not obvious if priv->mib_buf.type is set to MIB_MAC_MGMT correctly. Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r--at76_usb.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/at76_usb.h b/at76_usb.h
index 63d0c23..46a2d7a 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -113,24 +113,6 @@
#define IR_OFF 0
#define IR_ON 1
-/* offsets into the MIBs we use to configure the device */
-#define TX_AUTORATE_FALLBACK_OFFSET offsetof(struct mib_local,txautorate_fallback)
-#define FRAGMENTATION_OFFSET offsetof(struct mib_mac,frag_threshold)
-#define PREAMBLE_TYPE_OFFSET offsetof(struct mib_local,preamble_type)
-#define RTS_OFFSET offsetof(struct mib_mac, rts_threshold)
-
-/* 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_OFFSET \
- offsetof(struct mib_mac_mgmt, multi_domain_capability_enabled)
-/* the AssocID */
-#define STATION_ID_OFFSET offsetof(struct mib_mac_mgmt, station_id)
-#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)
-
struct hwcfg_r505 {
u8 cr39_values[14];
u8 reserved1[14];