Discussion
Banana Pro Access Point Mode
14
16624
View: 16624|Reply: 14
|
[Discussion]
Banana Pro Access Point Mode
[Copy link]
|
|
I have a Banana Pro. The WIFI is working fine. I try to setup Banana Pro as a router but failed. I can scan and see my banana pro SSID but after I entered password, cannot connect to my banana pro. Help? |
|
|
|
|
|
|
|
Edited by hnsncxy at Fri Jan 9, 2015 23:29
I have a Banana Pro. The WIFI is working fine. I try to setup Banana Pro as a router but failed. I can scan and see my banana pro SSID but after I entered password, cannot connect to my banana pro. Help?
Hi,Niceday
The default hostapd tool have some problems,recommend you to use the below hostpad tool,as shown below- git clone git://w1.fi/srv/git/hostap.git
- apt-get install libnl-dev
- cd hostap/hostapd
- cp defconfig .config
- make
Copy the Code The configuration file of the hostapd as shown below- vim /etc/hostapd/hostapd.conf
- interface=wlanx
- driver=nl80211
- ssid=ap6210_ap_test
- channel=6
- hw_mode=g
- macaddr_acl=0
- auth_algs=1
- ignore_broadcast_ssid=0
- wpa=3
- wpa_passphrase=12345678
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=TKIP
- rsn_pairwise=CCMP
Copy the Code |
|
|
|
|
|
|
|
Edited by ProtonK at Thu Jan 15, 2015 15:27
Hey guys, I have a similar problem with the BananaPro. I installed both the apt-get version of hostapd and the one stated by hnsncxy.
However, same problem with both version. The network appears but upon activation, it asks for the password repeatedly.
fromI get as error- nl80211: Event message available
- nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
- nl80211: Delete station 58:94:6b:5e:56:dc
- wlan0: Event DISASSOC (1) received
- wlan0: STA 58:94:6b:5e:56:dc IEEE 802.11: disassociated
- wlan0: STA 58:94:6b:5e:56:dc WPA: event 2 notification
- wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=0x10d99e0 key_idx=0 set_tx=1 seq_len=0 key_len=0
- addr=58:94:6b:5e:56:dc
- WPA: 58:94:6b:5e:56:dc WPA_PTK entering state DISCONNECTED
- WPA: 58:94:6b:5e:56:dc WPA_PTK entering state INITIALIZE
- wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=0x10d99e0 key_idx=0 set_tx=1 seq_len=0 key_len=0
- addr=58:94:6b:5e:56:dc
- nl80211: Set STA flags - ifname=wlan0 addr=58:94:6b:5e:56:dc total_flags=0x0 flags_or=0x0 flags_and=0xfffffffe authorized=0
- wlan0: STA 58:94:6b:5e:56:dc IEEE 802.1X: unauthorizing port
- Could not set station 58:94:6b:5e:56:dc flags for kernel driver (errno=11).
- nl80211: sta_remove -> DEL_STATION wlan0 58:94:6b:5e:56:dc --> 0 (Success)
- ap_free_sta: cancel ap_handle_timer for 58:94:6b:5e:56:dc
Copy the Code Any ideas? |
|
|
|
|
|
|
|
ProtonK replied at Thu Jan 15, 2015 15:26 
Hey guys, I have a similar problem with the BananaPro. I installed both the apt-get version of hosta ...
Hi, ProtonK
You need to set the AP mode when you load the wifi driver, as shown below:- modprobe ap6210 op_mode=2
Copy the Code |
|
|
|
|
|
|
|
Thanks for the reply hnsncxy, but it didn't work with modprobe ap6210 op_mode=2.
I basically followed the instructions on
WiFi access point with Raspberry Pi
up to the point where hostapd comes into play.
I tried to set ap6210 to op_mode=2 manually and by changing /etc/modules, which only containsAny ideas? Is there something else that needs to be set before loading the access point driver? |
|
|
|
|
|
|
|
@hnsncxy: I think you have an typo in your hostapd.confworks for me.
Thanks! |
|
|
|
|
|
|
|
Edited by hnsncxy at Mon Jan 19, 2015 22:09
bullet64 replied at Mon Jan 19, 2015 14:49 
@hnsncxy: I think you have an typo in your hostapd.confworks for me.
Thanks!
Hi, bullet64
About the hostapd parameters, Please refer to the hostapd.conf from the http://w1.fi/hostapd/- # This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
- # and/or WPA2 (full IEEE 802.11i/RSN):
- # bit0 = WPA
- # bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
- #wpa=1
Copy the Code we can enable wpa and wpa2 by the below setThanks
hostapd.conf.rar
(23.39 KB, Downloads: 70)
|
|
|
|
|
|
|
|
Thanks for the infos. For me it works only with wpa=2
I will do more tests.... |
|
|
|
|
|
|
|
Thanks for pointing that out bullet64.
It also works for me with wpa=2.
|
|
|
|
|
|
|