Date: Thu, 31 Oct 2013 21:35:06 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Ben Woods <woodsb02@gmail.com> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: Atheros 9285 "unable to reset channel" Message-ID: <CAJ-VmonGzfLT7Xp=qF2wyveqKV9Do3ueFD2DLYbKuYH8Egrp8g@mail.gmail.com> In-Reply-To: <CAOc73CAsYvjWMzc3EeeTgm8aVc5BeVX-RX6O4S3%2B_Co6GJLN%2BA@mail.gmail.com> References: <CAOc73CAsYvjWMzc3EeeTgm8aVc5BeVX-RX6O4S3%2B_Co6GJLN%2BA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <woodsb02@gmail.com> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonGzfLT7Xp=qF2wyveqKV9Do3ueFD2DLYbKuYH8Egrp8g>