From owner-freebsd-wireless@freebsd.org Wed Dec 2 21:09:51 2015 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 35B64A3FDDB for ; Wed, 2 Dec 2015 21:09:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 05FA01CCD for ; Wed, 2 Dec 2015 21:09:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iouu10 with SMTP id u10so61225652iou.0 for ; Wed, 02 Dec 2015 13:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N3uHSPbJlfUrB1KAp7CCVXAzPDJs4jp4mvyCWAZ6LG0=; b=Lmj03XUXhwDoZTaw7U59rcAGup9mStMLqeZdlSuYggQeNuTxXIxtvVF+tRWrJiJLxh SG/NCCFu3aGRVTeA5iQJtvvTSpVpIGFEcgktE2O9JhsMnS7x9mhcOWRaYgb7u8fLlWEL w1iXrAXYg9l3euourEhhr+OdNh4g3EXdvv1ZKwpzhx15RukrVhxFTJbvJphHr8jE1gW5 hlCzhAQChZ2SH9njZRLnPW5kkoj5lKST0ApF12JVG+M7yu3Y5cbT/7yoNzwAdRgwqQiW vOpgwGAt2ug5R+y8P0Zc4oyID9rHlOsfefRYb2odohUmlyKG9ss7yhEO7es0ilQvO7mt rEVA== MIME-Version: 1.0 X-Received: by 10.107.11.147 with SMTP id 19mr5293547iol.165.1449090590352; Wed, 02 Dec 2015 13:09:50 -0800 (PST) Received: by 10.36.217.196 with HTTP; Wed, 2 Dec 2015 13:09:50 -0800 (PST) Date: Wed, 2 Dec 2015 13:09:50 -0800 Message-ID: Subject: spectral scan now works on ar93xx and later chips From: Adrian Chadd To: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 02 Dec 2015 21:09:51 -0000 Hiya, I've brought in the spectral scan code for the ar93xx and later chips. It wasn't that much work. To use it: * add ATH_ENABLE_RADIOTAP_VENDOR_EXT, ATH_DIAGAPI to your kernel config and rebuild. I'd love to have this radiotap vendor data be in by default by tcpdump doesn't decode radiotap vendor data correctly yet and doesn't skip over it :( * compile athspectral (tools/ath/ath); to see it just 'athspectral enable_on_reset 1' * sysctl dev.ath.0.monpass=0xffff (so it passes up all PHY error frames up to the stack via radiotap - spectral scan data and radar reports are PHY errors with a payload); * ifconfig wlanX create wlandev ath0 ssid foo123 up (so it stays up and continuously scans, but hopefully never finds the ssid 'foo123'); * clone github.com/erikarn/ath_radar_stuff, build, and run 'fft_eval ar9280 if wlanX' (where 'wlanX' is the wlan interface); * watch the pretty data -adrian