I am not experienced on the Linux networking so please tolerate my ignorance.
1.) I am trying to create an wireless access point on "Orange Pi Zero Plus 2 H3" board. And I fail...
2.) I am using Armbian image: Armbian_5.76_Orangepizeroplus2-h3_Ubuntu_xenial_next_4.19.21.img
3.) I am using nmcli for this purpose:
https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140
nmcli con add type wifi ifname wlan0 con-name MyAccessPoint autoconnect yes ssid MyAccessPoint
nmcli con modify MyAccessPoint 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify MyAccessPoint wifi-sec.key-mgmt wpa-psk
nmcli con modify MyAccessPoint wifi-sec.psk "1234567890"
nmcli con up MyAccessPoint
4.) When I look at the syslog it fails like:
May 22 08:24:52 localhost NetworkManager[738]: <info> [1558513492.3757] Config: added 'key_mgmt' value 'WPA-PSK'
May 22 08:24:52 localhost NetworkManager[738]: <info> [1558513492.3758] Config: added 'psk' value '<omitted>'
May 22 08:24:52 localhost NetworkManager[738]: <info> [1558513492.3794] sup-iface[0x2dd8d8,wlan0]: config: set interface ap_scan to 2
May 22 08:24:53 localhost wpa_supplicant[1099]: wlan0: Failed to start AP functionality
May 22 08:24:53 localhost NetworkManager[738]: <info> [1558513493.4425] device (wlan0): supplicant interface state: inactive -> disconnected
5.) Failed to start AP functionality message is coming from ap.c in wpa_supplicant code:
if ( wpa_drv_associate(wpa_s, ¶ms) < 0) {
wpa_msg(wpa_s, MSG_INFO, "Failed to start AP functionality");
return -1;
}
It seems the wpa_supplicant cannot match requested parameters with a wifi driver.
6.) I have read:
7.) When I do:
echo 'options dhd op_mode=2' >/etc/modprobe.d/ap6212.conf
rmmod dhd && modprobe dhd
modeprobe complains:
modprobe: FATAL: Module dhd not found in directory /lib/modules/4.19.21-sunxi
8. Lastly; What is "dhd module"? How can I enable it? How can I create a wireless access point?
Regards...