diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-17 11:32:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:22 -0500 |
commit | baf26a7eae3b05d25dd967b92eb2e09406ed9cf4 (patch) | |
tree | 7d49c6960f47c031025d121dd93300cfb812958b /drivers/net/wireless/rt2x00/rt2x00queue.h | |
parent | ac1aa7e4f3c73ecb09fddf59c1924530155d9359 (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/rt2x00queue.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 956e0be8aadd..fbabf389b622 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -82,12 +82,22 @@ enum rt2x00_bcn_queue { | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | /** | 84 | /** |
85 | * enum skb_frame_desc_flags: Flags for &struct skb_frame_desc | ||
86 | * | ||
87 | * @FRAME_DESC_DRIVER_GENERATED: Frame was generated inside driver | ||
88 | * and should not be reported back to mac80211 during txdone. | ||
89 | */ | ||
90 | enum skb_frame_desc_flags { | ||
91 | FRAME_DESC_DRIVER_GENERATED = 1 << 0, | ||
92 | }; | ||
93 | |||
94 | /** | ||
85 | * struct skb_frame_desc: Descriptor information for the skb buffer | 95 | * struct skb_frame_desc: Descriptor information for the skb buffer |
86 | * | 96 | * |
87 | * This structure is placed over the skb->cb array, this means that | 97 | * This structure is placed over the skb->cb array, this means that |
88 | * this structure should not exceed the size of that array (48 bytes). | 98 | * this structure should not exceed the size of that array (48 bytes). |
89 | * | 99 | * |
90 | * @flags: Frame flags. | 100 | * @flags: Frame flags, see &enum skb_frame_desc_flags. |
91 | * @frame_type: Frame type, see &enum rt2x00_dump_type. | 101 | * @frame_type: Frame type, see &enum rt2x00_dump_type. |
92 | * @data: Pointer to data part of frame (Start of ieee80211 header). | 102 | * @data: Pointer to data part of frame (Start of ieee80211 header). |
93 | * @desc: Pointer to descriptor part of the frame. | 103 | * @desc: Pointer to descriptor part of the frame. |