Jump to content

Wireless Tether for Legend (requires root) *** WORKING ***


Guest harry_m

Recommended Posts

Guest harry_m

Hi!

I've put a new ***experimental*** version of "Wireless Tether" (with help from pogo1975) together which should support the HTC Legend.

It's available here:

http://android-wifi-tether.googlecode.com/..._2_0_2-pre6.apk

I don't personally own a HTC Legend - so some help would be great (wireless tether is free - not like free beer - and opensource).

If you discover problems please provide following information:

1) Post the content of the configuration-file which is created on app-start (after trying to start tethering from gui).

adb shell cat /data/data/android.tether/conf/tether.conf

2) Try to start from shell (that's only possible after you tried to start from gui because that config-file needs to be created first). Starting from shell (command-line) will generate more output. Disable wifi from the gui first!

adb shell

cd /data/data/android.tether/bin

./tether start 1

Please also try to activate wep-encryption. This version comes with two different encryption-setup-methods which can be selected from "setup". By default "auto" is selected - that's a good start for testing. :)

Thank you!

Harry

*** EDIT ***

New version (-pre5) available for testing.

New version (-pre6) available for testing.

Edited by harry_m
Link to comment
Share on other sites

Guest Elmirth

Error :)

Config file:

(before start)

d.tether/conf/tether.conf

device.type=nexusone

tether.mode=wifi

wifi.interface=eth0

wifi.essid=AndroidTether

wifi.channel=6

wifi.txpower=disabled

wifi.encryption=disabled

wifi.driver=wext

wifi.setup=wpa_supplicant

wifi.wepkey=

ip.gateway=192.168.2.254

ip.netmask=255.255.255.0

ip.network=192.168.2.0

(after start)

d.tether/conf/tether.conf

ip.gateway=192.168.2.254

wifi.channel=6

tether.mode=wifi

ip.network=192.168.2.0

ip.netmask=255.255.255.0

wifi.txpower=disabled

wifi.essid=AndroidTether

wifi.interface=tiwlan0

adb start:

# ./tether start 1

./tether start 1

about to run: [/system/bin/tiwlan_loader -f/system/etc/wifi/Fw1273_CHIP.bin -e /

proc/calibration -i /system/etc/wifi/tiwlan.ini]

Loader: unknow parameter '-f/system/etc/wifi/Fw1273_CHIP.bin'

Set property wlan.driver.status = failed - Ok

about to run: [/data/data/android.tether/bin/ifconfig tiwlan0 192.168.2.254 netm

ask 255.255.255.0]

and then... reboot

Edited by Elmirth
Link to comment
Share on other sites

Guest harry_m
device.type=nexusone

Ah. Nexusone? Looks like we detect the wrong phone. Does the file "/system/lib/modules/bcm4329.ko" exist on your device?

adb shell ls /system/lib/modules/bcm4329.ko

about to run: [/system/bin/tiwlan_loader -f/system/etc/wifi/Fw1273_CHIP.bin -e /

proc/calibration -i /system/etc/wifi/tiwlan.ini]

Oh. My mistake. A blank after -f is missing.

Please try the -pre5:

http://android-wifi-tether.googlecode.com/..._2_0_2-pre5.apk

Ah. And ... if you start via console disable wifi from the gui first!

Thanks.

Link to comment
Share on other sites

Guest Elmirth

We have found an error in line 232 of tether.edify file:

