Return-path: Received: from mail-pa0-f46.google.com ([209.85.220.46]:57154 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755571Ab2KMSs1 (ORCPT ); Tue, 13 Nov 2012 13:48:27 -0500 Received: by mail-pa0-f46.google.com with SMTP id hz1so5217594pad.19 for ; Tue, 13 Nov 2012 10:48:26 -0800 (PST) From: Thomas Pedersen To: ath9k-devel@lists.ath9k.org Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com, vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com, linux-wireless@vger.kernel.org, Thomas Pedersen Subject: [PATCH v2 2/2] ath9k_htc: RX timestamp is reported at end of frame Date: Tue, 13 Nov 2012 10:48:08 -0800 Message-Id: <1352832488-21516-2-git-send-email-thomas@cozybit.com> (sfid-20121113_194835_893774_2BC3AE8F) In-Reply-To: <1352832488-21516-1-git-send-email-thomas@cozybit.com> References: <1352832488-21516-1-git-send-email-thomas@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- v2: clarify commit log (Luis) drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index 06cdcb7..1708b01 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c @@ -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_MPDU; + rx_status->flag |= RX_FLAG_MACTIME_END; return true; -- 1.7.10.4