]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
rt2x00: Clear IEEE80211_TX_CTL_USE_RTS_CTS flag for RTS frame
authorIvo van Doorn <IvDoorn@gmail.com>
Sat, 7 Jun 2008 10:29:05 +0000 (12:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 14 Jun 2008 16:17:57 +0000 (12:17 -0400)
For RTS/CTS-to-self frames the IEEE80211_TX_CTL_USE_RTS_CTS flag
should be cleared for the tx_info flags.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c

index 59f273bf5b5ec0d8dd0c081e479a64cf23cdaf4a..c90992f613fe1c54de36b9b8fce42e58baa3187b 100644 (file)
@@ -64,6 +64,7 @@ static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev,
        memcpy(skb->cb, frag_skb->cb, sizeof(skb->cb));
        rts_info = IEEE80211_SKB_CB(skb);
        rts_info->flags |= IEEE80211_TX_CTL_DO_NOT_ENCRYPT;
+       rts_info->flags &= ~IEEE80211_TX_CTL_USE_RTS_CTS;
        rts_info->flags &= ~IEEE80211_TX_CTL_USE_CTS_PROTECT;
        rts_info->flags &= ~IEEE80211_TX_CTL_REQ_TX_STATUS;