Same problem I have a wi-pi usb wifi dongle which is a RT5370 according to lsusb
ruining headless, no users logged in either, ruining a web server connected over wifi
3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux
Oct 12 2013 22:24:23
Copyright (c) 2012 Broadcom
version 7886c07c77a1caafd1f08448c8fcd9c3895ab5ca (clean) (release)
wifi configured by wpa supplicant
I noticed lots of frequent disconnects in /var/log/messages
adding wireless-power off to /etc/network/interfaces didn't stop
the disconnects although iwconfig was now reporting power off
I did notice dmesg reporting CRDA country code ES which was wrong
that started me down the track at trying to find out why CRDA country code was was wrong. I configured the correct country code in /etc/defaults/crda
run crda , command not found
sudo apt-get install crda,
Code: Select all
COUNTRY environment variable not set.
I don't no why crda is still reporting country environment not set Once installed crda I did notice a big reduction in disconnect messages in /var/log/messages. With wifi disconnected dmesg now reports the connect country code
strangely with the wifi dongle connected but unconfigured by wpa supplicant iw reg get
reports the correct country code and iwconfig shows the correct power level
for the CDRA country code
I can change country code at will with iw reg set AU GB US etc. iw reg get reports whatever country code I try
iwconfig reports the changes with different power levels etc for each country.
As soon as wpa supplicant is configured to connect to the existing wireless AP dmesg reports country CRDA code has changed to ES and iwconfig
confirms it's changed. If I try to change country code back to the correct setting using iw reg set, the country code changes to 98 (confirmed with iw reg get) and changes to country code 00 on subsequent attempts no matter what iw reg set country code is used. Only a reboot seems to clear this.
I don't know what's going on with that, why the country code is reverting to ES when wpa supplicant connects to the wireless AP perhaps the dongle or wifi driver itself
Before installing crda and setting my correct country code in /etc/default/crda
I was getting very frequent wifi CTRL-EVENT-DISCONNECTED messages in /var/log/messages
and the wifi would eventually stop all together at random times sometimes within days or weeks.
It's to early to say if installing crda has fixed the problem altogether but it certainly seems to have reduced the disconnect messages. I am running a cron script to restart the wifi if it can't ping the router.