ath9k: RX timestamp is reported at end of frame
authorThomas Pedersen <thomas@cozybit.com>
Mon, 10 Dec 2012 22:48:01 +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 AR9280.

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

index 6aafbb77c498038738357b4178f9b7e2a6f6d2cc..d4df98a938bf4755d1af6238d41e5df0753970c6 100644 (file)
@@ -976,7 +976,7 @@ static int ath9k_rx_skb_preprocess(struct ath_common *common,
        rx_status->freq = hw->conf.channel->center_freq;
        rx_status->signal = ah->noise + rx_stats->rs_rssi;
        rx_status->antenna = rx_stats->rs_antenna;
-       rx_status->flag |= RX_FLAG_MACTIME_START;
+       rx_status->flag |= RX_FLAG_MACTIME_END;
        if (rx_stats->rs_moreaggr)
                rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;