<div dir="ltr"><div>Howdy,<br><br></div>Giving you a heads up about a problem I've encountered on UBNT Nanostation Loco M2, Nanostation M5, and TP-Link TL-MR3020.  WLAN Slovenija also saw it on other TP-Link products.  Good chance Commotion-OpenWRT might be seeing this driver freeze, too.<br>

<br>Under heavy load conditions, the ath9k driver bundled with recent versions of AA may freeze, and all broadcast SSIDs disappear.  For me, this was also causing additional weird side-effects like hostapd/wpa_supplicant crashing, and olsrd complaining "<span style="color:rgb(0,0,0);font-family:arial,sans,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none"> OLSR: sendto IPv4 Resource temporarily unavailable," depending on which vif happened to lock up.</span> <div>

<div><div><div><div><div><br></div><div>The lockup does appear to correlate well with heavy traffic load, i.e. never see this problem on nodes with very light traffic.  Also, it's very intermittent.  Nodes with a weekly reboot schedule might see this lockup a couple times a month or so, in my experience.<br>

</div><div><br></div><div>This is the ticket filed in OpenWRT issue queue:<br><a href="https://dev.openwrt.org/ticket/13681">https://dev.openwrt.org/ticket/13681</a><br><br></div><div>This is the updated version of mac80211 and hostapd which nbd has offered to address the driver lockup issue under AA.  I've reflashed my affected problem nodes over the past couple weeks (AA r39154), and so far so good.  I presume these versions will eventually be backported into AA.<br>

</div><div><a href="http://nbd.name/gitweb.cgi?p=aa-mac80211.git;a=summary">http://nbd.name/gitweb.cgi?p=aa-mac80211.git;a=summary</a><br><br></div><div>Finally, this is the script from WLAN Slovenija to detect the freeze and trigger a reboot.  I've incorporated this script as-is in WasabiNet firmware for Nanostation Loco M2s and the TL-MR3020s.<br>

</div><div><a href="https://github.com/wlanslovenija/firmware-packages-opkg/blob/master/util/nodewatcher-watchdog/files/check_ath9k_freeze">https://github.com/wlanslovenija/firmware-packages-opkg/blob/master/util/nodewatcher-watchdog/files/check_ath9k_freeze</a><br>

<br></div><div>For Nanostation M5s, the string the check for is "qdepth: 0 ampdu-depth: 0 pending: 124 stopped: 1".<br></div><div><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br>

<a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>314-246-9434<br></div>
</div></div></div></div></div></div></div>