]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: Disable napi when removing device
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Wed, 8 Jul 2026 14:43:47 +0000 (16:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 22 Jul 2026 06:09:05 +0000 (06:09 +0000)
commit13b7e6a96a005c656d38f3da51581deaf9866375
treeb7e1b4d13e15a22b792f1dce41b574c543d1d545
parent39afc46c0243d10b7795e6e6cf4ae91f41732120
wifi: mt76: Disable napi when removing device

Unloading the mt7915e module with a MT7916 triggers multiples WARN in
__netif_napi_del_locked() and in page_pool_disable_direct_recycling()
because the driver does not disable the napi before destroying it.

This is troublesome since on MT7916 it is required to unload the module
and reinsert it with a different enable_6ghz parameter to change the
frequency.  The system generally becomes unstable after reinserting the
module.

Fix it by disabling napi before deleting it.  Also, do not delete napi
on WED queues since napi is neither used nor initialized on them.

Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Link: https://patch.msgid.link/20260708144615.24092-1-nicolas.cavallari@green-communications.fr
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c