How to setup a Wifi AP

(Bruno) #1


I tried to configure a Wifi AP (not a bridge) on my BPi-M2+ without success.

I’m using the Armbian-5.20 distribution for BPi

My hostapd configuration file is: interface=wlan0 driver=nl80211 ssid=MyNetwork hw_mode=g channel=1

but I didn’t succeed to make it working. The dmesg output is:

[29629.836608] dhd_open: Enter eeb03000 [29629.856083] dhd_set_scb_probe: max_scb_probe setting failed [29629.856103] dhd_open: Exit ret=0 [29629.859160] netdev_ifidx(4), chan_type(1) target channel(1) [29629.861906] Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3 [29629.869587] CFG80211-ERROR) check_dev_role_integrity : device role select failed

Please, can you help me?

(Igor) #2

Do you load module with parameter op_mode=2 ?

(Bruno) #4

Thank you Igor and sorry for my late answer.

It works fine with the op_mode set to 2

Thank you BR


how to set? use AP6212?


Would you be kind enough and describe step by step what needs to be done to get AP going BPI0 -M2? Is there way to be client to one Wifi, and AP in same time like:

RPi zero W can ?

Thank you RZ


Forgot to mention, I am using: ARMBIAN 5.41 user-built Debian GNU/Linux 8 (jessie) 3.4.113-sun8i on RPI-M2-Zero