Running 4.6 release.

Some time in summer I'd opened a thread about Thinkpad x200 5100 wi-fi nic, of which here is the line from dmesg: iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5100" rev 0x00: apic 1 int 17 (irq 11), MIMO 1T2R, MoW, address <omissis> It turned out that the firmware is not perfect and the nic hangs very often and restarts working only doing an 'ifconfig iwn0 down' and subsequent 'up' (and it seems it has not been fixed in 4.6). I used to restart the nic automatically with this script started in rc.local:

while true; do
ping -v -c 1 -w 1 www.google.com | grep -q "100.0% packet loss"
if [ ${?} -eq 0 ]
then
ifconfig iwn0 down && ifconfig iwn0 up
sleep 3
done &

Every things was fine until yesterday, when, whithout any change from my part on the system, the 'ping' often does not give the 'packet loss' error and just hangs there, so the script (expecting the '100% packet loss') does not work.
Why is ping not givin me the expected error an just hangs there as this?:

~ $ ping -v -c 1 -w 1 www.google.com
(here is a blinking cursor)


Of course, if I at this point do a manual

ifconfig iwn0 down && ifconfig iwn0 up

it then works again.

tks

Reply via email to