BPI-R2 2.4Ghz and 5.6Ghz Wifi Working fine

you’ve wrote, on master branch with echo 1 and on wifi without…

ok, i try without echo 1, also checking if neccessary modules are loaded (e.g. mac802111)

got it working, have found out, that i had not removed wpasupplicant and removed wpa2-settings in hostapd.conf

[11:14] root@bpi-r2:~# hostapd -dd /etc/hostapd/hostapd.conf 
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=1
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=6
nl80211: Disable use_monitor with device_ap_sme since no monitor mode support detected
nl80211: interface ap0 in phy phy1
nl80211: Set mode ifindex 8 iftype 3 (AP)
nl80211: Setup AP(ap0) - device_ap_sme=1 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x908d8 (device SME)
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x908d8 match=
nl80211: Enable Probe Request reporting nl_preq=0x904c8
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x904c8 match=
nl80211: Add own interface ifindex 8
nl80211: if_indices[16]: 8
phy: phy1
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=52 freq=5260 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=56 freq=5280 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=60 freq=5300 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=64 freq=5320 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=100 freq=5500 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=104 freq=5520 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=108 freq=5540 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=112 freq=5560 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=116 freq=5580 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=120 freq=5600 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=124 freq=5620 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=128 freq=5640 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=132 freq=5660 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=136 freq=5680 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=140 freq=5700 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 1  Frequency: 2412 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2412 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2412 MHz, cf2=0 MHz)
  * freq=2412
  * vht_enabled=0
  * ht_enabled=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x8fe60 (ap0), first=1)
ap0: Flushing old station entries
nl80211: flush -> DEL_STATION ap0 (all)
ap0: Deauthenticate all stations
nl80211: sta_remove -> DEL_STATION ap0 ff:ff:ff:ff:ff:ff --> 0 (Success)
wpa_driver_nl80211_set_key: ifindex=8 (ap0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 (ap0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 (ap0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 (ap0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface ap0 with hwaddr 02:08:22:1c:ef:fe and ssid "r2_AP"
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=56): 80 00 00 00 ff ff ff ff ff ff 02 08 22 1c ef fe 02 08 22 1c ef fe 00 00 00 00 00 00 00 00 00 00 64 00 01 04 00 05 72 32 5f 41 50 01 08 82 84 8b 96 0c 12 18 24 03 01 01
nl80211: Beacon tail - hexdump(len=9): 2a 01 04 32 04 30 48 60 6c
nl80211: ifindex=8
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=5):
     72 32 5f 41 50                                    r2_AP           
  * beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=0
nl80211: auth_algs=0x1
nl80211: wpa_version=0x0
nl80211: key_mgmt_suites=0x4
nl80211: pairwise_ciphers=0x0
nl80211: group_cipher=0x1
nl80211: SMPS mode - off
nl80211: Set ap0 operstate 0->1 (UP)
netlink: Operstate: ifindex=8 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
Failed to set TX queue parameters for queue 0.
Failed to set TX queue parameters for queue 1.
Failed to set TX queue parameters for queue 2.
Failed to set TX queue parameters for queue 3.
ap0: interface state UNINITIALIZED->ENABLED
ap0: AP-ENABLED 
ap0: Setup of interface done.
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=8 ifname=ap0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
nl80211: Set IF_OPER_UP again based on ifi_flags and expected operstate
netlink: Operstate: ifindex=8 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
RTM_NEWLINK: ifi_index=8 ifname=ap0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])


nl80211: Event message available
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for ap0
nl80211: New station b4:9d:0b:5f:22:e9
nl80211: Assoc Req IEs - hexdump(len=60): 00 05 72 32 5f 41 50 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c 2d 1a 2c 01 03 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 07 00 50 f2 02 00 01 00
ap0: Event ASSOC (0) received
ap0: STA b4:9d:0b:5f:22:e9 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
  New STA
