#18130: wlan stops working after random time
------------------------+------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by bittorf@…):

 i have the same issue on TP-LINK TL-WR1043ND with r42884.
 i use adhoc+ap on one radio - adhoc is working fine in this situation,
 only 1 message in klog:

 {{{
 [39466.900000] ath: phy0: Failed to stop TX DMA, queues=0x004!
 }}}

 the router can hear other stations/laptops end responds for DHCP-requests
 but the laptops dont receive them. restarting dnsmasq does not help, but
 doing a 'wifi' - everything works normal again.

 {{{
 Thu Oct 16 17:02:20 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:20 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:23 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:23 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:25 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:25 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:02:49 2014 daemon.info hostapd: wlan0-1: STA
 00:21:6a:32:7c:1c IEEE 802.11: authenticated
 Thu Oct 16 17:02:49 2014 daemon.info hostapd: wlan0-1: STA
 00:21:6a:32:7c:1c IEEE 802.11: associated (aid 2)
 Thu Oct 16 17:02:50 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPREQUEST(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:02:50 2014 daemon.info dnsmasq-dhcp[2456]: DHCPACK(wlan0-1)
 10.63.22.67 00:21:6a:32:7c:1c X301
 Thu Oct 16 17:02:53 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPREQUEST(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:02:53 2014 daemon.info dnsmasq-dhcp[2456]: DHCPACK(wlan0-1)
 10.63.22.67 00:21:6a:32:7c:1c X301
 Thu Oct 16 17:02:57 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPREQUEST(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:02:57 2014 daemon.info dnsmasq-dhcp[2456]: DHCPACK(wlan0-1)
 10.63.22.67 00:21:6a:32:7c:1c X301
 Thu Oct 16 17:03:02 2014 user.notice root: debug: phy: phy0 interval: 60
 avg: 64 avg_overall: 58 change: -9%
 Thu Oct 16 17:03:05 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:05 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:07 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:07 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:16 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:16 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:03:30 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:03:30 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:03:32 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:03:32 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:03:34 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:03:34 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:02 2014 user.notice root: debug: phy: phy0 interval: 60
 avg: 62 avg_overall: 59 change: -4%
 Thu Oct 16 17:04:13 2014 daemon.info hostapd: wlan0-1: STA
 00:21:6a:32:7c:1c IEEE 802.11: authenticated
 Thu Oct 16 17:04:13 2014 daemon.info hostapd: wlan0-1: STA
 00:21:6a:32:7c:1c IEEE 802.11: associated (aid 2)
 Thu Oct 16 17:04:13 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPREQUEST(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:04:13 2014 daemon.info dnsmasq-dhcp[2456]: DHCPACK(wlan0-1)
 10.63.22.67 00:21:6a:32:7c:1c X301
 Thu Oct 16 17:04:17 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPREQUEST(wlan0-1) 10.63.22.67 00:21:6a:32:7c:1c
 Thu Oct 16 17:04:17 2014 daemon.info dnsmasq-dhcp[2456]: DHCPACK(wlan0-1)
 10.63.22.67 00:21:6a:32:7c:1c X301
 Thu Oct 16 17:04:39 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:39 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:41 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:41 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:42 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:42 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:04:44 2014 authpriv.info dropbear[10655]: Child connection
 from 10.63.48.65:34334
 Thu Oct 16 17:04:48 2014 authpriv.notice dropbear[10655]: Password auth
 succeeded for 'root' from 10.63.48.65:34334
 Thu Oct 16 17:05:02 2014 user.notice root: debug: phy: phy0 interval: 60
 avg: 60 avg_overall: 59 change: -1%
 Thu Oct 16 17:05:48 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:05:48 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:05:50 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:05:50 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:05:52 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) ac:18:26:ee:4e:ac
 Thu Oct 16 17:05:52 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.80 ac:18:26:ee:4e:ac
 Thu Oct 16 17:06:02 2014 user.notice root: debug: phy: phy0 interval: 60
 avg: 59 avg_overall: 59 change: 0%
 Thu Oct 16 17:06:11 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: authenticated
 Thu Oct 16 17:06:11 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: associated (aid 2)
 Thu Oct 16 17:06:11 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: disassociated
 Thu Oct 16 17:06:12 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: authenticated
 Thu Oct 16 17:06:12 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: associated (aid 2)
 Thu Oct 16 17:06:19 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:19 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.88 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:23 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:23 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.88 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:40 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:40 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.88 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:42 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: disassociated
 Thu Oct 16 17:06:42 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: authenticated
 Thu Oct 16 17:06:42 2014 daemon.info hostapd: wlan0-1: STA
 78:d6:f0:45:eb:55 IEEE 802.11: associated (aid 2)
 Thu Oct 16 17:06:43 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:43 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.88 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:50 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPDISCOVER(wlan0-1) 78:d6:f0:45:eb:55
 Thu Oct 16 17:06:50 2014 daemon.info dnsmasq-dhcp[2456]:
 DHCPOFFER(wlan0-1) 10.63.22.88 78:d6:f0:45:eb:55
 }}}

 before executing 'wifi', these are the stats:

 {{{
 root@DG-Fries36-Wohnzimmer:~ for W in reset interrupt queues;do for F in
 /sys/kernel/debug/ieee80211/phy*/ath9k/$W; do echo "### $F"; cat $F; d
 one; done
 ### /sys/kernel/debug/ieee80211/phy0/ath9k/reset
     Baseband Hang:  0
 Baseband Watchdog:  0
    Fatal HW Error:  0
       TX HW error:  0
  Transmit timeout:  0
      TX Path Hang:  1
       PLL RX Hang:  0
          MAC Hang:  0
      Stuck Beacon:  1
         MCI Reset:  0
 Calibration error:  0
 ### /sys/kernel/debug/ieee80211/phy0/ath9k/interrupt
                    RX:    5501261
                 RXEOL:          0
                 RXORN:          0
                    TX:    1710078
                 TXURN:          0
                   MIB:          0
                 RXPHY:          0
                 RXKCM:          0
                  SWBA:    3649303
                 BMISS:          0
                   BNR:          0
                   CST:       5017
                   GTT:          0
                   TIM:          0
                CABEND:          0
              DTIMSYNC:          0
                  DTIM:          0
                TSFOOR:          0
                   MCI:          0
              GENTIMER:          0
                 TOTAL:    9798722
 SYNC_CAUSE stats:
              Sync-All:          0
               RTC-IRQ:          0
               MAC-IRQ:          0
 EEPROM-Illegal-Access:          0
           APB-Timeout:          0
     PCI-Mode-Conflict:          0
           HOST1-Fatal:          0
            HOST1-Perr:          0
        TRCV-FIFO-Perr:          0
           RADM-CPL-EP:          0
   RADM-CPL-DLLP-Abort:          0
    RADM-CPL-TLP-Abort:          0
     RADM-CPL-ECRC-Err:          0
      RADM-CPL-Timeout:          0
     Local-Bus-Timeout:          0
             PM-Access:          0
             MAC-Awake:          0
            MAC-Asleep:          0
      MAC-Sleep-Access:          0
 ### /sys/kernel/debug/ieee80211/phy0/ath9k/queues
 (VO):  qnum: 0 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
 (VI):  qnum: 1 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
 (BE):  qnum: 2 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
 (BK):  qnum: 3 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
 (CAB): qnum: 8 qdepth:  0 ampdu-depth:  0 pending:   0 stopped: 0
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18130#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to