[PATCH ath-current 0/3] wifi: ath11k: give the regulatory state the lifetime of the device
From: Zhao Li
Date: Wed Nov 18 2026 - 10:30:26 EST
ab->reg_info_store, with the rules it holds, and the default_regd[] and
new_regd[] domains live as long as struct ath11k_base, but their
teardown does not follow that lifetime. The SERVICE_READY_EXT error
path frees the store from a transient event handler, and the remove
paths that follow a failed start never call ath11k_reg_free().
Patch 1 lets ath11k_reg_free() cope with a store that was never
allocated. Patch 2 moves ath11k_reg_free() into ath11k_core_free(), so
that every teardown path frees the regulatory state. Patch 3 then drops
the free from the SERVICE_READY_EXT error path. In this order no step
adds a crash or a leak.
A separate patch, sent on its own, makes a failed SERVICE_READY_EXT
fail the start instead of letting SERVICE_READY_EXT2 complete it.
Zhao Li (3):
wifi: ath11k: don't walk an unallocated regulatory info store
wifi: ath11k: free the regulatory state when the device is freed
wifi: ath11k: keep the regulatory info store on a SERVICE_READY_EXT
error
drivers/net/wireless/ath/ath11k/core.c | 2 +-
drivers/net/wireless/ath/ath11k/reg.c | 6 ++++--
drivers/net/wireless/ath/ath11k/wmi.c | 9 ---------
3 files changed, 5 insertions(+), 12 deletions(-)
base-commit: b1ed5a45b994a6473ca1cf34f35a1bf87f1d8e2a
--
2.56.1