ap_sta_add: register ap_handle_timer timeout for b4:9d:0b:5f:22:e9 (300 seconds - ap_max_inactivity)
nl80211: Set STA flags - ifname=ap0 addr=b4:9d:0b:5f:22:e9 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
ap0: AP-STA-CONNECTED b4:9d:0b:5f:22:e9
ap0: STA b4:9d:0b:5f:22:e9 RADIUS: starting accounting session AC8AF284-00000000
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for b4:9d:0b:5f:22:e9 (300 seconds - ap_max_inactivity)
nl80211: Event message available
nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for ap0
nl80211: Delete station b4:9d:0b:5f:22:e9
ap0: Event DISASSOC (1) received
ap0: STA b4:9d:0b:5f:22:e9 IEEE 802.11: disassociated
ap0: AP-STA-DISCONNECTED b4:9d:0b:5f:22:e9
nl80211: sta_remove -> DEL_STATION ap0 b4:9d:0b:5f:22:e9 --> 0 (Success)
ap_free_sta: cancel ap_handle_timer for b4:9d:0b:5f:22:e9

i see ssid from wlan-client, can connect (to ip-registration)

if i now set ip to ap0 and start dnsmasq, ap is no more visible…but no crash

Do you mean the AP mode is working fine, but the DHCP can’t work for ap0, right?

I don’t know,which step removes ssid from Client…have to do more testing. But with restartung hostapd i can’t get it back (also without ip/dnsmasq)

connected to AP, set client IP static, set IP of ap0 => can ping ap0-adress from Client

so static seems to work

started dnsmasq and reconnected with dhcp enabled, got IP and can ping again

main problem, i have is that the wifi-device has no fixed MAC-address, so after each reboot i got a new entry in /etc/udev/rules.d/70-persistent-net.rules and the wlan-device-number is increasing…can you fix this too?

I discovered the same behaviour with LAN interface as well. Everytime I boot R2 up it has different MAC on LAN interface it is connected to network and obtains different IP from DHCP. Setting the static MAC in NetworkManager doesn’t help.

for LAN-Interfaces there is a fix using /etc/network/interfaces:

hwaddress ether ...

It Will be suported on LEDE?

i’m sure it will be ported to lede-kernel to (and hopefully to 4.14) if it’s working correctly

the existing issues (random mac-Adress which resulting different devices by udev, 2 wlan-devices for 1 physical [client vs ap]) must be fixed first and then the device must be detected without starting anything or any echo…it’s ok during wifi-debugging, but not for stable usage

home-routerboard without wlan-AP is quite useless

Hello do you have some news for Ap-Mode on Ubuntu? Do you plan a new ubuntu image with APMode and Vlan/switch mode?

Hi @garywang , once I enable the driver (using init.d and doing echo A to enable AP too), I get the following log in dmesg, any idea? I think wifi crashes the kernel at some point, for example I had to reboot the board after hours because I was not able to login to it via SSH anymore and the board was offline (the bridge was working but the OS wasn’t). I only noticed following logs so ATM I’m testing without enabling MT6625. I’m using latest Ubuntu kernel (commit 81d24bb)

