Setting up wlan0 as an access point in BPI-R1

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:

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#RTL8192CU

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.

Download link looks like not broken but web page behind it does not offer to download anything((( Please provide another download link.

There is a handy way to compile fixed hostaptd abd 8292cu driver compatible with it:

Everything is compiled and installed with one script. A few pre-requisites need to be installed manually.

But I would appreciate if WI FI access point will work out-of-the box for all downloaded OS images installed on PBI R1.