BPI-R2 2.4Ghz and 5.6Ghz Wifi Working fine

switch/vlan will not be available in 4.4.70, ap seems to work stable in my (short) tests

why a new image when you simply can replace kernel?

Just out of simplicity, I don’t have any other machine under ubuntu for compile kernel. What is the procedure for activating the ap-mode? I have tried: Echo A>/dev/wmtWifi and killall wpa_supplicant apt-get remove wpa_supplicant echo 1>$… is uncommented and reboot but ap-mode is not available (I have an errror message: ap-mode is disabled)

only echo 0 and echo A…before that the 2 other commands…no reboot

hello, I have done echo 0, echo A After: killall wpa_supplicant=>wpa_supplicant: no process found When I launch: hostapd -dd /etc/hostapd/hostapd.conf (this hostapd.conf is good It’s tried on a Pi2) I have:

nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 8 iftype 3 (AP)
nl80211: Failed to set interface 8 to mode 3: -95 (Operation not supported)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 8 iftype 3 (AP)
nl80211: Failed to set interface 8 to mode 3: -95 (Operation not supported)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=8 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)nl80211: Set mode ifindex 8 iftype 2 (STATION)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x7f6fbcd8)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7f6fbcd8)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0x7f6fc9a0 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x7f6fbcd8)
hostapd_interface_free: free hapd 0x7f6fc9a0
hostapd_cleanup_iface(0x7f6fbcd8)
hostapd_cleanup_iface_partial(0x7f6fbcd8)
hostapd_cleanup_iface: free iface=0x7f6fbcd8

like described here http://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:wlan#internal

wmt_loader
stp_uart_launcher -p /etc/firmware &
echo 0 >/dev/wmtWifi (reset/initialize)
echo A >/dev/wmtWifi (activate AP-Mode)

have you done steps 1 & 2?

also you must start hostapd on ap0 instead of wlan0

2 additional points:

  • After a clean boot, you dont have to use “echo 0”. It works when you do the first 2 steps that Frank suggests and then “echo A
  • Make sure you have the firmware files in /etc/firmware.

Indeed most likely you just need to use ap0 instead of wlan0.

Read this manual for original instructions.

ok it’s works fine, But it’s too bad we can only use with a single SSID!! I need to install a usb dongle for use a second SSID!

1 adapter = 1 AP

You can also use pcie for a second card

I know some adapter witch support 5 Ap by Adapter

Hello Everyone. I have a bad English.

I have a bpi-r2 and I wang to use AP-mode. Recently , I very surprised that a new image is released.

I using 2017-11-28-ubuntu-16.04-mate-desktop-bpi-r2-sd-emmc.img.zip. on eMMC.

I do this step by step.

However ,I can’t find the ap0 interface.

I try to “wmt_loader” , but

I try to “stp_uart_launcher -p /etc/firmware &” , but

Can’t open device node(/dev/stpwmt) error:-1

Anyone can help me ? Thank a lot.

You must do it in right order

I read the page too. I sure I do it step by step. But this error still exists. The files ( cfg , firmware , bin ) in the system before I copy in.Should I rewrite them ?

you have to do this steps after a clean (re)boot. if something went wrong => reboot

“failed to init module” in first step can be currently ignored

if the files exist, you have not to replace them

Can you please share me the log(getting it by running dmesg)?

Thank a lot !

I have find my mistakes. “failed to init module” and “Can’t open device node(/dev/stpwmt) error:-1” should be ignore. When I ignore it , I can create my AccessPoint.

Hi hyh

Both drivers and tools for R2 onboard WIFI module are from Android system, and we don’t have time to remove unnecessary code so far. so maybe the driver is working fine but there is a few errors in log.

Thanks Gary

Is btif driver needed for wifi,too?

Googled around…it seems to be a kind of uart. Having actual Problems compiling it

Hi Frank

The BTIF driver is required if WIFI or BT want to be supported. I think there is no problem to compile it in both kernel 4.9 and 4.4.

Thanks Gary

R2 internal Wifi/BT (MT6625L) - Kernel 4.14.x/4.16 don’t understand the errormessage (wrong code in base linux code is implausibly). also the other with undefined param, wich i fixed it quick and dirty by defining it

@garywang can you try to close hostapd and restarting it? in my tests the ap does not came up (hostapd says it comes up, but its not visible on cellular)