From owner-freebsd-wireless@freebsd.org Fri Feb 3 18:12:45 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0CB9CCF837 for ; Fri, 3 Feb 2017 18:12:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6675C1F7F for ; Fri, 3 Feb 2017 18:12:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id r141so39007420wmg.1 for ; Fri, 03 Feb 2017 10:12:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6+d5j/4umr0ZwBjVjNpebtXA7rC6c9aXVIMd6WD4gR0=; b=CseXMsr/AZQcCFwbERIZzmZx1rHLQHKE/NisSFfjWAq9BJ0eV7vS8RwIY0ibQorVky dzbmMhRU4oNZ5jqIL/Adw71OtEqdEsQcpRkVshgcTx7cgVC2xa+KTW/CA7wGjhxH/oY6 dE3MYQSmArjqA0R28u1Cs1xYp/6MabpdnwtHaYepZN0HzjlA5gAQcY2pyUAhfZHLSaYU sTXnhxkfExsgvxVXvGnoEUYTZXxzRAW3pp55ndFYN8aGmPrhYkO+vit4Wz7YKP4ToVDW +2qEjAov0qwU/DUS21VDM22YbINpdDqlpdS9j6PiLyShmCg4rbB6B8mKWYFf7msjQeoH BKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6+d5j/4umr0ZwBjVjNpebtXA7rC6c9aXVIMd6WD4gR0=; b=FmzNCjg61mPp+1WuVg3KTHHktjbflAtL4AwQIer1zXy4hN/Q482T0nojw3CjofLFXe rI99mbBhOWpQ62qz8hFwirjwQOFMCMgXH0pcYAE6U/Q4w5nAD5xj9OuJm4l70FsRpXtF StWHmJUO1Bauge7HtWSasjvM7mobm2UlL0YLGlleimDdBTb8WD7/N3vMfezSoJwcJYFm ptcw4Rehgg95+CvuCu+cmfCUKdhG2lPYBtD5PEZF1rdl9QbHjlF8l00dc0lqMKExcsU6 yVyWchhY+qwDc4PWFPMie6CbdKUnZ7BkVikgXGYUmYQeNymAK2I/4QmG0KgTU8Vt0eoC dWig== X-Gm-Message-State: AMke39l+XAeCuDXmdnvwQZJfB9JsOnz/zNXGYihvDpfchvGCyaUNJp+zMzQjaxL/pdrsPemi+WDEle7xf7mkBQ== X-Received: by 10.28.100.132 with SMTP id y126mr2563004wmb.116.1486145563571; Fri, 03 Feb 2017 10:12:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.82.162 with HTTP; Fri, 3 Feb 2017 10:12:42 -0800 (PST) In-Reply-To: <20170115185926.GA30744@tom-desk.erg.abdn.ac.uk> References: <20170115185926.GA30744@tom-desk.erg.abdn.ac.uk> From: Adrian Chadd Date: Fri, 3 Feb 2017 10:12:42 -0800 Message-ID: Subject: Re: ATH Spectral Scan To: tj Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 18:12:45 -0000 Hiya, So: * You want to run fft_eval before you run 'start', or it'll not get any samples * there were issues in the ar9380 HAL for spectral scan, which I fixed * i fixed some tool/driver issues * i fixed issues in the ath_radar_stuff github repository So, please update tools/tools/ath, sys/dev/ath, sys/contrib/dev/ath, and the ath-radar_stuff repository and re-try. The main thing that doesn't work - doing a spectral scan at reset and then expecting traffic to work fails. You can certainly do it whilst scanning and getresults across all channels, but the NIC goes deaf pretty quickly. I need to modify the support so the 'at-reset' hack will let calibrations finish before triggering the spectral scan. Other than that - yes, it now works! Thanks for poking me on IRC tj, I've been meaning to make this work for a long while. -adrian