From owner-freebsd-current@FreeBSD.ORG Fri Mar 20 23:31:52 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36857B98 for ; Fri, 20 Mar 2015 23:31:52 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 EC3F6D51 for ; Fri, 20 Mar 2015 23:31:51 +0000 (UTC) Received: by igcau2 with SMTP id au2so886499igc.0 for ; Fri, 20 Mar 2015 16:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ObH6O5sJSzdFwtkNqr99/QgUMgNccVehF+YIrHC9QMI=; b=mE97GkI0TK5UpbyF2PucjBYRD1mq7sqyzYLWmpOHoaCxE9zj8Lml1Jbal3RkEEwl1f ZEXKLSKCUg1Agb0ocRYSCCXN50Z7sHXkONswVI7WHNKb370x54+6AyOLIU5VANb6UtSW YUnAx00Jm/7Prfr6kNxfdPfPcNhY3s1RNyKI2wnL2unTcxz5pMj1zRnpmcQCAW5f82xL yxtmX8k/nwyJ42Cd9Ib4E2lzpvsLr1OgiyGNNQRPgfI/Gqwb6ecTnQMsYQUAB1IkxZyG K1RUQZUliQKp50TmQtf0JLrbmzAi0rpD0xsS9kKdIb3mSQDS7WAvNuBnT1JvS5YWOnqn V+AA== MIME-Version: 1.0 X-Received: by 10.42.41.200 with SMTP id q8mr4031259ice.61.1426894311465; Fri, 20 Mar 2015 16:31:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Fri, 20 Mar 2015 16:31:51 -0700 (PDT) In-Reply-To: <550C9CEF.4040302@icloud.com> References: <550C505F.2030809@icloud.com> <550C9CEF.4040302@icloud.com> Date: Fri, 20 Mar 2015 16:31:51 -0700 X-Google-Sender-Auth: h7eRX05QdtkqKhZjEAxzr0nCrjo Message-ID: Subject: Re: Atheros AR9460 and Acer Aspire V17 Nitro on FreeBSD 11 not working From: Adrian Chadd To: Anders Bolt-Evensen Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2015 23:31:52 -0000 Hm, ok. either interrupts arne't working, or the thing is deaf. :( can you do that and then in another screen run vmstat -ia | grep ath0 ? I'd like to see if it's at least posting interrupts. -a On 20 March 2015 at 15:19, Anders Bolt-Evensen wrote: > > IEEE_80211_DEBUG is compiled into the kernel. > When I ran "wlandebug +scan", I got the following output: > net.wlan.0.debug: 0x0 => 0x200000 > Then I ran "ifconfig wlan0 up" and then "ifconfig wlan0 scan". > The scan now took a few seconds, but still nothing shows up. > Then I took a look at dmesg -a which was now filled with a loop of the > following messages: > > wlan0: ieee80211_start_scan_locked: active scan, duration 2147483647 > mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once > wlan0: scan set 1g, 6g, 11g, 7g, 13g, 52a, 56a, 60a, 64a, 36a, 40a, 44a, > 48a, 2g, 3g, 4g, 5g, 8g, 9g, 10g, 12g, 149a, 153a, 157a, 161a, 165a, 100a, > 104a, 108a, 112a, 116a, 120a, 124a, 128a, 132a, 136a, 140a dwell min 20ms > max 200ms > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 140a -> 1g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 7g -> 13g [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 13g -> 52a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 52a -> 56a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 56a -> 60a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 60a -> 64a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 64a -> 36a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 36a -> 40a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 40a -> 44a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 44a -> 48a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 48a -> 2g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 2g -> 3g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 3g -> 4g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 4g -> 5g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 5g -> 8g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 8g -> 9g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 9g -> 10g [active, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 10g -> 12g [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 12g -> 149a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 149a -> 153a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 153a -> 157a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 157a -> 161a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 161a -> 165a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 165a -> 100a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 100a -> 104a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 104a -> 108a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 108a -> 112a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 112a -> 116a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 116a -> 120a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 120a -> 124a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 124a -> 128a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 128a -> 132a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 132a -> 136a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=0 > wlan0: scan_task: chan 136a -> 140a [passive, dwell min 20ms max 200ms] > wlan0: scan_curchan: calling; maxdwell=200 > wlan0: scan_task: waiting > wlan0: scan_task: loop start; scandone=1 > wlan0: scan_task: out > wlan0: sta_pick_bss: no scan candidate > wlan0: scan_task: done, [ticks 2147275107, dwell min 20 scanend 4294748797] > wlan0: notify scan done > wlan0: ieee80211_scanreq: flags 0x20052 duration 0x7fffffff mindwell 0 > maxdwell 0 nssid 1 > wlan0: ieee80211_check_scan: active scan, append, nojoin, once > wlan0: sta_pick_bss: no scan candidate > > The system kept on printing these messages until I rebooted this machine > back to Windows (in order to write this reply). > > > On 3/20/2015 8:02 PM, Adrian Chadd wrote: >> >> compile in IEEE80211_DEBUG, then "wlandebug +scan", then do the scan. >> >> I wonder if you're hitting some scan bug where the sheer amount of >> traffic going on is causing problems. >> >> Also, seeing RX'ed frames at -130dB is .. oddly wrong for this NIC. >> Something odd is going on. >> >> >> -a >> >> >> On 20 March 2015 at 11:21, Miguel Clara wrote: >>> >>> On Fri, Mar 20, 2015 at 6:01 PM, Adrian Chadd wrote: >>>> >>>> On 20 March 2015 at 09:52, Anders Bolt-Evensen >>>> wrote: >>>>> >>>>> Hello! >>>>> >>>>> Recently I had to buy a new computer as my Mac broke down. >>>>> I ended up with an Acer Aspire V17 Nitro, which, except for a couple of >>>>> problems, is all good. >>>>> One of the problems is that wifi does not work. The wifi driver is an >>>>> Atheros AR9460. >>>>> The problem is that when I attempt to scan for my wireless network, >>>>> nothing >>>>> shows up at all. >>>>> On my previous computer, where I used an external Atheros card, >>>>> everything >>>>> worked well. >>>>> Could the following line from dmesg be a symptom of my problems? >>>>> "ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000" >>>>> >>>>> I'm using FreeBSD 11-CURRENT with sources updated today. >>>> >>>> >>>> What else does it log? >>> >>> >>> I have this same card on a acer s3 (utltrabook) >>> >>> @adrian this is the one I reported the performance issues but now seems >>> to >>> be working ok. >>> >>> For the record this is with --> r280273 >>> >>> commit d7efe7e99e68d52fa754f4e935814c492d818ece >>> Author: pfg >>> Date: Fri Mar 20 01:07:48 2015 +0000 >>> >>> Permit multiple arguments for the nonnull attribute. >>> >>> This is very useful for non-trivial functions and doesn't >>> affect existing uses. >>> >>> MFC after: 5 days >>> >>> Notes: >>> svn path=/head/; revision=280273 >>> >>> >>> I'm noticing something wron with "ifconfig scan" too, it listed fine as a >>> normal user, but that's not really re-scanning... >>> >>> % ifconfig wlan0 scan >>> SSID/MESH ID BSSID CHAN RATE S:N INT CAPS >>> **** *:1c:68 1 54M -93:-96 100 EP RSN HTCAP WPS WPA WME >>> **** *:13:c0 6 54M -80:-96 100 EP RSN HTCAP WPS WME >>> **** *:e2:0c 6 54M -83:-96 100 EP RSN HTCAP WME >>> **** *:f7:8c 6 54M -109:-96 100 EP RSN HTCAP WPS WPA WME >>> **** *:4a:12 11 54M -91:-96 100 EP RSN HTCAP WPS WPA WME >>> **** *:13:c4 48 54M -80:-96 100 EP RSN HTCAP WME >>> >>> Trying with sudo gets in a hanged state... >>> >>> [user@host:/usr/src ]% sudo ifconfig wlan0 scan >>> load: 0.17 cmd: ifconfig 11320 [sbwait] 35.72r 0.00u 0.00s 0% 2132k >>> load: 0.17 cmd: ifconfig 11320 [sbwait] 36.20r 0.00u 0.00s 0% 2132k >>> load: 0.19 cmd: ifconfig 11320 [sbwait] 187.79r 0.00u 0.00s 0% 2132k >>> load: 0.19 cmd: ifconfig 11320 [sbwait] 187.94r 0.00u 0.00s 0% 2132k >>> load: 0.19 cmd: ifconfig 11320 [sbwait] 188.08r 0.00u 0.00s 0% 2132k >>> >>> ^C >>> >>> but after the ^C as a normal user again and: >>> ifconfig wlan0 scan >>> SSID/MESH ID BSSID CHAN RATE S:N INT CAPS >>> ***** *:1c:68 1 54M -94:-96 100 EP RSN HTCAP WPS WPA WME >>> ***** *:13:c0 6 54M -80:-96 100 EP RSN HTCAP WPS WME >>> ***** *:e2:0c 6 54M -83:-96 100 EP RSN HTCAP WME >>> ***** *:f7:8c 6 54M -130:-96 100 EP RSN HTCAP WPS WPA WME >>> ***** *:4a:12 1 54M -91:-96 100 EP RSN HTCAP WPS WPA WME >>> ***** *:13:c4 48 54M -80:-96 100 EP RSN HTCAP WME >>> ***** ... *:99:01 6 54M -96:-96 100 E <------- This is new so it >>> re-scanned >>> >>> >>> I see nothing in dmesg >>> >>>> >>>> -adrian >>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to >>>> "freebsd-current-unsubscribe@freebsd.org" >>> >>> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >