diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-04-18 09:28:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-19 15:39:24 -0400 |
commit | 8da3efbb4a18be30ed03dd05af18d0b026b15173 (patch) | |
tree | 64d7a48b4c1d17afc4e25d15b1dfd269675784f2 | |
parent | 961636ba17fa45b27ee4674430e1e775b8966b0e (diff) |
rt2x00: Use TXOP_HTTXOP for beacons
Use TXOP_HTTXOP for beacons to stay in sync with the legacy drivers.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00ht.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00ht.c b/drivers/net/wireless/rt2x00/rt2x00ht.c index e8c0c3e92c2f..a30f68c7fd7e 100644 --- a/drivers/net/wireless/rt2x00/rt2x00ht.c +++ b/drivers/net/wireless/rt2x00/rt2x00ht.c | |||
@@ -92,14 +92,15 @@ void rt2x00ht_create_tx_descriptor(struct queue_entry *entry, | |||
92 | 92 | ||
93 | /* | 93 | /* |
94 | * Determine IFS values | 94 | * Determine IFS values |
95 | * - Use TXOP_BACKOFF for management frames | 95 | * - Use TXOP_BACKOFF for management frames except beacons |
96 | * - Use TXOP_SIFS for fragment bursts | 96 | * - Use TXOP_SIFS for fragment bursts |
97 | * - Use TXOP_HTTXOP for everything else | 97 | * - Use TXOP_HTTXOP for everything else |
98 | * | 98 | * |
99 | * Note: rt2800 devices won't use CTS protection (if used) | 99 | * Note: rt2800 devices won't use CTS protection (if used) |
100 | * for frames not transmitted with TXOP_HTTXOP | 100 | * for frames not transmitted with TXOP_HTTXOP |
101 | */ | 101 | */ |
102 | if (ieee80211_is_mgmt(hdr->frame_control)) | 102 | if (ieee80211_is_mgmt(hdr->frame_control) && |
103 | !ieee80211_is_beacon(hdr->frame_control)) | ||
103 | txdesc->u.ht.txop = TXOP_BACKOFF; | 104 | txdesc->u.ht.txop = TXOP_BACKOFF; |
104 | else if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)) | 105 | else if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)) |
105 | txdesc->u.ht.txop = TXOP_SIFS; | 106 | txdesc->u.ht.txop = TXOP_SIFS; |