Return-path: Received: from stinky.trash.net ([213.144.137.162]:46478 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754358AbXJLEvM (ORCPT ); Fri, 12 Oct 2007 00:51:12 -0400 Message-ID: <470EFD24.7020206@trash.net> (sfid-20071012_055127_308188_720B444F) Date: Fri, 12 Oct 2007 06:50:44 +0200 From: Patrick McHardy MIME-Version: 1.0 To: Frank de Lange CC: linux-wireless@vger.kernel.org Subject: Re: [Oops] EIP is at ath5k_hw_reset+0x391/0xc82 [ath5k] (2.6.23, latest wireless git) References: <20071011230030.GA6725@unternet.org> In-Reply-To: <20071011230030.GA6725@unternet.org> Content-Type: multipart/mixed; boundary="------------050101050905090803070709" Sender: linux-wireless-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------050101050905090803070709 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Frank de Lange wrote: > Just got an Atheros-based card from eBay, stuffed it into my Thinkpad > T23 (ignoring the complaints about two ethernet cards being installed) > and got myself this Oops: > > BUG: unable to handle kernel NULL pointer dereference at virtual address > 00000000 > [...] > CPU: 0 > Not tainted VLI > EFLAGS: 00010246 (2.6.23-t23-01 #3) > EIP is at ath5k_hw_reset+0x391/0xc82 [ath5k] I had the same Oops with the internal card of a Thinkpad T42. The reason is that the rate table lookup for MODE_ATHEROS_TURBOG returns NULL because the capability bit is not set. I haven't tracked down the cause yet, but this patch fixes the Oops for me. On a related issue, the same card can receive packets fine, but all packets sent are received with the first 16 bytes of ethernet and IP header missing (the remaining data is fine). I didn't find the cause for this either, the packet appears to be fine up to the tx function. Anyone have a hint where to continue looking? Could this be related to the missing capability bit and an incorrect rate table being used? lspci -vvv: 02:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) Subsystem: AMBIT Microsystem Corp. Unknown device 0408 Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- ah_capabilities.cap_mode)) return NULL; - +#endif /* Get rate tables */ switch (mode) { case MODE_IEEE80211A: --------------050101050905090803070709--