----- run_program("/system/bin/tiwlan_loader -f/system/etc/wifi/Fw1273_CHIP.bin -e " +

+++ run_program("/system/bin/tiwlan_loader -f /system/etc/wifi/Fw1273_CHIP.bin -e " +

after -f attribute is necesary a blank.

By modifing this bug the application works perfectly :)

Edit: Woow, i didn't read your response Lol. Now works perfectly

Edited by Elmirth
Link to comment
Share on other sites

Guest harry_m
Edit: Woow, i didn't read your response Lol. Now works perfectly

Oh, great. Could you please check if wep-encryption is working for you?

Link to comment
Share on other sites

Guest Elmirth
Oh, great. Could you please check if wep-encryption is working for you?

Sorry but clients can connect although they don't specify wep key

Edited by Elmirth
Link to comment
Share on other sites

Guest harry_m
Sorry but clients can connect although they don't specify wep key

Mmmmg ... which encryption-setup-mode is configured?

wpa_supplicant or iwconfig?

Please try with iwconfig!

*** EDIT ***

By the way ... if you select "Auto" it will use "iwconfig" by default for the legend.

Edited by harry_m
Link to comment
Share on other sites

Guest Elmirth
Mmmmg ... which encryption-setup-mode is configured?

wpa_supplicant or iwconfig?

Please try with iwconfig!

*** EDIT ***

By the way ... if you select "Auto" it will use "iwconfig" by default for the legend.

With iwconfig doesn't work fine. Clients can connect (with or without wep phrase) but in no case can access to internet.

With wpa_supplicant clients can't see the ssid.

Link to comment
Share on other sites

Guest harry_m
With iwconfig doesn't work fine. Clients can connect (with or without wep phrase) but in no case can access to internet.

With wpa_supplicant clients can't see the ssid.

Mmmmh. Could you please try to remove this line:

run_program("/data/data/android.tether/bin/iwconfig "+getcfg("wifi.interface")+" mode ad-hoc essid "+getcfg("wifi.essid")+ " persist &");

from tether.edify.

Does that work without enabled encryption?

Link to comment
Share on other sites

Guest Elmirth
Mmmmh. Could you please try to remove this line:

run_program("/data/data/android.tether/bin/iwconfig "+getcfg("wifi.interface")+" mode ad-hoc essid "+getcfg("wifi.essid")+ " persist &");

from tether.edify.

Does that work without enabled encryption?

EDIT:

I'm trying. It works without WEP but with encryption clients can't connect

Edited by Elmirth
Link to comment
Share on other sites

Guest harry_m
It works without encryption but not with iwconfig wep :)

Ok, start tethering without enabled encryption.

Then run the iwconfig-commands manually from shell (via adb):

/data/data/android.tether/bin/iwconfig tiwlan0 key s:abcdefghijklm

/data/data/android.tether/bin/iwconfig tiwlan0 key restricted

/data/data/android.tether/bin/iwconfig tiwlan0 commit

Do you see error-messages or something?

Link to comment
Share on other sites

Guest Elmirth
Ok, start tethering without enabled encryption.

Then run the iwconfig-commands manually from shell (via adb):

/data/data/android.tether/bin/iwconfig tiwlan0 key s:abcdefghijklm

/data/data/android.tether/bin/iwconfig tiwlan0 key restricted

/data/data/android.tether/bin/iwconfig tiwlan0 commit

Do you see error-messages or something?

At commit:

Error for wireless request "Commit changes" (8B00) : 
SET failed on device tiwlan0 ; Operation not supported on transport endpoint.[/codebox]

Edited by Elmirth
Link to comment
Share on other sites

Guest harry_m
At commit:

Error for wireless request "Commit changes" (8B00) : 

SET failed on device tiwlan0; Operation not supported on transport endpoint.
Yeah. It's not really a problem that the commit fails. man-page of iwconfig says: "Some cards may not apply changes done through Wireless Exten- sions immediately (they may wait to aggregate the changes or apply it only when the card is brought up via ifconfig). This command (when available) forces the card to apply all pending changes. This is normally not needed, because the card will eventually apply the changes, but can be useful for debugging." That both methods to enable wep-encryption don't work is pretty annoying. We had always problems with encryption on HTC-based (with sense-ui) firmwares. I've done some experiments with a desire-port for the nexusone. The wpa_supplicant-method did not work but the iwconfig-method worked just fine - so I thought that the iwconfig-method might work on the legend as well. But it seems that it doesn't. :) One other thing you could try is if it's possible to reduce the transmit-power on the legend (device would stay cooler and consume less power). This is working just fine on the nexusone. From adb-console:
/data/data/android.tether/bin/iwconfig tiwlan0 txpower 5

Thanks again.

Harry

Link to comment
Share on other sites

  • 4 weeks later...
Guest otiose

harry,

Can we have the download link for the above mentioned wifi tethering? (if i am reading the above correctly, the links are not the working tether and modification is needed it seems)

thanks a lot.

Link to comment
Share on other sites

  • 2 weeks later...
Guest WelcomB

Installed the newest 2.0.5 pre on my HTC Legend.

Still can't get WEP to work. Lots of other strangers are connecting to my network. =S

Link to comment
Share on other sites

  • 1 month later...
Guest capdcanoa

Hi

I have installed the last update, and I only connected once.

I'm making tests, but I don't connect my pc.

It try for a while, but then nothing happen. No errors, and no connection.

Edited by capdcanoa
Link to comment
Share on other sites

Guest capdcanoa
Hi

I have installed the last update, and I only connected once.

I'm making tests, but I don't connect my pc.

It try for a while, but then nothing happen. No errors, and no connection.

At the end I realized it works only once. I mean I can connect once. When I disconnect, I have to reboot my legend to be able to connect again.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.