[   19.107464] 0x01 0x01 0xe9 0x03 0x02 0xdd 0x3c 0x3e 0x00 0x6c 0x34 0xd5 0x17 0x2f 0xe0 0x6c 0x02 0x01 0x01 0x00 0x00 0x01 0x01 0xe9 0x03 0x02 0x4c 0x02 0xc1 0x78 0x48 0x00 0x01 0x7c 0x46 0x08 0x11 0x02 0x01 0x01 0x00 0x00 0x01 0x01 0xe9 0x03 0x02 0xd5 0x0c 0x84 0x0c 0xd5 0x08 0x49 0xfe 0x24 0x23 0x84 0x02 0x01 0x01 0x00 0x00 0x01 0x01 0xe9 0x03 0x02 0x49 0xfe 0x45 0x70 0xec 0x04 0x3a 0x6f 0xa4 0x84 0xdd 0x02 0x01 0x01 0x00 0x00 0x01 0x01 0xe9 0x03 0x02 0x4e 0x82 0x00 0x0d 0x3c 0x1c 0x07 0x7f 0x84 0x02 0xdd 0x02 0x01 0x01 0x00 0x00 0x01 0x01 0x35 0x00 0x03 0xd4 0xef 0x06 0x00 0x08 0x00 0x00 0x00 0x02 0x00 0x00 0x02 0x01 0x01 0x00 0x00 0x01 0x07 0x01 0x00 0x04 0x02 0x07 0x01 0x00 0x00 0x01 0x08 0x10 0x00 0x01 0x01 0x00 0x01 0x0c 0x01 0x00 0x80 0x00 0x4d 0x84 0x00 0x02 0x08 0x04 0x00 0x00 0x00 0x00 
[   19.107728] 0x01 0x01 0x08 0x10 0x00 0x01 0x01 0x00 0x01 0x34 0x03 0x00 0x80 0x00 0x00 0x00 0x00 0x02 0x08 0x04 0x00 0x00 0x00 0x00 0x01 0x01 0x14 0x01 0x00 0x01 0x02 0x14 0x72 0x02 0x00 0x01 0x01 0x11 0x11 0x4d 0x4d 0x4c 0x4c 0x4b 0x4b 0x4a 0x01 0x10 0x02 0x00 0x01 0x00 0x02 0x10 0x01 0x00 0x00 0x01 0x05 0x02 0x00 0x02 0x02 0x02 0x05 0x02 0x00 0x00 0x02 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x03 0x01 0x03 0x01 0x00 0x01 0x02 0x03 0x02 0x00 0x00 0x01 
[   19.108167] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.121870] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.121884] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.121891] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.121920] [STP-BTM] [W]_stp_btm_handler: get consys dump num packet_num(7)
[   19.125197] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   19.133763] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.147530] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.147566] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.161158] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.161184] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.161190] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.172907] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.186612] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.186645] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.200266] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.200284] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.200290] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.212049] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.225818] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.225861] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.231927] 0x3c 0x41 0x53 0x53 0x45 0x52 0x54 0x3e 0x20 0x77 0x69 0x66 0x69 0x2f 0x6e 0x69 
[   19.231928] g_coredump_mode: 0!
[   19.246953] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.246969] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.246975] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.258819] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.272640] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.272651] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.272657] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.284618] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.298867] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.298900] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.313100] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.313123] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.313129] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.325393] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.339709] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.339753] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.353735] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.353751] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.353757] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.366032] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.380127] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.380156] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.394198] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.394210] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.394222] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.406415] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.420625] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.420660] drivers/misc/mediatek/connectivity/common/conn_soc/core/btm_core.c, 824, (!RB_EMPTY(pOpQ))
[   19.435243] [STP-BTM] [W]_stp_btm_get_op: RB_GET fail
[   19.435257] [STP-BTM] [W]_stp_btm_dump_type: get_free_lxop fail
[   19.435267] [STP-BTM] [E]_stp_btm_notify_wmt_dmp_wq(1132):ERROR! paged dump fail
[   19.441717] [STP-BTM] [E]_stp_btm_handler(750):ERROR! polling CTRL STATE fail
[   19.441763] [STP-BTM] [W]_stp_btm_proc: opid id(0x7)(STP_OPID_BTM_PAGED_TRACE) error(-1)
[   19.441842] [MTK-WIFI] wifi_reset_start: Turn off p2p/ap mode
[   19.441843] [STP-PSM] [W]_stp_psm_put_op: RB_FULL, RB_COUNT=16 , RB_SIZE=16
[   19.441845] [STP-PSM] [W]_stp_psm_proc: +++++++++++ Put op to FreeOpQ fail, maybe disable/enable psm
[   19.441870] [WMT-CTRL][W]wmt_ctrl_rx:wmt_ctrl_rx be signaled, but no rx data(1966)
[   21.441614] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(19), show wmtd_thread stack!
[   21.456326] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   21.456342] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   21.456355] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   21.456369] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   21.456381] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   21.456391] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   21.456401] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   21.456412] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   21.456421] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   21.456432] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   21.456447] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   21.456463] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   21.456474] [WMT-LIB][W]wmt_lib_hw_state_show:WMT_OPID_HW_STATE_SHOW failed
[   23.451669] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(11), show wmtd_thread stack!
[   23.466709] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   23.466731] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   23.466748] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   23.466766] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   23.466781] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   23.466792] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   23.466808] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   23.466831] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   23.466848] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   23.466869] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   23.466887] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   23.466904] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   23.466915] [WMT-LIB][W]wmt_lib_hw_rst:WMT_OPID_HW_RST failed
[   23.466923] [WMT-LIB][E]wmt_lib_cmb_rst(1674):[whole chip reset] fail at wmt_lib_hw_rst!
[   25.471611] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(19), show wmtd_thread stack!
[   25.486285] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   25.486300] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   25.486313] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   25.486328] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   25.486339] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   25.486350] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   25.486360] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   25.486370] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   25.486379] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   25.486390] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   25.486405] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   25.486419] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   25.486430] [WMT-LIB][W]wmt_lib_hw_state_show:WMT_OPID_HW_STATE_SHOW failed
[   27.481631] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(11), show wmtd_thread stack!
[   27.496216] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   27.496230] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   27.496244] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   27.496258] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   27.496270] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   27.496281] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   27.496291] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   27.496301] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   27.496311] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   27.496322] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   27.496337] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   27.496351] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   27.496362] [WMT-LIB][W]wmt_lib_hw_rst:WMT_OPID_HW_RST failed
[   27.496370] [WMT-LIB][E]wmt_lib_cmb_rst(1674):[whole chip reset] fail at wmt_lib_hw_rst!
[   29.501653] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(19), show wmtd_thread stack!
[   29.516511] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   29.516527] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   29.516537] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   29.516548] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   29.516561] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   29.516572] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   29.516582] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   29.516592] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   29.516602] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   29.516614] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   29.516628] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   29.516644] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   29.516656] [WMT-LIB][W]wmt_lib_hw_state_show:WMT_OPID_HW_STATE_SHOW failed
[   30.091602] br0: port 1(eth1) entered forwarding state
[   30.091671] br0: port 2(eth0) entered forwarding state
[   31.511696] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(11), show wmtd_thread stack!
[   31.526371] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   31.526391] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   31.526406] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   31.526422] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   31.526434] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   31.526445] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   31.526455] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   31.526466] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   31.526476] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   31.526487] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   31.526502] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   31.526518] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   31.526529] [WMT-LIB][W]wmt_lib_hw_rst:WMT_OPID_HW_RST failed
[   31.526538] [WMT-LIB][E]wmt_lib_cmb_rst(1674):[whole chip reset] fail at wmt_lib_hw_rst!
[   33.531667] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(19), show wmtd_thread stack!
[   33.546432] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   33.546453] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   33.546467] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   33.546481] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   33.546493] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   33.546504] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   33.546514] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   33.546524] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   33.546534] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   33.546545] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   33.546560] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   33.546576] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   33.546589] [WMT-LIB][W]wmt_lib_hw_state_show:WMT_OPID_HW_STATE_SHOW failed
[   35.493761] [WDK]: kick Ex WDT
[   35.494368] [WDK]: kick Ex WDT
[   35.494519] [WDK]: kick Ex WDT
[   35.496202] [WDK]: kick Ex WDT
[   35.496352] [WDK]: kick Ex WDT
[   35.496536] [WDK]: kick Ex WDT
[   35.496686] [WDK]: kick Ex WDT
[   35.496900] [WDK]: kick Ex WDT
[   35.497053] [WDK]: kick Ex WDT
[   35.497206] [WDK]: kick Ex WDT
[   35.497390] [WDK]: kick Ex WDT
[   35.497540] [WDK]: kick Ex WDT
[   35.541696] [WMT-LIB][E]wmt_lib_put_act_op(1056):wait completion timeout, opId(11), show wmtd_thread stack!
[   35.551670] [<c0ad23f0>] (__schedule) from [<c0ad28c0>] (schedule+0x50/0xa8)
[   35.551689] [<c0ad28c0>] (schedule) from [<c0ad574c>] (schedule_timeout+0x144/0x244)
[   35.551702] [<c0ad574c>] (schedule_timeout) from [<c0700454>] (wmt_dev_rx_timeout+0x154/0x1b0)
[   35.551716] [<c0700454>] (wmt_dev_rx_timeout) from [<c06e4e9c>] (wmt_ctrl_rx+0x180/0x294)
[   35.551728] [<c06e4e9c>] (wmt_ctrl_rx) from [<c06e5824>] (wmt_ctrl+0x44/0xc0)
[   35.551738] [<c06e5824>] (wmt_ctrl) from [<c06e0c20>] (wmt_core_rx+0x34/0x88)
[   35.551748] [<c06e0c20>] (wmt_core_rx) from [<c06e2334>] (opfunc_pwr_sv+0x228/0x6dc)
[   35.551758] [<c06e2334>] (opfunc_pwr_sv) from [<c06e1ca0>] (wmt_core_opid_handler+0x34/0x54)
[   35.551767] [<c06e1ca0>] (wmt_core_opid_handler) from [<c06e1cec>] (wmt_core_opid+0x2c/0x6c)
[   35.551779] [<c06e1cec>] (wmt_core_opid) from [<c06eb044>] (wmtd_thread+0x1a0/0x254)
[   35.551793] [<c06eb044>] (wmtd_thread) from [<c0053dac>] (kthread+0x108/0x120)
[   35.551808] [<c0053dac>] (kthread) from [<c000fd38>] (ret_from_fork+0x14/0x3c)
[   35.551819] [WMT-LIB][W]wmt_lib_hw_rst:WMT_OPID_HW_RST failed
[   35.551827] [WMT-LIB][E]wmt_lib_cmb_rst(1674):[whole chip reset] fail at wmt_lib_hw_rst!

