From: Ben Greear But still log it to dmesg. Signed-off-by: Ben Greear --- net/mac80211/driver-ops.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 51bf3c7822a7..e2283d7dcd1e 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -1035,8 +1035,10 @@ static inline void drv_remove_chanctx(struct ieee80211_local *local, might_sleep(); lockdep_assert_wiphy(local->hw.wiphy); - if (WARN_ON(!ctx->driver_present)) + if (WARN_ON_ONCE(!ctx->driver_present)) { + pr_err("drv-remove-chanctx, NOT driver_present, not sending request to driver."); return; + } trace_drv_remove_chanctx(local, ctx); if (local->ops->remove_chanctx) -- 2.42.0