Skip to content

ModemManager: ModemManager keeps reloading wifi interface #28994

@mlo40

Description

@mlo40

Package Name

ModemManager

Maintainer

(@feckert)

OpenWrt Version

25.12.1

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce

1.Installed modemmanager luci-proto-modemmanager kmod-usb-net-qmi-wwan kmod-usb-serial-option kmod-mhi-bus kmod-mhi-net kmod-mhi-pci-generic kmod-mhi-wwan-ctrl kmod-mhi-wwan-mbim kmod-qrtr-mhi
2.Configured multiple WiFi AP (2.4GHz, 5GHz, 6GHz)
3.Configured modemmanager wan interface
4.Started observing periodic wifi drops/disconnects

Actual Behaviour

Modemmanager causing constant hotplug remove/add events for all phy-ap's

Device: Banana Pi BPI-R4 (MediaTek MT7988)
WiFi Card: MediaTek MT7996E (PCIe: 0000:01:00.0)
ModemManager Version: 1.24.0
Modem RM520NGLAAR03A01M4G

I currently have this workaround

/lib/udev/rules.d/78-mm-wifi-blacklist.rules

ACTION!="add|change|move|bind", GOTO="mm_wifi_blacklist_end"
SUBSYSTEM=="net", DEVPATH=="/devices/pci0000:00/0000:00:00.0/0000:01:00.0/*", ENV{ID_MM_DEVICE_IGNORE}="1"
LABEL="mm_wifi_blacklist_end"

/etc/init.d/modemmanager restart

kernal.log
system.log

snippet of log exhibiting behavior

[25 Mar 2026, 20:39:16 UTC] daemon.info: ModemManager[9742]: hotplug: add network interface phy0.1-ap0: event processed
[25 Mar 2026, 20:39:16 UTC] kern.info: [ 3574.497241] mt7996e 0000:01:00.0 phy0.1-ap0: entered promiscuous mode
[25 Mar 2026, 20:39:16 UTC] daemon.warn: [2724]: [base-manager] additional port phy0.1-ap0 in device '/sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0' added after device probing has already finished
[25 Mar 2026, 20:39:16 UTC] daemon.info: [2724]: [base-manager] last device '/sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0' probing had failed, will retry
[25 Mar 2026, 20:39:16 UTC] kern.info: [ 3574.509690] br-lan: port 8(phy0.1-ap0) entered blocking state
[25 Mar 2026, 20:39:16 UTC] kern.info: [ 3574.515453] br-lan: port 8(phy0.1-ap0) entered forwarding state
[25 Mar 2026, 20:39:16 UTC] daemon.notice: hostapd: phy0.1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
[25 Mar 2026, 20:39:16 UTC] kern.info: [ 3574.521755] br-lan: port 8(phy0.1-ap0) entered disabled state
[25 Mar 2026, 20:39:16 UTC] daemon.notice: hostapd: phy0.1-ap0: interface state COUNTRY_UPDATE->HT_SCAN
[25 Mar 2026, 20:39:17 UTC] kern.info: [ 3575.032136] br-lan: port 8(phy0.1-ap0) entered blocking state
[25 Mar 2026, 20:39:17 UTC] kern.info: [ 3575.037893] br-lan: port 8(phy0.1-ap0) entered forwarding state
[25 Mar 2026, 20:39:17 UTC] daemon.notice: netifd: Network device 'phy0.1-ap0' link is up
[25 Mar 2026, 20:39:17 UTC] daemon.notice: hostapd: phy0.1-ap0: interface state HT_SCAN->ENABLED
[25 Mar 2026, 20:39:17 UTC] daemon.notice: hostapd: phy0.1-ap0: AP-ENABLED
[25 Mar 2026, 20:39:18 UTC] daemon.warn: odhcpd[2497]: No default route present, setting ra_lifetime to 0!
[25 Mar 2026, 20:39:18 UTC] daemon.info: dnsmasq[1]: read /etc/hosts - 12 names
[25 Mar 2026, 20:39:18 UTC] daemon.info: dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 5 names
[25 Mar 2026, 20:39:18 UTC] daemon.info: dnsmasq[1]: read /tmp/hosts/odhcpd.hosts.lan - 4 names
[25 Mar 2026, 20:39:18 UTC] daemon.info: dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
[25 Mar 2026, 20:39:20 UTC] daemon.notice: [2724]: [base-manager] couldn't check support for device '/sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': not supported by any plugin
[25 Mar 2026, 20:40:55 UTC] daemon.notice: hostapd: Set MLD config: [ ]
[25 Mar 2026, 20:40:55 UTC] daemon.notice: hostapd: Reload all interfaces
[25 Mar 2026, 20:40:55 UTC] daemon.notice: wpa_supplicant[2362]: Set MLD config: [ ]
[25 Mar 2026, 20:40:55 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.0
[25 Mar 2026, 20:40:55 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.1
[25 Mar 2026, 20:40:55 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.2
[25 Mar 2026, 20:40:56 UTC] daemon.notice: netifd: radio1 (10086): wifi-scripts: Starting
[25 Mar 2026, 20:40:56 UTC] daemon.notice: netifd: radio1 (10086): command failed: Not supported (-95)
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Set MLD config: [ ]
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Reload all interfaces
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.0
[25 Mar 2026, 20:40:56 UTC] daemon.notice: wpa_supplicant[2362]: Set MLD config: [ ]
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.1
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Reloaded settings for phy phy0.2
[25 Mar 2026, 20:40:56 UTC] daemon.notice: wpa_supplicant[2362]: Set new config for phy phy0.1
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Set new config for phy phy0.1: /var/run/hostapd-phy0.1.conf
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Restart interface for phy phy0.1
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: Remove interface 'phy0.1'
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: phy0.1-ap0: interface state ENABLED->DISABLED
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: phy0.1-ap0: AP-DISABLED
[25 Mar 2026, 20:40:56 UTC] daemon.notice: hostapd: phy0.1-ap0: CTRL-EVENT-TERMINATING
[25 Mar 2026, 20:40:56 UTC] daemon.err: hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
[25 Mar 2026, 20:40:56 UTC] kern.info: [ 3673.612078] mt7996e 0000:01:00.0 phy0.1-ap0: left allmulticast mode
[25 Mar 2026, 20:40:56 UTC] kern.info: [ 3673.618363] mt7996e 0000:01:00.0 phy0.1-ap0: left promiscuous mode
[25 Mar 2026, 20:40:56 UTC] kern.info: [ 3673.624609] br-lan: port 8(phy0.1-ap0) entered disabled state
[25 Mar 2026, 20:40:56 UTC] daemon.notice: netifd: Network device 'phy0.1-ap0' link is down
[25 Mar 2026, 20:40:56 UTC] daemon.info: ModemManager[10117]: hotplug: remove network

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions