Skip to content

Wifi Access Point Mode

Isaac Vandor edited this page Feb 2, 2017 · 1 revision

References

Stack Overflow PixHawk Documentation Ras-Pi Documentation

Installing Relevant Packages

sudo apt-get install hostapd udhcpd

Fixing HostAPD for RTL8188/RTL8192CU Drivers

(This is only applicable if your Wifi dongle uses the RTL8192 driver)

Check with:

dmesg | grep 8192
[    8.135523@3] usbcore: registered new interface driver rtl8192cu

Install new version of hostapd:

wget https://github.com/jenssegers/RTL8188-hostapd/archive/v2.0.tar.gz
tar -zxvf v2.0.tar.gz
cd RTL8188-hostapd-2.0/hostapd/
sudo make && sudo make install

Configuring hostapd/ udhcpd

Copy the contents of hostapd.conf to /etc/hostapd/hostapd.conf Copy the contents of udhcpd.conf to /etc/udhcpd.conf Copy the contents of hostapd to /etc/default/hostapd Copy the contents of udhcpd to /etc/default/udhcpd

As for the details of each lines in the file, refer to the References.

Starting the AP

Make sure that no other instances are running:

pgrep udhcpd
pgrep hostapd
## should output nothing

Start udhcpd (handle ip addresses, etc.) and hostapd (access point)

sudo service udhcpd start
sudo service hostapd start

Configuring on Startup