From: Peter Stuge Date: Sat, 16 Jan 2010 05:05:51 +0100 Subject: [ath9k-devel] No probe response from AP after 500ms, disconnecting. In-Reply-To: <19277.25525.360201.408454@gargle.gargle.HOWL> References: <20091216234308.GA425@tux> <20091218115708.14617.qmail@stuge.se> <20091218161854.GA6231@tux> <20091218200753.30718.qmail@stuge.se> <8e92b4100912182103n5e3402echbedb85ab62f28e57@mail.gmail.com> <20091220125745.8234.qmail@stuge.se> <20100111150339.21118.qmail@stuge.se> <4B4B4F8F.5050807@openwrt.org> <20100111164903.9039.qmail@stuge.se> <19277.25525.360201.408454@gargle.gargle.HOWL> Message-ID: <20100116040551.25494.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 Sujith wrote: > > In any case I would love to debug this from the bottom and up. > > Can you upgrade to the latest wireless-testing kernel ? No problem - I did so yesterday. The last commit I have is: commit a30ce7f35fbb5643b1e67051b55fb874ed19936a Merge: e384cc6 7284ce6 Author: John W. Linville Date: Wed Jan 13 11:23:51 2010 -0500 Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $ uname -r 2.6.33-rc4-wl This includes Felix Fietkau's patch which checks for missed error codes in the tx status, which I experience another issue with, but I believe that is unrelated. (The rate is very unstable and TCP RTT suffers, with noticable impact on interactive connections.) I booted the new kernel last night, enabled power management (which will usually lead to a disconnect quickly) and ran ping -f for a fairly long time: --- 192.168.5.1 ping statistics --- 23441260 packets transmitted, 23437392 received, 0% packet loss, time 45608941ms rtt min/avg/max/mdev = 1.022/1.976/4171.631/10.415 ms, pipe 190, ipg/ewma 1.945/87.697 ms 3868 ping replies out of 23.4 million were lost. Encouraging but not ideal. This is not a very noisy environment, with 4 other APs in range; mine and another on channel 1, others on 6 and 11. If I revert Felix' commit 5b479a07 the number of lost packets might go down. I will test that and report in a separate thread. After stopping the ping I disabled power management for a while and read email on a remote host. So far no disconnect. Then I enabled power management again, and started streaming an internet radio station over TCP. Within a few minutes there was a disconnect. Then I disabled power management and have now been listening to the stream for 4? hours without AP disconnect. (I have needed to restart the stream once, but I think that's because of the changing rate, related to Felix' patch.) > RX errors can be seen in the 'recv' debugfs file. This is from shortly after the disconnect: # grep -v ': *0$' recv CRC ERR : 3163 PHY ERR : 18 LENGTH : 18 And now: # grep -v ': *0$' recv CRC ERR : 3249 PHY ERR : 20 LENGTH : 20 > The contents of 'rcstat' and 'interrupt' would also be useful. These are from now, unfortunately I did not look at these around the time of the disconnect. # cat rcstat HT MCS Rate Success Retries XRetries PER 1.0: 362456 297267 60600 100 2.0: 329726 764191 237458 87 5.5: 218655 549660 188111 100 11.0: 193089 400518 122522 66 6.0: 0 0 0 0 9.0: 0 0 0 0 12.0: 11502 63178 45627 65 18.0: 6536 19554 7523 43 24.0: 5304 13720 4671 0 36.0: 7234 15586 4956 0 48.0: 520557 68142 6507 0 54.0: 22331583 1823652 15689 0 # grep -v ': *0$' interrupt RX: 24499620 TX: 47898947 MIB: 73328 BMISS: 796 GTT: 4153 TOTAL: 72325765 Thank you for your attention to this! Is there some particular information that you would like me to collect in order to correlate with the interrupt counts? //Peter