On 03/20/2012 04:49 PM, Patrick Shanahan wrote:
* Patrick Shanahan
[03-20-12 12:03]: * 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 ????
That should be if you start the whole thing with "while [ 1 ] ; do" and end with "done". In addition, it should not take 30 sec between the unload and the following reload. In addition, you have a typo in the load statement. I was merely asking "Is it necessary to reboot, or does the unload/load work too?" The reason is that some conditions in the device are not reset with the module unload/reload and require a reboot. I wanted to know which condition applied here. Larry -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org