[PATCH 0/4] wifi: unwind failed interface setup and recovery
From: Jiale Yao
Date: Wed Oct 28 2026 - 01:09:58 EST
Several wireless interface setup and reset recovery paths publish host
pointers or create firmware state before later operations which can fail.
Their error paths either retain pointers to vifs that mac80211 will free
or continue after firmware interface restoration has failed.
Clear the published ath10k and iwlwifi pointers on add failure. Check the
mt7921 and mt7925 firmware restore results, remove partial state and stop
configuring the affected interface. Each patch fixes an independent
driver path and can be applied separately.
Jiale Yao (4):
wifi: ath10k: clear monitor interface after add failure
wifi: iwlwifi: mvm: clear P2P device pointer on add failure
wifi: mt76: mt7921: unwind interface restore failures
wifi: mt76: mt7925: unwind link restore failures
drivers/net/wireless/ath/ath10k/mac.c | 1 +
.../wireless/intel/iwlwifi/mvm/mld-mac80211.c | 5 +++-
.../net/wireless/mediatek/mt76/mt7921/mac.c | 16 +++++++++---
.../net/wireless/mediatek/mt76/mt7925/mac.c | 26 ++++++++++++++++---
4 files changed, 41 insertions(+), 7 deletions(-)
--
2.34.1