N900 Ad-hoc WiFi Hotspot
(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...) |
(Made instructions more generic. Also note, that ifconfig has been deprecated, and so has been removed from Client instructions.) |
||
(7 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | This method works but is not | + | == 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 [[Nokia N900|N900]] and the laptop. | ||
+ | |||
== On the N900 == | == On the N900 == | ||
- | + | ||
- | + | <ol> | |
- | + | <li>[[Extras-devel#How to activate Extras-devel|Enable extras-devel]]</li> | |
- | + | <li>Install [http://maemo.org/packages/view/iptables/ iptables] at a [[terminal]] with [[root access]]:<pre>apt-get install iptables</pre></li> | |
- | + | <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> | |
- | + | <li>Connect to the Internet with GPRS</li> | |
- | + | <li>Setup iptables to allow forwarding: | |
- | + | <pre> | |
- | + | echo 1 > /proc/sys/net/ipv4/ip_forward | |
- | + | iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE | |
- | + | </pre></li> | |
- | == On the | + | <li>Bring up te ad hoc wireless network: |
- | + | <pre> | |
- | + | iwconfig wlan0 mode ad-hoc channel 3 | |
- | + | ifconfig wlan0 192.168.4.15 up | |
- | + | iwconfig wlan0 essid N900 | |
+ | </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: | + | [[Category:WiFi]] |
Latest revision as of 16:02, 8 June 2012
Contents |
[edit] 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.
[edit] 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.
[edit] 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
[edit] 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.
- This page was last modified on 8 June 2012, at 16:02.
- This page has been accessed 22,567 times.