The ModMyTM Family of Sites.
   
Go Back   Android and G1 Forums, Mods, Hacks, News, Downloads, Skins, Themes, and more! | ModMyGphone > Android Modding > General Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
General Discussion General Android questions/discussions on software and hardware.
Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2009, 02:36 PM
Chip Douglas's Avatar
Chip Douglas Chip Douglas is offline
Actually, I prefer Yahoo.
 
Join Date: Dec 2008
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default Tether -bot?

http://forum.xda-developers.com/showthread.php?t=444004

Meat & potatoes:
I just managed to get an ad-hoc connection going between my phone and laptop, and NAT running on it. The steps are pretty much the same as in the first post of this thread, but in addition I made some changes to /system/etc/wifi/tiwlan.ini (make sure to keep a backup of the original).

First, make sure wifi is disabled on the phone gui.

Next, Set up the ad-hoc network on the laptop. I called mine "newtest". Change the properties for the connection to assign a static ip. I used 192.168.2.2. Set gateway to 192.168.2.1, and set dns to a public server - i used 4.2.2.1.

In tiwlan.ini, look for "WiFiAdhoc = 0". Change it to the following (set ssid to whatever you use):

Quote:
WiFiAdhoc = 1
dot11DesiredSSID = newtest
dot11DesiredBSSType = 0


After updating tiwlan.ini, enable wifi manually:
Quote:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini
ifconfig tiwlan0 192.168.2.1 netmask 255.255.255.0
ifconfig tiwlan0 up


At this point, the phone should connect to the ad-hoc network.

Now, from the OP's post, the iptables rules:

Quote:
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT
iptables -P FORWARD DROP

iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward


If all went well, you now have internet access.

----
Haven't tried it yet but going to later
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
The Following User Says Thank You to Chip Douglas For This Useful Post:
earxtacy (02-05-2009)
  #2  
Old 01-30-2009, 07:23 PM
kegansjack's Avatar
kegansjack kegansjack is offline
Making it Mine
 
Join Date: Dec 2008
Posts: 50
Thanks: 5
Thanked 0 Times in 0 Posts
Default

after you try it try running a speedtest to see what sort of networks speeds you get, since its run as a proxy im wondering what sort of speed degrades it has.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
  #3  
Old 02-05-2009, 10:23 AM
earxtacy earxtacy is offline
Actually, I prefer Yahoo.
 
Join Date: Oct 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default need a little help please!!

This is prolly a n00b question, but I'm going to ask it anyway. I'm assuming that I use ADB to activate the wifi on the phone. I'm not good at command-line anything, so when I imput the first line of code you have, I get an error about not finding the "insmod" command. Mind dumbing that down for me??
Here is my process that I go through, please tell me what I'm missing.

I go to a cmd prompt and then cd into where i have ADB located on my HD. I am using ADB win from the firmware hack (which i managed to do). Now i have tried typing adb, followed by your first string of commands, no such luck. then I tried just the command string, no luck there either. I know i'm missing something simple, but i don't know what.

thanks!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:36 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2007-08, ModMy LLC