From owner-freebsd-current@FreeBSD.ORG Thu Feb 21 22:25:58 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E91016A400 for ; Thu, 21 Feb 2008 22:25:58 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3F2B313C4D9 for ; Thu, 21 Feb 2008 22:25:58 +0000 (UTC) (envelope-from sam@errno.com) Received: from Macintosh-2.local ([10.0.0.196]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m1LMPv0n068005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Feb 2008 14:25:58 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <47BDFA75.2010904@errno.com> Date: Thu, 21 Feb 2008 14:25:57 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Aragon Gouveia References: <20080221210933.GA8910@phat.za.net> In-Reply-To: <20080221210933.GA8910@phat.za.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-current@freebsd.org Subject: Re: ath problems/questions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 21 Feb 2008 22:25:58 -0000 Aragon Gouveia wrote: > Hi, > > First, forgive me if I'm posting to the incorrect list.... > > I have recently started playing with ath under FreeBSD 7.0-BETA2. I'm using > a Ubiquiti SRX ExpressCard. > > The main problem I'm having is that during scans, channels will suddenly > fail to reset and the only way to recover is to reboot or kldunload if_ath, > unplug, replug, and kldload if_ath. Here's a snippet of the error messages: > > Feb 21 22:43:31 fuzz kernel: ath0: ath_chan_set: unable to reset channel 40 (5200 Mhz, flags 0x140 hal flags 0x140) > Feb 21 22:43:32 fuzz kernel: ath0: ath_chan_set: unable to reset channel 44 (5220 Mhz, flags 0x140 hal flags 0x140) > Feb 21 22:43:33 fuzz kernel: ath0: ath_chan_set: unable to reset channel 48 (5240 Mhz, flags 0x140 hal flags 0x140) > Feb 21 22:43:33 fuzz kernel: ath0: ath_chan_set: unable to reset channel 2 (2417 Mhz, flags 0x480 hal flags 0xc0) > Feb 21 22:43:34 fuzz kernel: ath0: ath_chan_set: unable to reset channel 3 (2422 Mhz, flags 0x480 hal flags 0xc0) > Feb 21 22:43:35 fuzz kernel: ath0: ath_chan_set: unable to reset channel 4 (2427 Mhz, flags 0x480 hal flags 0xc0) Blech, I keep forgetting to add the hal status code to this printf. We need to identify why the reset failed but it's likely a hardware/expresscard issue and not in the driver. Unfortunately I don't have an SRX card (just about every other Ubiquiti cards--thank you Robert--but not this one). > > If I set the interface down and back up without any reloading of modules or > replugging of the card, I get the following error: > > Feb 21 22:45:45 fuzz kernel: ath0: unable to reset hardware; hal status 3227908992 This is odd, the status code should be in the range 1-15. > > I am not able to reproduce this reliably, however, setting chanlist to 1-48 > (or less) seems to stop it from happening. Scanning above channel 48 and the > errors start again (sometimes). Any ideas? Not really. I don't see a mac+phy for the card or any indication of the hal version you are using and I'm not familiar with the part in this card. > > > The other problem I'm having is that scanning behaves differently depending > on when wlan_scan_sta.ko is loaded. If I load it before setting the > interface up, when I set the interface up it begins scanning continuously > by itself. While it's doing this issuing an "ifconfig ath0 scan" doesn't > do anything. However, doing a list scan seems to work and continously gets > updated. > > If I load wlan_scan_sta.ko after setting the interface up, no auto scanning > occurs. If I run "ifconfig ath0 scan" it scans, returns the results, and > stops scanning. > > I have tried with and without bgscan enabled - no difference. Is there > any way of controlling this behaviour? Assuming all this is using the SRX card I'd forget about trying to understand/resolve 802.11 issues until we understand why you're seeing the above problems. Sam