Return-path: Received: from 30.mail-out.ovh.net ([213.186.62.213]:40630 "HELO 30.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751069Ab0F2GPH (ORCPT ); Tue, 29 Jun 2010 02:15:07 -0400 Message-ID: <4C298DD2.8010704@free.fr> Date: Tue, 29 Jun 2010 08:08:18 +0200 From: Benoit Papillault MIME-Version: 1.0 To: Felix Fietkau CC: =?ISO-8859-1?Q?Bj=F6rn_Smedman?= , ath9k-devel@lists.ath9k.org, linux-wireless Subject: Re: [ath9k-devel] ath9k: ap tsf seems random and only uses lower 24 bits or so References: <4C29284C.5050707@openwrt.org> In-Reply-To: <4C29284C.5050707@openwrt.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: Le 29/06/2010 00:55, Felix Fietkau a ?crit : > On 2010-06-29 12:31 AM, Bj?rn Smedman wrote: >> Hi all, >> >> I'm getting weird values from the debugfs file ieee80211/phy0/tsf: the >> value goes up and down rather randomly and only the lower 24 bits or >> so seem to ever be used (see below for details). >> >> The only thing running on phy0 is a single ap interface (and the >> monitor companion that hostapd sets up). I was expecting tsf to >> increase monotonically until all 64 bits had been used. >> >> For a moment I thought it might be the kernel snprintf (on mips) >> playing a trick on me so I tried the following patch. But the result >> is the same. > IMHO the most likely problem source is stuck beacons. Please compile the > driver with the debug option enabled and load it with > insmod ath9k debug=0x00000100 > > - Felix Humm... I observed a similar behavior a while ago because only the 15 lower bits of rstamp were used when being extended (but rstamp is 32 bits in fact). If so, it has been fixed by Felix in the following commit : commit a6d2055b02dde1067075795274672720baadd3ca Author: Felix Fietkau Date: Sat Jun 12 00:33:54 2010 -0400 ath9k: fix extending the rx timestamp with the hardware TSF Regards, Benoit