From: Peter Stuge Date: Sun, 20 Dec 2009 13:57:45 +0100 Subject: [ath9k-devel] No probe response from AP after 500ms, disconnecting. In-Reply-To: <8e92b4100912182103n5e3402echbedb85ab62f28e57@mail.gmail.com> References: <20091216172356.15849.qmail@stuge.se> <20091216174112.GD11461@tux> <20091216222157.28840.qmail@stuge.se> <20091216234308.GA425@tux> <20091218115708.14617.qmail@stuge.se> <20091218161854.GA6231@tux> <20091218200753.30718.qmail@stuge.se> <8e92b4100912182103n5e3402echbedb85ab62f28e57@mail.gmail.com> Message-ID: <20091220125745.8234.qmail@stuge.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Vivek Natarajan wrote: > > So what could give us more information? > > If the issue is specific to AR5416 and power save, I don't think it is. Tonight I saw the problem a third time using wireless-testing with power management off for the interface. This time I also had Sujith's 6 patches from 2009-12-14 applied. 5k lines of debug=0xffffffff log is available at: http://stuge.se/ath9kdisconn3_wltest+sujith.txt > then the TIM_TIMER interrupt might be causing the trouble. You can > check whether any ATH9K_INT_TIM_TIMER interrupt is received in the > ath_isr when the disconnection happens. I added status debugging to the isr as such: --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -587,6 +587,11 @@ irqreturn_t ath_isr(int irq, void *dev) * value to insure we only process bits we requested. */ ath9k_hw_getisr(ah, &status); /* NB: clears ISR too */ + printk(KERN_INFO "ath: ath_isr status=%08x imask=%08x wecare=%08x", + status, sc->imask, status & sc->imask); + if (status & ATH9K_INT_TIM_TIMER) + printk(" INT_TIM_TIMER"); + printk("\n"); status &= sc->imask; /* discard unasked-for bits */ Reloaded the module brought up my networking and manually enabled power management on the interface, since that exhibits the problem quickly. A few minutes later I had a new debug=0xffffffff log which is available here: http://stuge.se/ath9kdisconn4_wltest+sujith_isrdebug.txt ATH9K_INT_TIM_TIMER is 0x100 and it may be noteworth that after 413479.000031 "detected beacon loss from AP - sending probe request" the next time INT_TIM_TIMER is set, at 413479.378293, it is masked off by sc->imask. Could that be part of the problem? > This is the hw timer used by the chip to wakeup for every beacon > listen interval. Thank you for the pointer! //Peter