MT76-Test how to enable it

How to enable in the RT-AX53u the mt76-test commands to set rx and tx of packages and dump stats to do testing in rf isolated aerias.
Have tried to set it up and are abel to compile but the command like this is not responding :
mt76-test phy0 set tx_ipg=50
mt76-test phy0 set tx_rate_mode=ofdm
mt76-test phy0 set tx_rate_idx=7
mt76-test phy0 set tx_rate_sgi=0
mt76-test phy0 set tx_ltf=0
mt76-test phy0 set tx_rate_ldpc=1
mt76-test phy0 set tx_length=1024
mt76-test phy0 set tx_antenna=1
mt76-test phy0 set tx_count=1000000
mt76-test phy0 set aid=1
mt76-test phy0 set state=tx_frames
mt76-test phy0 set tx_power=40,0,0,0

Also i se that in the link : OpenWrt Firmware Selector i can spesefy this :
base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-crypto-hw-eip93 kmod-gpio-button-hotplug kmod-leds-gpio kmod-nft-offload libc libgcc libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls kmod-mt7915-firmware kmod-usb3 kmod-usb-ledtrig-usbport luci mt76-test kmod-mac80211 kmod-cfg80211 kmod-mt7603 kmod-mt7615e kmod-mt76x2 iw wireless-tools nano-plus vim iw

but i can not include the command cfg80211TESTMODE=1 in this so is this the reasion or what is wrong.

Please post output of

ubus call system board
cat /etc/config/wireless

root@OpenWrt:~# ubus call system board
c/config/wireless{
"kernel": "6.6.67",
"hostname": "OpenWrt",
"system": "MediaTek MT7621 ver:1 eco:3",
"model": "ASUS RT-AX53U",
"board_name": "asus,rt-ax53u",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.0-rc4",
"revision": "r28211-d55754ce0d",
"target": "ramips/mt7621",
"description": "OpenWrt 24.10.0-rc4 r28211-d55754ce0d",
"builddate": "1734915335"
}
}
root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
option type 'mac80211'
option path 'virtual/mac80211_hwsim/hwsim0'
option band '6g'
option channel 'auto'
option htmode 'EHT80'
option disabled '1'

config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
option disabled '1'

config wifi-device 'radio1'
option type 'mac80211'
option path 'virtual/mac80211_hwsim/hwsim1'
option band '6g'
option channel 'auto'
option htmode 'EHT80'
option disabled '1'

config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
option disabled '1'

root@OpenWrt:~#

hwsim does look like LLM chatbot hallucination, reset device to defaults to regain access to real radio hardware.

Did so but same, but by looking at the boot i se this :slight_smile:
root@OpenWrt:~# dmesg | grep mt7915
[ 16.851028] mt7915e_hif 0000:01:00.0: enabling device (0000 -> 0002)
[ 16.863919] mt7915e 0000:02:00.0: enabling device (0000 -> 0002)
[ 17.037366] mt7915e 0000:02:00.0: Direct firmware load for mediatek/mt7915_rom_patch.bin failed with error -2
[ 17.047365] mt7915e 0000:02:00.0: Falling back to sysfs fallback for: mediatek/mt7915_rom_patch.bin
[ 17.583871] mt7915e: probe of 0000:02:00.0 failed with error -12

Try to upgrade it but dont work.

And? What are you trying to say?

Either way your attempt at 10W radio power will not be helped out

40 means 20dbm output so it is in the range of 100mW. and by your feedback i was looking more in to the diff on working and this non working build and it seems like the selection of kmod-mac80211-hwsim is not good so i removed this in the build and now it is working. I can use the mt76-test mode commands to configure the raidio and send test packages.

You were asked to use default openwrt image to get rid of your chatbot modifications. Please confirm it by reposting wireless config and installed package list using opkg, reading its manual.