diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 9b1b2b7a7807..acd013353cc7 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -320,14 +320,6 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev, | |||
320 | txdesc->u.ht.wcid = sta_priv->wcid; | 320 | txdesc->u.ht.wcid = sta_priv->wcid; |
321 | } | 321 | } |
322 | 322 | ||
323 | txdesc->u.ht.ba_size = 7; /* FIXME: What value is needed? */ | ||
324 | |||
325 | /* | ||
326 | * Only one STBC stream is supported for now. | ||
327 | */ | ||
328 | if (tx_info->flags & IEEE80211_TX_CTL_STBC) | ||
329 | txdesc->u.ht.stbc = 1; | ||
330 | |||
331 | /* | 323 | /* |
332 | * If IEEE80211_TX_RC_MCS is set txrate->idx just contains the | 324 | * If IEEE80211_TX_RC_MCS is set txrate->idx just contains the |
333 | * mcs rate to be used | 325 | * mcs rate to be used |
@@ -351,6 +343,24 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev, | |||
351 | txdesc->u.ht.mcs |= 0x08; | 343 | txdesc->u.ht.mcs |= 0x08; |
352 | } | 344 | } |
353 | 345 | ||
346 | if (test_bit(CONFIG_HT_DISABLED, &rt2x00dev->flags)) { | ||
347 | if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)) | ||
348 | txdesc->u.ht.txop = TXOP_SIFS; | ||
349 | else | ||
350 | txdesc->u.ht.txop = TXOP_BACKOFF; | ||
351 | |||
352 | /* Left zero on all other settings. */ | ||
353 | return; | ||
354 | } | ||
355 | |||
356 | txdesc->u.ht.ba_size = 7; /* FIXME: What value is needed? */ | ||
357 | |||
358 | /* | ||
359 | * Only one STBC stream is supported for now. | ||
360 | */ | ||
361 | if (tx_info->flags & IEEE80211_TX_CTL_STBC) | ||
362 | txdesc->u.ht.stbc = 1; | ||
363 | |||
354 | /* | 364 | /* |
355 | * This frame is eligible for an AMPDU, however, don't aggregate | 365 | * This frame is eligible for an AMPDU, however, don't aggregate |
356 | * frames that are intended to probe a specific tx rate. | 366 | * frames that are intended to probe a specific tx rate. |