diff options
author | Alban Browaeys <prahal@yahoo.com> | 2009-12-04 17:46:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-21 18:56:27 -0500 |
commit | e81e0aef32bfa7f593b14479b9c7eaa7196798ac (patch) | |
tree | e0881b6f62ccf7b731026e73418d3a2a69a7ecd3 /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | 6a325d856bc4509f29164fe42501b6909cf57dcf (diff) |
rt2x00 : avoid timestamp for monitor injected frame.
Do not include timestamp for a frame that has been injected
through a monitor interface.
Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 842c4e3c83ca..b8f09547787d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -387,10 +387,13 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry, | |||
387 | 387 | ||
388 | /* | 388 | /* |
389 | * Beacons and probe responses require the tsf timestamp | 389 | * Beacons and probe responses require the tsf timestamp |
390 | * to be inserted into the frame. | 390 | * to be inserted into the frame, except for a frame that has been injected |
391 | * through a monitor interface. This latter is needed for testing a | ||
392 | * monitor interface. | ||
391 | */ | 393 | */ |
392 | if (ieee80211_is_beacon(hdr->frame_control) || | 394 | if ((ieee80211_is_beacon(hdr->frame_control) || |
393 | ieee80211_is_probe_resp(hdr->frame_control)) | 395 | ieee80211_is_probe_resp(hdr->frame_control)) && |
396 | (!(tx_info->flags & IEEE80211_TX_CTL_INJECTED))) | ||
394 | __set_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags); | 397 | __set_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags); |
395 | 398 | ||
396 | /* | 399 | /* |