View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#263
Another small "working sometimes, not always" report.

Sometimes when I shut down wlan and interface is still connected, after enabling again wlancond is not recognizing any WiFi network at all.
Manually disabling and enabling again solves.

So I investigated a bit and I have a solution for me:
I added a 3 seconds sleep just as first command in /usr/bin/advifsw/wlan_down.sh to let icd do it's disconnection work (1s was just not enough, so I choose 3s).

Here is the diff:
Code:
~ $ diff /usr/bin/advifsw/wlan_down*
--- /usr/bin/advifsw/wlan_down.sh
+++ /usr/bin/advifsw/wlan_down___sh.ori
@@ -1,8 +1,6 @@
 #!/bin/sh
-sleep 3; #peterleinchen, need some time to disconnect properly
 ifconfig wlan0 0.0.0.0
 ifconfig wlan0 down
 sleep 1
-#sudo stop wlancond
-stop wlancond; #peterleinchen, added wlan search stop
+stop wlancond
 /usr/bin/advifsw/exec.sh ./post-down
Now it works always reliably.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post: