N900 Ad-hoc WiFi Hotspot

loic (Talk | contribs)
(New page: This method works but is not useable 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 == /etc/apt/s...)
Newer edit →

Revision as of 18:50, 28 June 2010

This method works but is not useable 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

/etc/apt/sources.list
deb http://repository.maemo.org/extras-devel/ fremantle free
apt-get install iptables
http://wiki.maemo.org/Kernel_Power#Installation_of_the_stable_kernel_from_extras
apt-get install kernel-power-settings
# connect using GPRS and not a wifi hotspot
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
iwconfig wlan0 mode ad-hoc channel 3
ifconfig wlan0 192.168.4.15 up
iwconfig wlan0 essid N900

On the laptop

sudo iwconfig wlan0 mode ad-hoc channel 3
sudo ifconfig wlan0 192.168.4.14 up
sudo iwconfig essid N900
sudo route add default gw 192.168.4.15