-
Notifications
You must be signed in to change notification settings - Fork 1
Wifi Access Point Mode
Isaac Vandor edited this page Feb 2, 2017
·
1 revision
Stack Overflow PixHawk Documentation Ras-Pi Documentation
sudo apt-get install hostapd udhcpd
(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
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.
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