alex1491163117 / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Insure interface is up before launching 'hostapd' #1477

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)? DROID 2 Global

Which firmware is installed? CM7
http://rootzwiki.com/topic/3069-dev-threaddroid-2-global-cm7-with-gingerbread-le
ak-kernel/
http://goo.im/roms/RandPooka/Pooka-CM4D2we-GB-20120330.zip

What version of wireless tether are you using?
http://code.google.com/p/android-wifi-tether/downloads/detail?name=wifi_tether_v
3_1-beta11.apk

What steps will reproduce the problem?
1. Startup Tethering (Usually works the first time)
2. Shutdown Tethering
3. Startup Tethering (Usually fails, subsequent attempts usually fail as well).

What is the expected output? What do you see instead?
Tethering should start successfully every time.  When it fails, the log 
indicates that the startup of "Hostapd failed".

Please provide any additional information below.
I modified the the "tether.edify" script to insert a "sleep("1");" between 
bringing up the interface and launching hostapd.  I was unable to get it to 
fail after that.  Ideally, the script would verify that the interface was up 
before attempting to launch 'hostapd'.

Original issue reported on code.google.com by nlhin...@gmail.com on 9 Apr 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Issues 1438 and 971 refer to a similar issue.

Original comment by nlhin...@gmail.com on 11 Apr 2012 at 7:59

GoogleCodeExporter commented 9 years ago

Original comment by harald....@gmail.com on 11 Apr 2012 at 3:45

GoogleCodeExporter commented 9 years ago
Will add the sleep in next beta-version. I'm currently pretty busy with other 
stuff ... will keep the interface-check in my mind.

Original comment by harald....@gmail.com on 19 Apr 2012 at 9:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The sleep seems to work fine, and is very low risk.  I can test once the script 
is updated.

Thanks,

Nathan

Original comment by nlhin...@gmail.com on 20 Apr 2012 at 2:25

GoogleCodeExporter commented 9 years ago
Hi nathan.
The additional sleep is now in beta13.
Thanks for posting this issue.

Original comment by harald....@gmail.com on 21 Apr 2012 at 12:03

GoogleCodeExporter commented 9 years ago
Wiped data, then installed beta14.  Seems to be working fine now.

Original comment by nlhin...@gmail.com on 25 Apr 2012 at 6:51