From 73d4ab9388b42d54e8c03c192238dd9681b0a96b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 20 Jul 2018 17:43:53 +0200 Subject: [PATCH] Add raspberry pi 3 wifi configuration Signed-off-by: David Oberhollenzer --- board/rpi3/INIT | 2 +- board/rpi3/ROOTFS | 1 + product/router/rpi3/INIT | 1 + product/router/rpi3/dnsmasq.conf | 2 +- product/router/rpi3/hostapd.conf | 20 ++++++++++++++++++++ product/router/rpi3/interfaces/wlan0 | 1 + 6 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 product/router/rpi3/hostapd.conf create mode 100644 product/router/rpi3/interfaces/wlan0 diff --git a/board/rpi3/INIT b/board/rpi3/INIT index 037e017..6fd70c7 100644 --- a/board/rpi3/INIT +++ b/board/rpi3/INIT @@ -2,4 +2,4 @@ GETTY_TTY="tty1 tty2 tty3 tty4 tty5 tty6 tty7" DHCP_PORTS="" HWCLOCK="no" SERVICES="" -MODULES="" \ No newline at end of file +MODULES="brcmfmac" diff --git a/board/rpi3/ROOTFS b/board/rpi3/ROOTFS index c62f758..ce38295 100644 --- a/board/rpi3/ROOTFS +++ b/board/rpi3/ROOTFS @@ -10,5 +10,6 @@ kbd firmware-rpi3 dhcpcd iw +hostapd linux-firmware-rpi3 linux-rpi3 diff --git a/product/router/rpi3/INIT b/product/router/rpi3/INIT index 451884d..fb3db23 100644 --- a/product/router/rpi3/INIT +++ b/product/router/rpi3/INIT @@ -1 +1,2 @@ DHCP_PORTS="port0" +SERVICES="$SERVICES hostapd" diff --git a/product/router/rpi3/dnsmasq.conf b/product/router/rpi3/dnsmasq.conf index 6b9a232..f8c6f62 100644 --- a/product/router/rpi3/dnsmasq.conf +++ b/product/router/rpi3/dnsmasq.conf @@ -13,6 +13,6 @@ enable-ra # forward to unbound server=127.0.0.1#5353 -interface=eth0 +interface=wlan0 dhcp-range=set:if0,192.168.0.2,192.168.0.254,255.255.255.0,12h dhcp-option=tag:if0,option:dns-server,192.168.0.1 diff --git a/product/router/rpi3/hostapd.conf b/product/router/rpi3/hostapd.conf new file mode 100644 index 0000000..8eccfc0 --- /dev/null +++ b/product/router/rpi3/hostapd.conf @@ -0,0 +1,20 @@ +interface=wlan0 +driver=nl80211 +ssid=Pygos Demo Net +hw_mode=g +channel=7 +wmm_enabled=0 +macaddr_acl=0 +auth_algs=1 +ignore_broadcast_ssid=0 +wpa=2 +wpa_passphrase=righteous +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP +logger_syslog=-1 +logger_syslog_level=2 +logger_stdout=0 +logger_stdout_level=4 +ctrl_interface=/var/run/hostapd +ctrl_interface_group=0 diff --git a/product/router/rpi3/interfaces/wlan0 b/product/router/rpi3/interfaces/wlan0 new file mode 100644 index 0000000..09fba90 --- /dev/null +++ b/product/router/rpi3/interfaces/wlan0 @@ -0,0 +1 @@ +ip 192.168.0.1/24