[PATCH 0/2] wifi: ti: unwind failed interface additions
From: Jiale Yao
Date: Sun Oct 18 2026 - 21:35:26 EST
mac80211 does not call remove_interface after add_interface returns an
error. Both wl1251 and wlcore retain state or resources acquired before
fallible setup operations, so a failed add can affect later interface
requests or leak firmware and host resources.
Make both add paths failure-atomic. The first patch delays publication
of the wl1251 vif and restores the previous interface state. The second
patch releases wlcore per-vif allocations and disables firmware roles
when later setup fails.
Jiale Yao (2):
wifi: wl1251: unwind failed interface additions
wifi: wlcore: unwind failed interface additions
drivers/net/wireless/ti/wl1251/main.c | 17 +++++--
drivers/net/wireless/ti/wlcore/main.c | 66 +++++++++++++++++----------
2 files changed, 56 insertions(+), 27 deletions(-)
--
2.34.1