Difference between revisions of "Status/Wireless"

From Maemo Leste Wiki
Jump to navigationJump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Client mode should just work using the UI.
Client mode should just work using the UI.
== Features ==
Open, WEP, WPA PSK and EAP networks should just work. Day to day usage should work fine.
== Known bugs / To do ==
* Hidden APs do not fully work yet: https://github.com/maemo-leste/bugtracker/issues/489
* Flight mode might not disable wifi: https://github.com/maemo-leste/bugtracker/issues/190 / https://github.com/maemo-leste/bugtracker/issues/397
* Server certificates are not verified currently: https://github.com/maemo-leste/bugtracker/issues/137
* Scan results could be returned sooner: https://github.com/maemo-leste/bugtracker/issues/342
* easy-wlan wizard might be a bit buggy: https://github.com/maemo-leste/bugtracker/issues/221
To do:
* Improve wpa_supplicant dbus handling code to pick up new interfaces and deal with them somehow (as opposed to hardcoding one interface)
* Support passive scans: https://github.com/maemo-leste/bugtracker/issues/149
* Support more/new EAP methods: https://github.com/maemo-leste/bugtracker/issues/145
* Ad-Hoc mode not supported yet: https://github.com/maemo-leste/bugtracker/issues/154
* Support WPA3/SAE
* Integration with hotspot missing
* Support wifi powersaving: https://github.com/maemo-leste/bugtracker/issues/172
* Set the regdomain country based on ofono modem data (country)




Line 35: Line 60:


<pre>
<pre>
sudo iptables -A POSTROUTING -t nat -s 192.168.42.1/24 -j MASQUERADE
sudo iptables -A POSTROUTING -t nat -s 192.168.44.1/24 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv4.ip_forward=1
</pre>
</pre>
Line 42: Line 67:


<pre>
<pre>
sudo ifconfig wlan0 192.168.42.2
sudo ifconfig wlan0 192.168.44.2
sudo hostapd -i wlan0 /etc/hostapd/hostapd.conf
sudo hostapd -i wlan0 /etc/hostapd/hostapd.conf
</pre>
</pre>

Latest revision as of 11:46, 2 June 2021

Client mode should just work using the UI.


Features

Open, WEP, WPA PSK and EAP networks should just work. Day to day usage should work fine.


Known bugs / To do

To do:


Mobile Hotspot

There is no UI for this yet.

To share your mobile data over wireless, you will need to install dnsmasq and hostapd.

You will want to set `wpa=2`, `ssid=` and `wpa_passphrase` in hostapd.conf, like so (of course, there might be other options that are set):

wpa=2
ssid=Internet
wpa_passphrase=secureinternetpassword

You can copy the example config files to /etc/hostapd/

For /etc/dnsmasq.conf, make sure `interface=` includes at least `lo,wlan0`, like so:

interface=lo,wlan0

You might also want to change `dhcp-range=` in the config file to match the subnet of your wireless interface ip, per our example:

dhcp-range=192.168.44.50,192.168.44.150,12h

Then restart dnsmasq.

Next, configure iptables:

sudo iptables -A POSTROUTING -t nat -s 192.168.44.1/24 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1

And finally bring up the interface and run hostapd:

sudo ifconfig wlan0 192.168.44.2
sudo hostapd -i wlan0 /etc/hostapd/hostapd.conf