I get the above logs many times (almost one each minute?), sometimes it’s followed by the following log:

[  591.267678] [WMT-LIB][W]wmt_lib_hw_state_show:WMT_OPID_HW_STATE_SHOW failed
[  592.591955] [WMT-DEV][E]wmt_dev_rx_timeout(1430):gRxCount != 0 (-1), reset it!
[  592.664334] [WMT-CTRL][E]wmt_ctrl_rx(263):wmt_dev_rx_timeout: timeout,jiffies(29265),timeoutvalue(20000)
[  592.678873] [WMT-CORE][E]wmt_core_rx(346):WMT-CORE: wmt_core_ctrl failed: WMT_CTRL_RX, iRet:-1
[  592.692499] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 348, (0)
[  592.705570] [WMT-CORE][E]opfunc_pwr_sv(1269):wmt_core: read WAKEUP_EVT fail(-1) len(0, 6)
[  592.713707] [WMT-CTRL][E]wmt_ctrl_evt_parser(969):parser wmt evt from BTIF buf fail(0)
[  592.731869] [WMT-CORE][E]wmt_core_ctrl(500):WMT-CORE: wmt_core_ctrl failed: id(29), type(2), value(0) iRet:(-1)
[  592.747062] drivers/misc/mediatek/connectivity/common/conn_soc/core/wmt_core.c, 501, (0)
[  592.760289] [WMT-CTRL][W]wmt_ctrl_evt_err_trg_assert:wmt-ctrl:drv_type(4),reason(34)
[  592.760310] [STP-PSM] [E]_stp_psm_notify_stp(1007):ERROR! Action = WAKEUP, ACT state, the case should not happens
               
