every few seconds, I get in debug console :
[72055.723846] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb0 error, result=0x1
[72055.731323] mwifiex_pcie 0000:01:00.0: Failed to set AP configuration
[72055.738027] mwifiex_pcie 0000:01:00.0: Failed to start AP
[72061.749946] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb0 error, result=0x1
[72061.757394] mwifiex_pcie 0000:01:00.0: Failed to set AP configuration
[72061.764123] mwifiex_pcie 0000:01:00.0: Failed to start AP
I used this :
http://linuxwireless.sipsolutions.net/en/users/Drivers/mwifiex/
to get the firmware...
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mrvl/pcieusb8997_combo_v4.bin
and add it to /lib/firmware/mrvl
and reboot, it look to load correcty :
[ 8.622071] mwifiex_pcie 0000:01:00.0: info: FW download over, size 634228 bytes
[ 9.463213] mwifiex_pcie 0000:01:00.0: WLAN FW is active
[ 9.532655] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p195)
[ 9.541211] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.1.p195)
But AP do not work at all :
BusyBox v1.33.1 (2021-06-13 22:02:19 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 21.02.0-rc3, r16172-2aba3e9784
-----------------------------------------------------
root@ultra:~# wifi status
{
"radio0": {
"up": true,
"pending": false,
"autostart": true,
"disabled": false,
"retry_setup_failed": false,
"config": {
"path": "soc/d0070000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0",
"hwmode": "11g",
"channel": "auto",
"cell_density": 0,
"log_level": 1,
"htmode": "HT20"
},
"interfaces": [
{
"section": "default_radio0",
"ifname": "wlan0",
"config": {
"mode": "ap",
"ssid": "ULTRA",
"encryption": "psk-mixed",
"key": "<***OBFUSCATED***>",
"network": [
"lan"
],
"mode": "ap"
},
"vlans": [
],
"stations": [
]
}
]
}
}
root@ultra:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'soc/d0070000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option hwmode '11g'
option channel 'auto'
option cell_density '0'
option log_level '1'
option htmode 'HT20'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'ULTRA'
option encryption 'psk-mixed'
option key '<***OBFUSCATED***>'
some more few details :
root@ultra:~# lspci
00:00.0 PCI bridge: Marvell Technology Group Ltd. 88F3700 [Armada 3700 Family] ARM SoC
01:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 2b42 (rev 11)
root@ultra:~# lsmod | grep wifi
cfg80211 303104 1 mwifiex
compat 12288 3 mwifiex_pcie,mwifiex,cfg80211
mwifiex 253952 1 mwifiex_pcie
mwifiex_pcie 36864 0
root@ultra:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdc5:0f7f:d0b5::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan0'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option name 'wlan0'
option promisc '1'
option acceptlocal '1'
root@ultra:~# iw dev
phy#0
Interface wlan0
ifindex 12
wdev 0x1
addr f0:ad:4e:10:17:05
type AP
channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz
txpower 0.00 dBm
root@ultra:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 1024
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
inet6 fe80::f2ad:4eff:fe10:c19e/64 scope link
valid_lft forever preferred_lft forever
3: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
4: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
5: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
6: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
inet 10.4.2.224/24 brd 10.4.2.255 scope global wan
valid_lft forever preferred_lft forever
inet6 2a01:e0a:8ab:34b0:f2ad:4eff:fe10:c19e/64 scope global dynamic noprefixroute
valid_lft 86204sec preferred_lft 86204sec
inet6 fe80::f2ad:4eff:fe10:c19e/64 scope link
valid_lft forever preferred_lft forever
9: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether f0:ad:4e:10:c1:9e brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fdc5:f7f:d0b5::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::f2ad:4eff:fe10:c19e/64 scope link
valid_lft forever preferred_lft forever
12: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP100> mtu 1500 qdisc mq master br-lan state DOWN qlen 1000
link/ether f0:ad:4e:10:17:05 brd ff:ff:ff:ff:ff:ff
root@ultra:~# iw dev wlan0 get power_save
Power save: on
tried this, because of bug reports found on the Internet :
root@ultra:~# iw dev wlan0 set power_save off
root@ultra:~# iw dev wlan0 get power_save
Power save: off
But no changes and still get same errors !
wifi up
root@ultra:/# [73687.555780] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0x20 error, result=0x1
[73687.584664] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xd1 error, result=0x1
[73687.848831] br-lan: port 5(wlan2) entered blocking state
[73687.854325] br-lan: port 5(wlan2) entered disabled state
[73687.860293] device wlan2 entered promiscuous mode
[73687.865398] br-lan: port 5(wlan2) entered blocking state
[73687.870958] br-lan: port 5(wlan2) entered forwarding state
[73688.559114] br-lan: port 5(wlan2) entered disabled state
root@ultra:/# [73694.274948] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb0 error, result=0x1
[73694.282184] mwifiex_pcie 0000:01:00.0: Failed to set AP configuration
[73694.288850] mwifiex_pcie 0000:01:00.0: Failed to start AP
[73700.277802] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb0 error, result=0x1
[73700.285139] mwifiex_pcie 0000:01:00.0: Failed to set AP configuration
[73700.291922] mwifiex_pcie 0000:01:00.0: Failed to start AP
[73706.306665] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb0 error, result=0x1
[73706.314010] mwifiex_pcie 0000:01:00.0: Failed to set AP configuration
[73706.320818] mwifiex_pcie 0000:01:00.0: Failed to start AP