diff options
author | Pavel Roskin <proski@gnu.org> | 2007-06-16 03:38:36 -0400 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-06-16 13:42:57 +0200 |
commit | 4176d78759eedfab4dc08e7bde8991fb7942bf5c (patch) | |
tree | 2e533c9ca1c97fd644d6e5333fad589b2c3864da /at76_usb.h | |
parent | 50f4afa032dca9bab401284d5b87c149cae6a5c5 (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.h | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -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]; |