From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 1 04:35:08 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 60CDDCAD for ; Fri, 1 Nov 2013 04:35:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 24E182B19 for ; Fri, 1 Nov 2013 04:35:08 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id ii20so384335qab.18 for ; Thu, 31 Oct 2013 21:35:06 -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=JHUPUamKtN+aedbai1OUqX9zz5mOWkoPYN9Iqd0nhys=; b=Pxk7rN0OVvF5LUrhunnXsEOOwWW6AW4eZrp/f8iVzZyFwkZf29JclgFiWHtF1E53vG gJ8V5KrbNzRqynvOrEKR7Rt955PqhmEFZ9XtwY0GvsKK8u0ewuXzYYQpze889Z4oAq64 yG7uXXxLijzYtd5hs6GIkFSRe1ABw4Ap8++2d0ail1FEFaY+G/aBQQc27wI7HNNkrHmR c2N2hrcmUPm78WaauEcDnOI1etL7LrosfQnxQKGSleojYWWbVknO1wubedILFzKPCzA1 cyv7x3j4GQ2miizgzbO+hPQeb7LiriWtv6KM1kzmE7cw4zL2+y3p6195Yml9a3LWGFSp KPYg== MIME-Version: 1.0 X-Received: by 10.49.59.115 with SMTP id y19mr1410659qeq.8.1383280506414; Thu, 31 Oct 2013 21:35:06 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Thu, 31 Oct 2013 21:35:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 31 Oct 2013 21:35:06 -0700 X-Google-Sender-Auth: y2KjWiSbH8xe8rQNshhF6R_SOzg Message-ID: Subject: Re: Atheros 9285 "unable to reset channel" From: Adrian Chadd To: Ben Woods Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 01 Nov 2013 04:35:08 -0000 Hi! HAL status 14 is HAL_ESELFTEST, which generally indicates the initial calibration failed. Now, it could fail in a few places. Have a look at ath_hal/ar5416/ar5416_cal.c : ar5416InitCal(). There's an initial calibration done for each chipset, a power-amplifier calibration for the TX side, then noise floor calibration; then various other calibration bits and pieces get started. So, the question is which calibration is failing. The calibration failures are logged at HAL_DEBUG_ANY, so as long as any debug bit is set, it gets echoed. Pick something like HAL_DEBUG_BT_COEX (sysctl dev.ath.0.debug=0x20000000) and see if the HAL dumps any useful information anything. But first - add these to your kernel config and reboot: options ATH_DEBUG options AH_DEBUG options ATH_DIAGAPI Also, compile up the stuff in /usr/src/tools/tools/ath . athstats is really, really great at general debugging. -adrian On 31 October 2013 21:09, Ben Woods wrote: > Hi, > > I am trialling FreeBSD10-BETA2 in an attempt to find bugs etc. I am having > a problem with my Atheros 9285 wireless driver which I think might have > been around for a while (not new in 10), but I know a lot of work has been > done on these drivers in 10. > > The symptom is I lose my wifi connection after the computer has been > running for some time and I get the following errors scrolling on my > terminal: > *ath0: ath_chan_set: unable to reset channel X (24XX MHz, flags 0xXXX), hal > status 14* > > It looks similar to these 2 bug reports: > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/165543 > http://www.freebsd.org/cgi/query-pr.cgi?pr=151198 > > Has anyone seen this before or have any ideas/suggestions of how I can > troubleshoot further? I am using wpa_supplicant and DHCP. If I reboot my > wifi works again for a few hours and then stops. > > # pciconf -lv > ath0@pci0:1:0:0: class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 > hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR9285 Wireless Network Adapter (PCI-Express)' > class = network > > # uname -a > FreeBSD sparticus.home.local 10.0-BETA2 FreeBSD 10.0-BETA2 #0 r257166: Sat > Oct 26 19:23:22 UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC > amd64 > > # cat /etc/rc.conf > wpa_supplicant_flags="-sd" > wlans_ath0="wlan0" > ifconfig_wlan0="WPA DHCP" > > # cat /etc/wpa_supplicant.conf > network={ > ssid="SSID" > psk="PSK" > } > > # cat /var/log/dmesg.today > ath0: ath_chan_set: unable to reset channel 8 (2447 MHz, flags 0x480), hal > status 14 > ath0: ath_chan_set: unable to reset channel 9 (2452 MHz, flags 0x480), hal > status 14 > ath0: ath_chan_set: unable to reset channel 10 (2457 MHz, flags 0x480), hal > status 14 > ath0: ath_chan_set: unable to reset channel 12 (2467 MHz, flags 0x680), hal > status 14 > ath0: ath_chan_set: unable to reset channel 14 (2484 MHz, flags 0x2a0), hal > status 14 > ath0: ath_reset: unable to reset hardware; hal status 14 > pid 53465 (python), uid 972: exited on signal 6 (core dumped) > > # cat /var/log/debug.log > wpa_supplicant[490]: wlan0: Event SCAN_RESULTS (3) received > wpa_supplicant[490]: Received 0 bytes of scan results (0 BSSes) > wpa_supplicant[490]: wlan0: BSS: Start scan result update 5935 > wpa_supplicant[490]: BSS: last_scan_res_used=0/32 last_scan_full=0 > wpa_supplicant[490]: wlan0: New scan results available > wpa_supplicant[490]: WPS: AP[0] 30:85:a9:e7:e4:10 type=0 tries=0 > last_attempt=-1 sec ago blacklist=2 > wpa_supplicant[490]: WPS: AP[1] 00:26:44:9a:d5:21 type=0 tries=0 > last_attempt=-1 sec ago blacklist=0 > wpa_supplicant[490]: WPS: AP[2] a4:b1:e9:9b:de:9e type=0 tries=0 > last_attempt=-1 sec ago blacklist=0 > wpa_supplicant[490]: wlan0: No suitable network found > wpa_supplicant[490]: wlan0: Setting scan request: 5 sec 0 usec > wpa_supplicant[490]: wlan0: Starting AP scan for wildcard SSID > wpa_supplicant[490]: wpa_driver_bsd_set_wpa: enabled=1 > wpa_supplicant[490]: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 > > > Thanks in advance! > -Ben > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"