Jump to content


Photo

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

* * * * * 1 votes

  • Please log in to reply
17 replies to this topic

#1
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts
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-..._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, 13 May 2010 - 06:38 PM.

  • 0

#2
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts
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, 13 May 2010 - 09:49 AM.

  • 0

#3
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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-..._2_0_2-pre5.apk

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

Thanks.

  • 0

#4
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts
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, 13 May 2010 - 10:06 AM.

  • 0

#5
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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?

  • 0

#6
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts

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, 13 May 2010 - 10:40 AM.

  • 0

#7
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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, 13 May 2010 - 10:44 AM.

  • 0

#8
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts

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.

  • 0

#9
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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?

  • 0

#10
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts

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, 13 May 2010 - 11:41 AM.

  • 0

#11
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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?

  • 0

#12
Elmirth

Elmirth

    Newbie

  • Members
  • Pip
  • 7 posts

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.

Edited by Elmirth, 13 May 2010 - 12:00 PM.

  • 0

#13
WelcomB

WelcomB

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Htc legend
Could you list this in the website downloads section? Is wasn't easy to find this link.

  • 0

#14
harry_m

harry_m

    Newbie

  • Members
  • Pip
  • 41 posts

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

  • 0

#15
otiose

otiose

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:legend
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.

  • 0

#16
WelcomB

WelcomB

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Htc legend
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

  • 0

#17
capdcanoa

capdcanoa

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Legend
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, 30 July 2010 - 09:53 AM.

  • 0

#18
capdcanoa

capdcanoa

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Legend

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.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users