#25484·openwrt

MT7981 STA: 802.11k RRM beacon measurement triggers ~6.5s full-channel scan and packet loss

Author: fifty-freeCreated Sep 29, 2026Updated Sep 30, 2026
Labelstarget/mediatekbugOfficial ImageSupported Devicerelease/25.12

Describe the bug

Description

When OpenWrt is used as a Wi-Fi STA uplink on MediaTek MT7981, an upstream AP periodically sends 802.11k / RRM Beacon Measurement Requests.

wpa_supplicant responds by triggering a full 2.4 GHz scan.

On MT7981 the scan takes about 6.5 seconds, and during this time the STA uplink effectively stops forwarding traffic, causing packet loss and latency spikes.

The issue is reproducible and the packet loss correlates exactly with the scan interval.

OpenWrt version

r33051-f5dae5ece4

OpenWrt release

25.12.5

OpenWrt target/subtarget

mediatek/filogic

Device

Cudy TR3000 256MB v1

Image kind

Official downloaded image

Steps to reproduce

  1. Use OpenWrt 25.12.5 on a Cudy TR3000 256MB v1 (cudy,tr3000-256mb-v1, MediaTek MT7981).
  2. Configure the 2.4 GHz radio as a Wi-Fi STA uplink.
  3. Connect to an upstream AP that sends 802.11k / RRM Beacon Measurement Requests.
  4. Keep a continuous ping running to the upstream router:
bash
ping 192.168.0.1
  1. In parallel, monitor wireless events:
bash
iw event -t
  1. Optionally trace wpa_supplicant:
bash
strace -tt -f \
  -e trace=sendmsg,recvmsg \
  -p $(pidof wpa_supplicant) \
  -o /tmp/wpa.strace
  1. Wait for an RRM Beacon Measurement Request from the upstream AP.

Observed sequence in strace:

recvmsg(...) {cmd=0x3b, ...}     # NL80211_CMD_FRAME
sendmsg(...) {cmd=0x21, ...}     # NL80211_CMD_TRIGGER_SCAN
...
~6.5 seconds
...
recvmsg(...) {cmd=0x22, ...}     # NL80211_CMD_NEW_SCAN_RESULTS

Example timing:

08:56:59.382142  recv NL80211_CMD_FRAME
08:56:59.398597  send NL80211_CMD_TRIGGER_SCAN
08:57:05.920175  recv NL80211_CMD_NEW_SCAN_RESULTS

The scan request contains the SSID and the full 2.4 GHz frequency list.

The same interval is visible in iw event -t:

1790672039.354949: phy0-sta0 (phy #0): unknown event 33
1790672045.873795: phy0-sta0 (phy #0): unknown event 34
1790672045.877706: phy0-sta0 (phy #0): unknown event 60

The interval between event 33 and event 34 is approximately 6.5 seconds.

Actual behaviour

When the upstream AP sends an 802.11k / RRM Beacon Measurement Request, wpa_supplicant triggers a full 2.4 GHz scan.

On MT7981, this scan takes approximately 6.5 seconds.

During the scan, the STA uplink effectively stops forwarding normal traffic, causing packet loss and latency spikes.

Example:

64 bytes from 192.168.0.1: seq=63 ttl=64 time=22.826 ms
64 bytes from 192.168.0.1: seq=66 ttl=64 time=2.902 ms

Packets seq=64 and seq=65 were lost during the scan interval.

The problem is reproducible and packet loss correlates with the RRM-triggered scan.

Setting a normal supplicant frequency restriction such as:

freq_list=2437

does not prevent the RRM-triggered scan from using the full 2.4 GHz frequency list.

The issue disappears when wpa_supplicant is started with:

driver_param=no_rrm=1

The parameter must be present when the STA interface is created. Setting it only at runtime was not sufficient.

Expected behaviour

An 802.11k / RRM Beacon Measurement Request should not cause a multi-second interruption of STA connectivity.

The STA uplink should continue forwarding normal traffic while measurements are performed, or the measurement scan should be short enough not to cause noticeable packet loss.

If disabling RRM is required as a workaround, OpenWrt should ideally provide a supported way to pass:

driver_param=no_rrm=1

to the STA wpa_supplicant instance through UCI / netifd configuration.

Additional info

Device and system:

Model: Cudy TR3000 256MB v1
Board: cudy,tr3000-256mb-v1
SoC: MediaTek MT7981
Target: mediatek/filogic
OpenWrt: 25.12.5
Revision: r33051-f5dae5ece4
Kernel: 6.12.94
Root filesystem: squashfs

Relevant wireless packages:

kmod-cfg80211-6.12.94.6.18.26-r1
kmod-mac80211-6.12.94.6.18.26-r1
kmod-mt76-connac-6.12.94.2026.03.19~39c960c3-r2
kmod-mt76-core-6.12.94.2026.03.19~39c960c3-r2
kmod-mt7915e-6.12.94.2026.03.19~39c960c3-r2
kmod-mt7981-firmware-6.12.94.2026.03.19~39c960c3-r2
wpad-basic-mbedtls-2025.08.26~ca266cc2-r1

wpa_supplicant version:

wpa_supplicant v2.12-devel

Example STA connection:

Connected to 48:29:e4:8c:fc:df (on phy0-sta0)
SSID: QWERTY
freq: 2437
signal: -43 dBm

The signal is strong and stable.

The STA configuration is generated by:

/usr/share/ucode/wifi/supplicant.uc

I could not find an existing UCI option for passing driver_param to the STA supplicant instance.

As a workaround, I modified supplicant.uc to add:

ucode
interface.config.driver_param = "no_rrm=1";

and changed:

ucode
append_vars(interface.config, [ 'country', 'beacon_int', 'freq_list' ]);

to:

ucode
append_vars(interface.config, [ 'country', 'beacon_int', 'freq_list', 'driver_param' ]);

This causes the generated config to contain:

driver_param=no_rrm=1

before the STA interface is created.

After this change, the RRM-triggered long scans and associated packet loss disappear.

Diffconfig

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.