From owner-freebsd-mobile Mon Feb 24 11:26:24 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59B2037B401 for ; Mon, 24 Feb 2003 11:26:21 -0800 (PST) Received: from iam.losingtime.net (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 488B243F75 for ; Mon, 24 Feb 2003 11:26:13 -0800 (PST) (envelope-from gm@iam.losingtime.net) Received: from kreutzer.dom (localhost.dom [127.0.0.1]) by iam.losingtime.net (8.12.6/8.12.6) with ESMTP id h1OJRFoI033723; Mon, 24 Feb 2003 11:27:16 -0800 (PST) (envelope-from gm@kreutzer.dom) Received: (from gm@localhost) by kreutzer.dom (8.12.6/8.12.6/Submit) id h1OJR87o033722; Mon, 24 Feb 2003 11:27:08 -0800 (PST) Date: Mon, 24 Feb 2003 11:27:07 -0800 From: Geoff Morrison To: Michael Bretterklieber Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: WaveLAN problems (wicontrol: SIOCGWAVELAN: Invalid argument) Message-ID: <20030224192707.GA33609@kreutzer.dom> References: <3E548583.3080108@jawa.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E548583.3080108@jawa.at> User-Agent: Mutt/1.4i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Feb 20, 2003 at 08:36:35AM +0100, Michael Bretterklieber wrote: > I have a Netgear MA401 PCCard. The system recognizes the card, but after > typeing ... > bash-2.05a# wicontrol [...] > Comms quality/signal/noise: [ 0 0 0 ] > wicontrol: SIOCGWAVELAN: Invalid argument I'm seeing the same behavior with an internal WaveLAN MiniPCI card in a Vaio VX89, running -CURRENT from Feb 9. I noticed the same behavior on prior versions of -CURRENT, but RELENG_5_0 works just fine. The RIDs that cause the above error are: WI_RID_DBM_COMMS_QUAL WI_RID_PRI_IDENTITY WI_RID_STA_IDENTITY WI_RID_CARD_ID WI_RID_REG_DOMAINS All of these are present and work in RELENG_5_0; in fact, I see no problems at all in RELENG_5_0 (well, none related to the wifi). Now for the bizarre part: when poking around in -CURRENT today to get the above list, I ran 'dhclient fxp0' to try to recall the diffs I'd made to get wicontrol to work (namely, commenting out the above RIDs). I promptly got a series of the following messages: wi0: timeout in wi_cmd 0x0002; event status 0x0080 wi0: timeout in wi_cmd 0x0000; event status 0x0080 wi0: wi_cmd: busy bit won't clear. wi0: wi_cmd: busy bit won't clear. [...] wi0: wi_cmd: busy bit won't clear. wi0: init failed wi0: wi_cmd: busy bit won't clear. wi0: wi_cmd: busy bit won't clear. [...] wi0: wi_cmd: busy bit won't clear. wi0: failed to allocate 2372 bytes on NIC wi0: tx buffer allocation failed (error 12) wi0: interface not running During this time, the console was completely unresponsive, including the key lock lights; even the 'Wireless' light on the front was unresponsive to the wireless switch on the side. After a while (didn't time it, sorry), the console came back to life, and syslog reported dhclient: send_packet: network is down This message repeated a few times; wicontrol gave an 'Operation timed out' message before printing anything, and ifconfig took a long time to run and gave output interspersed with 'busy bit won't clear' messages. However, and this is the strange (to me) part, once I killed dhclient, ifconfig worked, wicontrol worked (including the RIDs mentioned above), and I no longer saw the busy bit messages. The card seemed to respond to commands; I could assign it an IP, although I couldn't check if it acually worked because I don't have wireless here. I'll test that later today, when I'm near an AP; I'll also file a PR once I get a more recent -CURRENT built. Then it's on to probing into the wonders of ACPI. Relevant bits of dmesg from -CURRENT, with verbose boot: wi0: at port 0x100-0x13f irq 9 function 0 config 1 on pccard1 pcib1: device wi0 requested decoded I/O range 0x100-0x13f pcib1: device pccard1 requested decoded I/O range 0x100-0x13f pcib1: device wi0 requested decoded I/O range 0x100-0x13f wi0: 802.11 address: 00:02:2d:59:6f:98 wi0: using Lucent Embedded WaveLAN/IEEE wi0: Lucent Firmware: Station (6.16.1) wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps wi0: bpf attached wi0: bpf attached Hopefully that'll be enough detail to allow someone who knows a bit more about this than myself to understand the problem a bit more. -- Geoff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message