anat
Posts: 19
Joined: Mon Aug 27, 2012 12:45 am

RPi3 Wifi AP mode: How?

Fri Mar 04, 2016 12:36 am

Hello all

I want to setup the Access Point mode in RPi3 using the internal wifi chip. Could anyone point me to how to setup the AP mode. Thanks.

anat
Posts: 19
Joined: Mon Aug 27, 2012 12:45 am

Re: RPi3 Wifi AP mode: How?

Fri Mar 04, 2016 1:17 pm

I answer my own question. These are steps to setup an AP mode using the internal wifi chip:

sudo apt-get install dnsmasq hostapd

sudo nano /etc/hostapd/ap.conf
************ ADD ******************
interface=wlan0
hw_mode=g
channel=10
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
wpa_passphrase=YOURPASSPHRASE
ssid=YOURSSID

sudo nano /etc/dnsmasq.conf
******* ADD *******
interface=wlan0
dhcp-range=10.0.0.2,10.0.0.5,255.255.255.0,12h


sudo nano /etc/rc.local
*******************************************************
sudo ifconfig wlan0 down
sudo ifconfig wlan0 10.0.0.1 netmask 255.255.255.0 up
sudo iwconfig wlan0 power off
sudo service dnsmasq restart
sudo hostapd -B /etc/hostapd/ap.conf & > /dev/null 2>&1

Return to “General discussion”