On Mon, Nov 03, 2014 at 01:13:40AM +0100, Stefan Krüger wrote: > Hi, > > I have a PC Engines APU board with a Compex WLE200NX miniPCI-e wifi card > running in hostap mode (11g). > > root@apu:/var/log # dmesg | grep athn0 > athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 19 > athn0: AR9280 rev 2 (2T2R), ROM rev 22, address xx:xx:xx:xx:xx:xx > root@apu:/var/log # ifconfig athn0 > athn0: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500 > lladdr xx:xx:xx:xx:xx:xx > priority: 4 > groups: wlan > media: IEEE802.11 autoselect mode 11g hostap > status: active > ieee80211: nwid obsd chan 7 bssid xx:xx:xx:xx:xx:xx wpakey 0x... > wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp > powersave on (100ms sleep) > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > > It's rather unstable though: > > root@apu:/var/log # zgrep "athn0: device" messages* > messages:Nov 3 01:08:40 apu /bsd: athn0: device timeout > messages:Nov 2 00:41:22 apu /bsd: athn0: device timeout > messages:Nov 2 02:20:06 apu /bsd: athn0: device timeout > messages:Nov 2 03:11:03 apu /bsd: athn0: device timeout > messages:Nov 2 19:56:36 apu /bsd: athn0: device timeout > messages.0.gz:Oct 26 22:06:44 apu /bsd: athn0: device timeout > messages.0.gz:Oct 27 02:17:05 apu /bsd: athn0: device timeout > messages.0.gz:Oct 31 11:10:40 apu /bsd: athn0: device timeout > messages.0.gz:Oct 31 20:48:43 apu /bsd: athn0: device timeout > messages.0.gz:Nov 1 13:48:04 apu /bsd: athn0: device timeout > messages.2.gz:Oct 14 18:26:52 apu /bsd: athn0: device timeout > messages.3.gz:Oct 12 20:35:53 apu /bsd: athn0: device timeout > > I also see constant increasing error counters (even if there's no traffic > visible via tcpdump): > > root@apu:/var/log # netstat -i -I athn0 5 > athn0 in athn0 out total in total out > packets errs packets errs colls packets errs packets errs colls > 1190195 171127 2642652 4337 0 10759655 171127 8935403 4337 0 > 265 8 1096 0 0 2675 8 1845 0 0 > 129 14 826 0 0 2011 14 1323 0 0 > 630 15 1923 0 0 4696 15 3403 0 0 > 322 14 894 0 0 2319 14 1738 0 0 > 586 18 1244 0 0 3658 18 2956 0 0 > 404 14 437 0 0 2021 14 1916 0 0 > 15 40 13 0 0 548 40 538 0 0 > > Anyone else seeing this? Any idea how I could fix this? > > Thanks. > > PS: OpenBSD 5.6 amd64, bsd is bsd.mp
Can you check which error counters go up as per 'netstat -W athn0'? That could provide some more specific detail. I'm seeing some input errors on my AP too but they're just noise and don't cause any disruption: @@ -17,7 +17,7 @@ 0 input packets with elements too big 49 input packets with elements too small 0 input packets with invalid channel - 17542137 input packets with mismatched channel + 17544585 input packets with mismatched channel Some errors are harmless and even expected. 2.4Ghz radio is a shared medium many overlapping channels and usually has too many users unless you're living somewhere in the woods. If the AP recovers from timeouts without manual intervention and your usage of the AP is not significantly disrupted then I don't think this is worth spending any of your or anyone else's time on -- there are much worse problems in the wifi stack that need fixing. Perhaps changing the channel, asking your neighbours to switch their APs off, or coating walls to neighbouring houses or appartments with tinfoil will improve things a bit.