N900 Ad-hoc WiFi Hotspot
(link to forum for tethering solution) |
(missing headline) |
||
Line 5: | Line 5: | ||
It may be noted, that scanning for networks on the N900 seems to disconnect everything. So starting wlancond seems to be a bad solution, better stop it. | It may be noted, that scanning for networks on the N900 seems to disconnect everything. So starting wlancond seems to be a bad solution, better stop it. | ||
+ | == Old article == | ||
This method works but is not usable for more than a proof of concept because it suffers '''40% packet loss at close range''' between the [[Nokia N900|N900]] and the laptop. | This method works but is not usable for more than a proof of concept because it suffers '''40% packet loss at close range''' between the [[Nokia N900|N900]] and the laptop. |
Revision as of 17:53, 10 March 2012
Contents |
Working solution
See http://talk.maemo.org/showthread.php?t=73406
It may be noted, that scanning for networks on the N900 seems to disconnect everything. So starting wlancond seems to be a bad solution, better stop it.
Old article
This method works but is not usable for more than a proof of concept because it suffers 40% packet loss at close range between the N900 and the laptop.
On the N900
- Enable extras-devel
- Install iptables at a terminal with root access:
apt-get install iptables
- Install kernel-power-settings (see the detailed installation instructions):
apt-get install kernel-power-settings
- Connect to the Internet with GPRS
- Setup iptables to allow forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
- Bring up te ad hoc wireless network:
iwconfig wlan0 mode ad-hoc channel 3 ifconfig wlan0 192.168.4.15 up iwconfig wlan0 essid N900
On the laptop
Connect to the ad hoc wireless network:
sudo iwconfig wlan0 mode ad-hoc channel 3 sudo ifconfig wlan0 192.168.4.14 up sudo iwconfig wlan0 essid N900 sudo route add default gw 192.168.4.15