Return-path: Received: from mail-ig0-f181.google.com ([209.85.213.181]:37350 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbbG1WWd (ORCPT ); Tue, 28 Jul 2015 18:22:33 -0400 Received: by igbpg9 with SMTP id pg9so1044573igb.0 for ; Tue, 28 Jul 2015 15:22:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1437554563-11712-1-git-send-email-martin.blumenstingl@googlemail.com> Date: Tue, 28 Jul 2015 15:22:32 -0700 Message-ID: (sfid-20150729_002236_219925_2DAB19BC) Subject: Re: [PATCH RESEND] ath9k: Fix NF CCA limits for AR9287 and AR9227 From: Adrian Chadd To: Martin Blumenstingl Cc: ath9k-devel , ath9k-devel , Felix Fietkau , John Linville , "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hm, doesn't someone have a graphical frontend for this on linux? -a On 28 July 2015 at 15:07, Martin Blumenstingl wrote: > On Tue, Jul 28, 2015 at 7:25 PM, Adrian Chadd wrote: >> So the values aren't "bad" on the 1043nd - they're in 1/2 or 1/4dB, >> but there's no scalar quantity (ie, it's not in dBm.) The 1043nd >> calibrates down to around -95 or so, which "sounds" like it's in dBm >> but it isn't, and any similarity is just coincidence. > Ok, then we'll ignore the 1043nd from now on. > >> It does sound like your AR9227 sees noise. can you fire up the >> spectral analysis stuff to plot what the NIC is seeing? (yes, the >> AR9287/AR9227 has spectral analysis mode, same as the AR9280, AR9285, >> and >= AR9300.) > I am assuming that "background" mode is what you want, see [0]. > Thus I ran the following on my AR9227 device: > # echo background > /sys/kernel/debug/ieee80211/phy1/ath9k/spectral_scan_ctl > # echo trigger > /sys/kernel/debug/ieee80211/phy1/ath9k/spectral_scan_ctl > # cat /sys/kernel/debug/ieee80211/phy1/ath9k/spectral_scan0 > /tmp/samples > > The result can be found here: [1]. > Note that at this point no client was connected to my AP. My patch > (from the initial mail) was applied - but that shouldn't have any > effect on the spectral scan output (at least that's what I'm > assuming). > > Just for documentation purposes - those are the NF values that I have > seen a few seconds before getting the spectral scan data: > # cat /sys/kernel/debug/ieee80211/phy1/ath9k/dump_nfcal > Channel Noise Floor : -93 > Chain | privNF | # Readings | NF Readings > 0 -104 5 -109 -109 -109 -104 -104 > 1 -97 5 -97 -97 -97 -97 -97 > > > Regards, > Martin > > > [0] https://wireless.wiki.kernel.org/en/users/drivers/ath9k/spectral_scan > [1] https://dl.dropboxusercontent.com/u/26940713/tmp/spectral_out