rajan72 / android-wifi-tether

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

ad-hoc for Samsung Stratosphere failure #1329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which device (manufacturer, type)?
Samsung Stratosphere
Which firmware is installed?
2.3.5
What version of wireless tether are you using?
3.1 beta 9
What steps will reproduce the problem?
1.install wifi-tether
2.open wifi tether
3.run wifi tether

What is the expected output? What do you see instead?
expect: wifi tether to start normally; 
got:  wifi tether started with errors, please check show log
Please provide any additional information below.

Show Log:
wifi driver... done
activating wifi interface... done
setting ad-hoc... failed
setting essid... done
setting channel... done
enable nat... done
enable ip... done
tethering now running... done

this was done with pkg as-is straight from download and install; upon second 
attempt to initiate wifi tether, driver and channel fail as well. After 
shutdown, wifi adapter shows error and will not connect; must restart phone to 
reconnect wifi

Original issue reported on code.google.com by chronova...@gmail.com on 1 Jan 2012 at 6:56

GoogleCodeExporter commented 9 years ago
will try an earlier version

Original comment by chronova...@gmail.com on 1 Jan 2012 at 7:02

GoogleCodeExporter commented 9 years ago
I noticed there was an earilier post on this topic(sorry) oh well; it was noted 
that wifi actually worked under these conditions with version 3.1 beta 7, and 
2.0.7 so I tried those:

no joy

got the same condition as noted above with one exception:  after shutting down 
app, wifi reconnected with no trouble on both versions.

Original comment by chronova...@gmail.com on 1 Jan 2012 at 11:00

GoogleCodeExporter commented 9 years ago
I have the same issue, including the version and the wifi failure. I tried both 
versions (3.1beta 7 and 2.0.7)
Someone posted this:
"Copy iptables_armv5 from the Droidwall program. (The current one was spitting 
out errors.) Edit tether.edify to replace "mode ad-hoc" with "mode master" The 
driver looks to prevent softap and ad-hoc modes. I'll look to compiling dhd.ko 
and see if this improves things. Found this page:"
I don't know if this works yet or not, I'm new to the smart phone.

Original comment by casey.d...@gmail.com on 28 Feb 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Replacing "mode ad-hoc" with "mode master" makes "Setting master mode" succeed, 
but then "Setting channel" fails. I just commented-out the "Setting channel" 
line and the wifi-tether starts without errors. No encryption, but the rest 
seems to work. Someone that know more than me may find a conditional clause for 
the "Setting channel" to be skipped on the Stratosphere?. And set master mode 
instead of ad-hoc?. Anyways, we will have to use Access control instead of 
encryption for now. I did connect to the phone from 2 laptops. No problem (not 
a lot of work done so far either ... but works). I am currently using 
wifi_tether_v3_1-beta14.apk

If somebody doesn't know what this is all about, here are the step-by-step 
instructions:

You need to have adb working on your workstation. Find how elsewhere. It has to
do with obtaining and installing the Android SDK and installing the 
platform-tools.

Connect the Strato to the PC. Make sure that 'USB Debugging' is ON on the phone
(if you are trying to use this app, you have to know how to do all of the above
 ... it is a necessary step for installing and setting up the custom kernel into
 the phone)

Just in case, make sure that WiFi Tether is NOT working on the phone. Best to
restart the phone.

Open a shell (aka 'Command Prompt' in lesser OSs)

$adb shell ls -l /data/data/com.googlecode.android.wifi.tether/conf/tether.edify
-rw-r--r-- app_105  app_105     21941 2012-04-29 01:47 tether.edify
(the owner/group app_XXX will be different in your phone)

$adb pull /data/data/com.googlecode.android.wifi.tether/conf/tether.edify
1371 KB/s (21941 bytes in 0.015s)

> copy tether.edify tether.edify-bak (in Windoze)
  or
$ cp tether.edify tether.edify-bak (in ....x)
        1 file(s) copied.
        (this is to keep a backup, jic)

$ [gvim/notepad/vi/whatever-editor-you-like] tether.edify
           Replace 'ad-hoc' with 'master' (without the quotes) in 2 locations
           Comment-out the line 'Setting channel' - apparently this phone WiFi
           doesn't know how to do that. The only and 'default' channel is 1?
           Anyways, comment this out, unless you find the right conditional to
           make this to be skipped on the Stratosphere (an please publish your
           findings here).
           Save the file.

$ adb push tether.edify /data/data/com.googlecode.android.wifi.tether/conf
228 KB/s (21942 bytes in 0.093s)

Disconnect from the PC.

Now start the app, start tethering, turn to your laptop and connect. It worked
for me. Hope it does for you too.

-Polo

Original comment by ptal...@gmail.com on 30 Apr 2012 at 10:45

GoogleCodeExporter commented 9 years ago
Polo,

   Is there any way you can post your file.  I have tried editing it like you instructed, but I sill get errors on startup.  What's odd is that it looks like it's running, but it doesn't show up in any other devices.

Any help would be appreciated.

Cappy

Original comment by joseph.c...@gmail.com on 5 Jun 2012 at 1:11

GoogleCodeExporter commented 9 years ago
Attached is my edited tether.edify
Other settings include:
In Device Profile, set Samsung Galaxy SL
Set Enable Access-Control
Set Enable WiFi-Encryption - the WiFi Encryption is actually not working, but 
for
unknown reasons, when it is 'Enabled', WiFi tethering works, when it is not 
'Enabled'
it doesn't.
Set Encryption Setup Method to Auto. Enter an exactly 13 character string for 
the password.
Set an SSID that you like.
For Channel (Change Channel) I left the default Channel 01.
Reduce Power is disabled.

As posted here: 
http://code.google.com/p/android-wifi-tether/issues/detail?id=1367
WiFi Tether will start with errors sometimes:

"While the phone is having problems with normal WiFi connection, I check 
"wireless and network settings", it shows "error" under WiFi.  Could not 
manually start wifi service either.

While the WiFi problem exists, if I want to turn ON android-wifi-tether, it 
will "start with error".  The log shows "loading wifi driver failed, setting 
ad-hoc mode failed, setting channel failed", it does not display the 
upload/download traffic meter. (note: with my fixes to tether.edify, the 
'ad-hoc mode' and 'setting channel' failed, won't appear, but 'Loading WiFi 
Driver' failed will)

**if the phone is rebooted, WiFi will work normally until I turn ON tether 
again. At this time, tethering will work, but when I stop tethering, WiFi won't 
work anymore, until I reboot again.

In other words, reboot and try again. It frequently solves the problem. 
Cumbersome, unreliable, but still helps if you need to connect. Just in case, I 
have also azilink for USB tethering, which, incidentally won't work on the 
Statosphere as-is either, but I posted a re-compiled version that does: 
azilink-release.apk
http://code.google.com/p/azilink/issues/detail?id=43

good luck!
-Polo

Original comment by ptal...@gmail.com on 8 Aug 2012 at 8:44

Attachments: