The DEV_RATEBIT_ were all shifted 1 bit too much, this caused the RATEMASK to overflow. Signed-off-by: Ivo van Doorn <IvDoorn@xxxxxxxxx> --- drivers/net/wireless/rt2x00/rt2x00reg.h | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/wireless/rt2x00/rt2x00reg.h b/drivers/net/wireless/rt2x00/rt2x00reg.h index 5e7b63e..7927d5f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00reg.h +++ b/drivers/net/wireless/rt2x00/rt2x00reg.h @@ -231,18 +231,18 @@ static inline u8 rt2x00_get_field8(const u8 reg, /* * Bitfields */ -#define DEV_RATEBIT_1MB ( 1 << 1 ) -#define DEV_RATEBIT_2MB ( 1 << 2 ) -#define DEV_RATEBIT_5_5MB ( 1 << 3 ) -#define DEV_RATEBIT_11MB ( 1 << 4 ) -#define DEV_RATEBIT_6MB ( 1 << 5 ) -#define DEV_RATEBIT_9MB ( 1 << 6 ) -#define DEV_RATEBIT_12MB ( 1 << 7 ) -#define DEV_RATEBIT_18MB ( 1 << 8 ) -#define DEV_RATEBIT_24MB ( 1 << 9 ) -#define DEV_RATEBIT_36MB ( 1 << 10 ) -#define DEV_RATEBIT_48MB ( 1 << 11 ) -#define DEV_RATEBIT_54MB ( 1 << 12 ) +#define DEV_RATEBIT_1MB ( 1 << 0 ) +#define DEV_RATEBIT_2MB ( 1 << 1 ) +#define DEV_RATEBIT_5_5MB ( 1 << 2 ) +#define DEV_RATEBIT_11MB ( 1 << 3 ) +#define DEV_RATEBIT_6MB ( 1 << 4 ) +#define DEV_RATEBIT_9MB ( 1 << 5 ) +#define DEV_RATEBIT_12MB ( 1 << 6 ) +#define DEV_RATEBIT_18MB ( 1 << 7 ) +#define DEV_RATEBIT_24MB ( 1 << 8 ) +#define DEV_RATEBIT_36MB ( 1 << 9 ) +#define DEV_RATEBIT_48MB ( 1 << 10 ) +#define DEV_RATEBIT_54MB ( 1 << 11 ) /* * Bitmasks for DEV_RATEMASK -- 1.5.3 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html