aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-03-09 17:48:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-13 19:31:42 -0400
commitaa776721b472e343a8db7f3c0673b1fa24e6c7f7 (patch)
treeb3bb79f05cdd729696877783bb25da7c3a7dd3c0 /drivers/net/wireless/rt2x00/rt2x00lib.h
parentfd3c91c5e57eef8db71cf52e2473832c330bf5db (diff)
rt2x00: Fix basic rate initialization
The basic rate which is configured in the register should not match all supported rates, but only the _basic_ rates. Fix this by adding a new flag to the rt2x00_rate structure and whenever the mode is changed, loop over all available rates for that band to get the basic rate mask. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00lib.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
index a15227d2fe40..e4b4dd23d611 100644
--- a/drivers/net/wireless/rt2x00/rt2x00lib.h
+++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
@@ -41,22 +41,10 @@ struct rt2x00_rate {
41#define DEV_RATE_CCK 0x0001 41#define DEV_RATE_CCK 0x0001
42#define DEV_RATE_OFDM 0x0002 42#define DEV_RATE_OFDM 0x0002
43#define DEV_RATE_SHORT_PREAMBLE 0x0004 43#define DEV_RATE_SHORT_PREAMBLE 0x0004
44#define DEV_RATE_BASIC 0x0008
44 45
45 unsigned short bitrate; /* In 100kbit/s */ 46 unsigned short bitrate; /* In 100kbit/s */
46
47 unsigned short ratemask; 47 unsigned short ratemask;
48#define DEV_RATEMASK_1MB ( (1 << 1) - 1 )
49#define DEV_RATEMASK_2MB ( (1 << 2) - 1 )
50#define DEV_RATEMASK_5_5MB ( (1 << 3) - 1 )
51#define DEV_RATEMASK_11MB ( (1 << 4) - 1 )
52#define DEV_RATEMASK_6MB ( (1 << 5) - 1 )
53#define DEV_RATEMASK_9MB ( (1 << 6) - 1 )
54#define DEV_RATEMASK_12MB ( (1 << 7) - 1 )
55#define DEV_RATEMASK_18MB ( (1 << 8) - 1 )
56#define DEV_RATEMASK_24MB ( (1 << 9) - 1 )
57#define DEV_RATEMASK_36MB ( (1 << 10) - 1 )
58#define DEV_RATEMASK_48MB ( (1 << 11) - 1 )
59#define DEV_RATEMASK_54MB ( (1 << 12) - 1 )
60 48
61 unsigned short plcp; 49 unsigned short plcp;
62}; 50};