From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53A6D3FB7FF for ; Thu, 12 Mar 2026 17:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.129.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773334867; cv=none; b=fe/KThdsW3Ik59xbmctyuq1Oy9+VYXWjsDG5zGU17JoW9vb8ihagF3jYXJQ7KZeY3oJkOzYcejL/6lGTH91v9smJAkSzYozrToicEdbrK6JurZ8lpMf+gKpuWFWfXcFbm1t8jOo95iaWkdcmDRWAOAWdeJqPc4Egm19ek/4xt0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773334867; c=relaxed/simple; bh=7IBnd4j8AKZX7520K9fBRNpiM4oT265ej985T884Viw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ho5Oy0h6C8sLSaznMsxH6lASPwIcJ7T+FA839DpUjSImp7pfXV0elsJc5+uQYHtbVEgHmL8QWGY+rTZZLO6spFrA88GRW4NyI4zgPbyRkxFK1jEaY8YPJI7y44YoZm+5NytwIVrADIvrleUxcvOI1qy9uypqCcvkr6HoPQ0TrdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com; spf=pass smtp.mailfrom=candelatech.com; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b=BKjq5jVe; arc=none smtp.client-ip=148.163.129.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=candelatech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=candelatech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="BKjq5jVe" X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 9D7FE2800BC for ; Thu, 12 Mar 2026 17:01:03 +0000 (UTC) Received: from ben-dt5.candelatech.com (firewall.candelatech.com [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id 2420413C2B3; Thu, 12 Mar 2026 10:01:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 2420413C2B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1773334861; bh=7IBnd4j8AKZX7520K9fBRNpiM4oT265ej985T884Viw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BKjq5jVe5ZA2Ba4fZarTpbFfuIbLsJqrkZsytZ7jvJdJoSM8msw1RIvWPsMtsW9eC mcUBD48RwBfl98KLovmtQETACK77YFNen36YFAS2Vjhcvt7Indn4SSk+vsjwz9Ohxz J6JfN3yloao8uwYKrhRpQQbUyXLuUpojBL/+kcVk= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH wireless-next v2 14/28] wifi: mac80211: Add dmesg log regarding warn-on in drv-stop. Date: Thu, 12 Mar 2026 10:00:12 -0700 Message-ID: <20260312170026.285494-15-greearb@candelatech.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20260312170026.285494-1-greearb@candelatech.com> References: <20260312170026.285494-1-greearb@candelatech.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MDID: 1773334864-HIGaMGxFa0Lv X-PPE-STACK: {"stack":"us5"} X-MDID-O: us5;ut7;1773334864;HIGaMGxFa0Lv;;f7146c1849a4b08a52804beb1c1cdf45 X-PPE-TRUSTED: V=1;DIR=OUT; From: Ben Greear And make it WARN_ON_ONCE. Signed-off-by: Ben Greear --- net/mac80211/driver-ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/driver-ops.c b/net/mac80211/driver-ops.c index 59998d0af3ff..397a0281412a 100644 --- a/net/mac80211/driver-ops.c +++ b/net/mac80211/driver-ops.c @@ -38,8 +38,10 @@ void drv_stop(struct ieee80211_local *local, bool suspend) might_sleep(); lockdep_assert_wiphy(local->hw.wiphy); - if (WARN_ON(!local->started)) + if (WARN_ON_ONCE(!local->started)) { + pr_err("mac80211: drv-stop called but local is not started.\n"); return; + } trace_drv_stop(local, suspend); local->ops->stop(&local->hw, suspend); -- 2.42.0