From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:42072 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487Ab1CXNhc (ORCPT ); Thu, 24 Mar 2011 09:37:32 -0400 Subject: Re: [PATCH] mac80211: rename RX_FLAG_TSFT From: Johannes Berg To: Arend van Spriel Cc: John Linville , linux-wireless , Greg KH In-Reply-To: References: <1298469968.4122.8.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Mar 2011 14:37:25 +0100 Message-ID: <1300973845.26265.4.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Arend, > > +#if 0 > > + /* Clearly, this is bogus -- reading the TSF now is wrong */ > > wlc_read_tsf(wlc, &tsf_l, &tsf_h); /* mactime */ > > rx_status->mactime = tsf_h; > > rx_status->mactime <<= 32; > > rx_status->mactime |= tsf_l; > > - rx_status->flag |= RX_FLAG_TSFT; > > + rx_status->flag |= RX_FLAG_MACTIME_MPDU; /* clearly wrong */ > > +#endif > > This piece of code has been '#if 0'-ed by you. Could you elaborate why > this is clearly wrong? Because of this the variables tsf_l and tsf_h are > not being used hence the warning. include/net/mac80211.h: * @mactime: value in microseconds of the 64-bit Time Synchronization Function * (TSF) timer when the first data symbol (MPDU) arrived at the hardware. Not sure what else to say ... reading the TSF when processing the frame in software is clearly bogus. johannes