* Patrick Shanahan
* Larry Finger
[03-20-12 10:47]: Do you mean the unloading/reloading the ath5k module does not restore wireless?
modprobe -r ath5k will drop wireless connection modprobe ath5k; ifup wlan0 will restore wireless connection
cannot say if this works when "ath5k phy0: gain calibration timeout" is encountered, but will advise.
then next would be a script to detect the timeout and initiate the unloading/loading and initialization of the wireless connection. I can handle the latter, how do I detect a *new* timeout?
OK, have written a script and added it to /etc/init.d/after.local //////////////////////////////////////////////////////////////////// #!/bin/bash TIM=$(grep ath5k.*timeout /var/log/messages|tail -n 1) sleep 600 TIM1=$(grep ath5k.*timeout /var/log/messages|tail -n 1) while [ "$TIM" = "$TIM1" ]; do sleep 600 TIM1=$(grep ath5k.*timeout /var/log/messages|tail -n 1) done modprobe -r ath5k sleep 30 modeprobe ath5k ifup wlan0 //////////////////////////////////////////////////////////////////// is this sufficient ???? tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org