Editing N900 Ad-hoc WiFi Hotspot

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
== Working solution ==
+
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.
-
 
+
-
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 [[Nokia N900|N900]] and the laptop.
+
-
 
+
== On the N900 ==
== On the N900 ==
-
 
+
/etc/apt/sources.list
-
<ol>
+
deb http://repository.maemo.org/extras-devel/ fremantle free
-
<li>[[Extras-devel#How to activate Extras-devel|Enable extras-devel]]</li>
+
apt-get install iptables
-
<li>Install [http://maemo.org/packages/view/iptables/ iptables] at a [[terminal]] with [[root access]]:<pre>apt-get install iptables</pre></li>
+
http://wiki.maemo.org/Kernel_Power#Installation_of_the_stable_kernel_from_extras
-
<li>Install [http://maemo.org/packages/view/kernel-power-settings/ kernel-power-settings] (see [[Kernel_Power#Installation_of_the_stable_kernel_from_extras|the detailed installation instructions]]):<pre>apt-get install kernel-power-settings</pre></li>
+
apt-get install kernel-power-settings
-
<li>Connect to the Internet with GPRS</li>
+
# connect using GPRS and not a wifi hotspot
-
<li>Setup iptables to allow forwarding:
+
echo 1 > /proc/sys/net/ipv4/ip_forward
-
<pre>
+
iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
-
echo 1 > /proc/sys/net/ipv4/ip_forward
+
iwconfig wlan0 mode ad-hoc channel 3
-
iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
+
ifconfig wlan0 192.168.4.15 up
-
</pre></li>
+
iwconfig wlan0 essid N900
-
<li>Bring up te ad hoc wireless network:
+
== On the laptop ==
-
<pre>
+
sudo iwconfig wlan0 mode ad-hoc channel 3
-
iwconfig wlan0 mode ad-hoc channel 3
+
sudo ifconfig wlan0 192.168.4.14 up
-
ifconfig wlan0 192.168.4.15 up
+
sudo iwconfig essid N900
-
iwconfig wlan0 essid N900
+
sudo route add default gw 192.168.4.15
-
</pre></li>
+
-
</ol>
+
-
 
+
-
== On the Client ==
+
-
 
+
-
Simply connect to the ad hoc wireless network.
+
-
 
+
-
In this configuration, a DHCP server is not run by the N900, so addresses will have to be manually assigned to clients.
+
-
 
+
-
Note that on Android devices, a patched "wpa_supplicant" file may be necessary to see the network.
+
[[Category:Connectivity]]
[[Category:Connectivity]]
[[Category:N900]]
[[Category:N900]]
[[Category:Power users]]
[[Category:Power users]]
-
[[Category:WiFi]]
+
[[Category:Hotspot]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)