[FS#13] Ath9k AP stays up for connected clients but doesn't show in scan on new ones

LEDE Bugs lede-bugs at lists.infradead.org
Tue Dec 27 08:44:10 PST 2016


The following task has a new comment added:

FS#13 - Ath9k AP stays up for connected clients but doesn't show in scan on new ones
User who did this - IronicSven (IronicSven)

----------
Hi Felix,

the wifi still stops working and disappears on my 1043nd with the latest snapshot.

I tried to debug it last weekend and discovered it only happens under a few seconds of high load. Therefore I can trigger it with iperf.

I just build an image from https://git.lede-project.org/source.git with ath debugging enabled and this is what I captured:


root at FlensNet:~# uci set wireless.radio0.log_level=0
root at FlensNet:~# uci commit wireless
root at FlensNet:~# wifi up
root at FlensNet:~# echo 0x00000409 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug
root at FlensNet:~# logread -f

# now I start iperf

Tue Dec 27 17:15:39 2016 kern.debug kernel: [  113.787634] ath: phy0: NF calibrated [ctl] [chain 0] is -90
Tue Dec 27 17:15:39 2016 kern.debug kernel: [  113.793249] ath: phy0: NF calibrated [ctl] [chain 1] is -87
Tue Dec 27 17:15:39 2016 kern.debug kernel: [  113.798867] ath: phy0: NF calibrated [ctl] [chain 2] is -86
Tue Dec 27 17:16:09 2016 kern.debug kernel: [  143.797558] ath: phy0: NF calibrated [ctl] [chain 0] is -89
Tue Dec 27 17:16:09 2016 kern.debug kernel: [  143.803192] ath: phy0: NF calibrated [ctl] [chain 1] is -88
Tue Dec 27 17:16:09 2016 kern.debug kernel: [  143.808830] ath: phy0: NF calibrated [ctl] [chain 2] is -85
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.807130] ath: phy0: tx hung, resetting the chip
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.818006] ath: phy0: Failed to stop TX DMA, queues=0x002!
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.830165] ath: phy0: NF calibrated [ctl] [chain 0] is -90
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.835773] ath: phy0: NF calibrated [ctl] [chain 1] is -86
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.841418] ath: phy0: NF calibrated [ctl] [chain 2] is -87
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.847021] ath: phy0: reset MAC via external reset
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.902661] ath: phy0: ah->misc_mode 0xc
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.909136] ath: phy0: enabling IQ Calibration
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.913602] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:16:26 2016 kern.debug kernel: [  159.918872] ath: phy0: Setting CFG 0x10a
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  160.937114] ath: phy0: tx hung, resetting the chip
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  160.948101] ath: phy0: NF calibrated [ctl] [chain 0] is -87
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  160.953716] ath: phy0: NF calibrated [ctl] [chain 1] is -87
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  160.959372] ath: phy0: NF calibrated [ctl] [chain 2] is -84
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  160.995701] ath: phy0: ah->misc_mode 0xc
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  161.002169] ath: phy0: enabling IQ Calibration
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  161.006631] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:16:27 2016 kern.debug kernel: [  161.011903] ath: phy0: Setting CFG 0x10a
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.027114] ath: phy0: tx hung, resetting the chip
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.032452] ath: phy0: NF calibrated [ctl] [chain 0] is -89
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.038108] ath: phy0: NF calibrated [ctl] [chain 1] is -86
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.043708] ath: phy0: NF calibrated [ctl] [chain 2] is -85
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.080043] ath: phy0: ah->misc_mode 0xc
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.086484] ath: phy0: enabling IQ Calibration
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.090978] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:16:28 2016 kern.debug kernel: [  162.096225] ath: phy0: Setting CFG 0x10a

# about now iperf hangs and the wifi symbol on my android device disappears

Tue Dec 27 17:16:58 2016 kern.debug kernel: [  192.096793] ath: phy0: 0: Chn 0 pmi=0x000c8415;pmq=0x000a4731;iqcm=0x00002272;
Tue Dec 27 17:16:58 2016 kern.debug kernel: [  192.104070] ath: phy0: 0: Chn 1 pmi=0x000a4d43;pmq=0x0009537b;iqcm=0x00006dfd;
Tue Dec 27 17:16:58 2016 kern.debug kernel: [  192.111352] ath: phy0: 0: Chn 2 pmi=0x0009cd18;pmq=0x00090419;iqcm=0xffff8061;
Tue Dec 27 17:16:58 2016 kern.debug kernel: [  192.118615] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:16:59 2016 kern.debug kernel: [  193.116761] ath: phy0: 1: Chn 0 pmi=0x002bc89c;pmq=0x001a2fdf;iqcm=0xfffe3b89;
Tue Dec 27 17:16:59 2016 kern.debug kernel: [  193.124030] ath: phy0: 1: Chn 1 pmi=0x0020d8ad;pmq=0x001f60fd;iqcm=0x000658ad;
Tue Dec 27 17:16:59 2016 kern.debug kernel: [  193.131310] ath: phy0: 1: Chn 2 pmi=0x00162d15;pmq=0x001f0b19;iqcm=0xfffe1ff1;
Tue Dec 27 17:16:59 2016 kern.debug kernel: [  193.138578] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:17:04 2016 kern.debug kernel: [  198.436702] ath: phy0: 2: Chn 0 pmi=0x003587c7;pmq=0x002390be;iqcm=0xfffe079e;
Tue Dec 27 17:17:04 2016 kern.debug kernel: [  198.443976] ath: phy0: 2: Chn 1 pmi=0x002afd77;pmq=0x00289f9a;iqcm=0x00066de2;
Tue Dec 27 17:17:04 2016 kern.debug kernel: [  198.451265] ath: phy0: 2: Chn 2 pmi=0x003633fd;pmq=0x003e9e1f;iqcm=0xfffda432;
Tue Dec 27 17:17:04 2016 kern.debug kernel: [  198.458533] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:17:07 2016 kern.debug kernel: [  201.056653] ath: phy0: 3: Chn 0 pmi=0x0040e147;pmq=0x002b71ed;iqcm=0xfffd09c2;
Tue Dec 27 17:17:07 2016 kern.debug kernel: [  201.063932] ath: phy0: 3: Chn 1 pmi=0x002c7c11;pmq=0x002a384d;iqcm=0x0006e5b0;
Tue Dec 27 17:17:07 2016 kern.debug kernel: [  201.071211] ath: phy0: 3: Chn 2 pmi=0x00376cae;pmq=0x004011a0;iqcm=0xfffdccab;
Tue Dec 27 17:17:07 2016 kern.debug kernel: [  201.078476] ath: phy0: starting IQ Mismatch Calibration
Tue Dec 27 17:17:08 2016 kern.debug kernel: [  201.876642] ath: phy0: 4: Chn 0 pmi=0x004acdd9;pmq=0x00345105;iqcm=0xfffcde5a;
Tue Dec 27 17:17:08 2016 kern.debug kernel: [  201.883919] ath: phy0: 4: Chn 1 pmi=0x0035ff9c;pmq=0x00325ce8;iqcm=0x0006fda4;
Tue Dec 27 17:17:08 2016 kern.debug kernel: [  201.891208] ath: phy0: 4: Chn 2 pmi=0x003ccf87;pmq=0x0045b01c;iqcm=0xfffda1a7;


I hope this helps.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=13#comment1105



More information about the lede-bugs mailing list