ตัวอย่าง config hostapd.conf บน bpi-r1
http://bogeskov.dk/UsbAccessPoint.htmlsudo apt-get install linux-headers-...
git clone
https://github.com/dz0ny/rt8192cu.gitcd rt8192cu
make
sudo make install
Avoid the supplied driver by blacklisting it in (new file) /etc/modprobe.d/8192cu.conf:
blacklist rtl8192cu
unzip RTL8192xC_USB_linux_*.zip
tar zxvf RTL8188C_8192C_USB_linux_*/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_*.tar.gz
cd wpa_supplicant_hostapd-0.8_*/hostapd/
make
sudo cp hostapd hostapd_cli /usr/sbin/
config:
ssid=MyAccessPoint
wpa_passphrase=MySecretPassword
ctrl_interface=/var/run/hostapd
interface=@INTERFACE@
bridge=br0
driver=rtl871xdrv
hw_mode=g
channel=6
wpa=2
beacon_int=100
hw_mode=g
ieee80211n=1
wme_enabled=1
ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
max_num_sta=8
wpa_group_rekey=86400