diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-12-20 04:59:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:40 -0500 |
commit | 076f9582a6b82e54339ee815130315744b730787 (patch) | |
tree | a000f26561a903f6cfcebe95a99182ab22b6fc2a /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | 7b40982e235d6ff9343d38703eb48a0143afcc26 (diff) |
rt2x00: Remove ENTRY_TXD_OFDM_RATE
The flag ENTRY_TXD_OFDM_RATE isn't flexible enough
to indicate which rate modulation should be used for
a frame. This will become a problem when 11n support
is added.
Remove the flag and replace it with an enum value which
can better indicate the exact rate modulation.
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/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index f4a951338f8f..67140e75608d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -314,9 +314,13 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry, | |||
314 | } else | 314 | } else |
315 | txdesc->ifs = IFS_SIFS; | 315 | txdesc->ifs = IFS_SIFS; |
316 | 316 | ||
317 | /* | ||
318 | * Determine rate modulation. | ||
319 | */ | ||
317 | hwrate = rt2x00_get_rate(rate->hw_value); | 320 | hwrate = rt2x00_get_rate(rate->hw_value); |
321 | txdesc->rate_mode = RATE_MODE_CCK; | ||
318 | if (hwrate->flags & DEV_RATE_OFDM) | 322 | if (hwrate->flags & DEV_RATE_OFDM) |
319 | __set_bit(ENTRY_TXD_OFDM_RATE, &txdesc->flags); | 323 | txdesc->rate_mode = RATE_MODE_OFDM; |
320 | 324 | ||
321 | /* | 325 | /* |
322 | * Apply TX descriptor handling by components | 326 | * Apply TX descriptor handling by components |