Just wanted to share my experiences in getting wlan0 on BPI-R1 to work as an access point! Basically, I followed the instructions on this website: http://bogeskov.dk/UsbAccessPoint.html
The hostapd binary from Debian’s repo doesn’t include the necessary drivers so we have to download them from Realtek’s website:
And then:
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/local/sbin/
And use this as the hostapd.conf file:
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
This worked like a charm for me!
Hope this information can help others!
this work is do by lmsilva,thank lmsilva share it.