]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ath9k_htc: RX timestamp is reported at end of frame
authorThomas Pedersen <thomas@cozybit.com>
Mon, 10 Dec 2012 22:48:02 +0000 (14:48 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Dec 2012 21:00:38 +0000 (16:00 -0500)
Accurate RX timestamp reporting is important for proper IBSS merging,
mesh synchronization, and MCCA scheduling. Namely, knowing where the TSF
is recorded is needed to sync with the beacon timestamp field.

Tested with AR9271.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

index 28cd50ee521a61eb60ba24fb115fa26334fd2ad1..b6a5a08810b83f6b06e568e998e11e6711b9e8e4 100644 (file)
@@ -1082,7 +1082,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
        rx_status->freq = hw->conf.channel->center_freq;
        rx_status->signal =  rxbuf->rxstatus.rs_rssi + ATH_DEFAULT_NOISE_FLOOR;
        rx_status->antenna = rxbuf->rxstatus.rs_antenna;
-       rx_status->flag |= RX_FLAG_MACTIME_START;
+       rx_status->flag |= RX_FLAG_MACTIME_END;
 
        return true;