aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-17 11:32:08 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:22 -0500
commitbaf26a7eae3b05d25dd967b92eb2e09406ed9cf4 (patch)
tree7d49c6960f47c031025d121dd93300cfb812958b /drivers/net/wireless/rt2x00/rt2500usb.c
parentac1aa7e4f3c73ecb09fddf59c1924530155d9359 (diff)
rt2x00: Don't report driver generated frames to tx_status()
This adds a new flag for the skb_frame_desc structure which is used to tag rts/cts frames that are generated by the driver. Through the tag we can recognize frames we have generated ourselves, so we don't report their tx status to mac80211. This patch is based on the original patch by Mattias Nissler <mattias.nissler@gmx.de>. 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/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index f9d6f539a80f..f7dc06a74d1a 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1751,6 +1751,7 @@ static int rt2500usb_beacon_update(struct ieee80211_hw *hw,
1751 */ 1751 */
1752 skbdesc = get_skb_frame_desc(skb); 1752 skbdesc = get_skb_frame_desc(skb);
1753 memset(skbdesc, 0, sizeof(*skbdesc)); 1753 memset(skbdesc, 0, sizeof(*skbdesc));
1754 skbdesc->flags |= FRAME_DESC_DRIVER_GENERATED;
1754 skbdesc->data = skb->data + intf->beacon->queue->desc_size; 1755 skbdesc->data = skb->data + intf->beacon->queue->desc_size;
1755 skbdesc->data_len = skb->len - intf->beacon->queue->desc_size; 1756 skbdesc->data_len = skb->len - intf->beacon->queue->desc_size;
1756 skbdesc->desc = skb->data; 1757 skbdesc->desc = skb->data;