[  592.775826] [STP-PSM] [E]_stp_psm_notify_stp(1008):ERROR! state = 0, flag = 40
[  592.793488] [WMT-LIB][W]wmtd_thread:opid (7) failed, iRet(-1)
[  592.793510] [WMT-CORE][W]wmt_core_dump_func_state:[BE HW RST]status(b:0 f:0 g:0 w:2 lpbk:0 coredump:0 wmt:2 stp:0)
[  592.793522] [WMT-FUNC][W]wmt_func_wifi_off:WMT-FUNC: wmt wlan func on before wlan remove
[  592.793530] [MTK-WIFI] register_set_p2p_mode_handler: (pid 489) register set p2p mode handler   (null)
[  592.981555] [WMT-FUNC][W]wmt_func_wifi_off:WMT-FUNC: wmt call wlan remove ok
[  593.042226] vcn18: mode operation not allowed
[  593.115297] vcn18: mode operation not allowed
[  593.129054] [WMT-CONSYS-HW][E]mtk_wcn_consys_hw_reg_ctrl(292):Read CONSYS chipId(0xfffff093)
[  593.211423] [WMT-CORE][W]opfunc_hw_rst:WMT-CORE: -->[HW RST] ok
[  593.216702] [WMT-CORE][W]wmt_core_dump_func_state:[AF HW RST]status(b:0 f:0 g:0 w:0 lpbk:0 coredump:0 wmt:1 stp:0)
[  593.216868] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6620.defAnt'.
[  593.291907] [WMT-CONF][W]wmt_conf_parse:parse fail (mt6620.defAnt, mt6620_ant_m3.cfg, -1)
[  593.292114] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6628.defAnt'.
[  593.304472] [WMT-CONF][W]wmt_conf_parse:parse fail (mt6628.defAnt, mt6628_ant_m1.cfg, -1)
[  593.304487] [WMT-CONF][E]wmt_conf_parse_pair(323):unknown field 'mt6630.defAnt'.
[  593.316597] [WMT-CONF][W]wmt_conf_parse:parse fail (mt6630.defAnt, mt6630_ant_m1.cfg, -1)
[  593.318476] [WMT-IC][W]mtk_wcn_soc_ver_check:0x7623: read hw_ver (hw version) (0x8a00)
[  593.319373] [WMT-IC][W]mtk_wcn_soc_ver_check:0x7623: read fw_ver (rom version) (0x8a00)
[  593.319386] [WMT-IC][W]mtk_wcn_soc_ver_check:0x7623: ic info: SOC_CONSYS.E1 (0x8a00/0x8a00, WMTHWVER:0, patch_ext:_e1)
[  593.395408] [WMT-IC][W]mtk_wcn_soc_patch_dwn:wmt_core: patch dwn:0 frag(51, 268) ok
[  593.568587] [WMT-IC][W]mtk_wcn_soc_patch_dwn:wmt_core: patch dwn:0 frag(114, 52) ok
[  593.893784] [WMT-IC][W]mtk_wcn_soc_sw_init:co-clock disabled.
[  593.895192] [STP] mtk_wcn_stp_psm_enable:[W] STP Not Ready, Dont do Sleep/Wakeup
[  593.895658] [STP-BTM] [W]_stp_btm_put_op: RB_FULL(0xc11333b8) 64 ,rFreeOpQ = c11333b8, rActiveOpQ = c11334dc
[  593.895962] [MTK-WIFI] wifi_reset_end: WIFI state recovering...
[  593.896373] [WMT-FUNC][W]wmt_func_wifi_on:WMT-FUNC: wmt wlan func on before wlan probe
[  594.934076] [MTK-WIFI] register_set_p2p_mode_handler: (pid 489) register set p2p mode handler c07217a4
[  594.934107] [WMT-FUNC][W]wmt_func_wifi_on:WMT-FUNC: wmt call wlan probe ok
[  594.934120] [WMT-CORE][W]wmt_core_dump_func_state:[AF FUNC ON]status(b:0 f:0 g:0 w:2 lpbk:0 coredump:0 wmt:2 stp:0)
[  594.934195] [WMT-EXP][W]mtk_wcn_wmt_func_ctrl:OPID(3) type(3) ok
[  594.934205] [MTK-WIFI] wifi_reset_end: WMT turn on WIFI success!
[  594.935364] [MTK-WIFI] wifi_reset_end: Set wlan mode 1

Hi Enfide

Please remove the wpa_supplicant package when it’s in AP mode, because it will cause this issue.

Thank you Gary! Sorry for the question, I forgot about it…

To disable the service from systemd I executed:

systemctl mask wpa_supplicant.service

So I can still use wpa_supplicant on other interfaces. nmcli doesn’t work anymore for wifi devices but this is not an issue as we use hostapd to provide AP.

Hello do you have some news for Ap-Mode on Ubuntu?

Do you plan a new ubuntu image with APMode and Vlan/switch mode?

Or a clear instructions for use wifi apmode a switch/vlan?

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!