BPi - hostapd

Installation

sh# apt install hostapd

Configuration

/etc/default/hostapd

DAEMON_CONF="/etc/hostapd.conf"

/etc/hostapd.conf

ssid=mywlan
interface=wlan0
hw_mode=g
bridge=br0
driver=nl80211

wpa=2
wpa_psk=...
wpa_passphrase=...
wpa_key_mgmt=WPA_PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
  • hw_mode

Rebuilding Package

sh# vi /etc/apt/sources.list
deb-src http://httpredir.debian.org/debian jessie main contrib non-free
sh# apt update
sh# apt-get source wpa
sh# cd wpa-2.3
sh# apt-get build-dep wpa
sh# 
sh# ip link add name breth0.23 type bridge
sh# ip addr add 192.168.23.1/24 brd 192.168.23.255 dev breth0.23
sh# ip link set breth0.23 up