From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 5 05:50:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AB4016A41F for ; Mon, 5 Dec 2005 05:50:10 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3E5D43D6A for ; Mon, 5 Dec 2005 05:50:09 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.192] ([10.0.0.192]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id jB55nsXq005078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Dec 2005 21:49:54 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <4393D4C0.7090500@errno.com> Date: Sun, 04 Dec 2005 21:48:48 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Lang, Tanja" References: <0C7AF4692D7A6143A72AD00E5681D7E5ADA454@ESWW02.CSUMain.csu.edu.au> In-Reply-To: <0C7AF4692D7A6143A72AD00E5681D7E5ADA454@ESWW02.CSUMain.csu.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: noise level measurement with Atheros driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 05:50:10 -0000 Lang, Tanja wrote: > Hi, > > > > I would like to record signal strength and noise level for each client > packet received on a wireless access point. I found the fields > IEEE80211_RADIOTAP_DBM_ANTSIGNAL and IEEE80211_RADIOTAP_DBM_ANTNOISE > in the radiotap header which should give me this information. > > > > The 'wi' interface sets both of these values in if_wi.c > > if_wi.c: sc->sc_rx_th.wr_antnoise = frmhdr.wi_rx_silence; > > if_wi.c: sc->sc_rx_th.wr_antsignal = frmhdr.wi_rx_signal; > > > > While the 'ath' interface only provides signal strength information. > > if_ath.c sc->sc_rx_th.wr_antsignal = ds->ds_rxstat.rs_rssi; > > > > Is the Atheros driver (which my current wireless card in the AP uses) > capable of providing noise information? If yes, which line needs to be > added in if_ath.c? Can't get calibrated noise floor info with the current hal. I've done the work and it will be available in the next hal I release. Sam