From patchwork Fri Nov 12 16:50:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 12617149 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 305CDC433F5 for ; Fri, 12 Nov 2021 16:50:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8A1A6103A for ; Fri, 12 Nov 2021 16:50:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235440AbhKLQxf (ORCPT ); Fri, 12 Nov 2021 11:53:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:54228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234342AbhKLQxf (ORCPT ); Fri, 12 Nov 2021 11:53:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E3D6060F70; Fri, 12 Nov 2021 16:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636735844; bh=VACVVKnGxgphTCRixT/BnWjzWhrJ8Z5s45QMTTcmOqc=; h=From:To:Cc:Subject:Date:From; b=D7n9KlgQY5GGccmQv/CEJ9+NY0t5Gz/y5Qu2rPbwGSd+hi9M74rohvqd7EqGC5qPM QJpMoG8dG5U2QNm433ksPkVEKFx5dMF1kP+45sqqjkDPhLRBaYPh4Uw77G+3j7xckx p/9atF7lJ+/IFuzzENzqipOmAYkIIxXI+ZEbS4kN91ijCEZwHMQEtqz01aLEufJwZk 86msvJrO/Yjh/Azy9odjAyKsohcykovOYYr77pymXG3OTYv5YVhDEQX+SUFegOaDlW DXbl41o1PAy+UR87nACPNTFPJi8MJPUVDnhJ9tsTiijvIQy5I2h476+rI75u/3Aubj mBSyJzD5eTKzg== From: Lorenzo Bianconi To: linux-wireless@vger.kernel.org Cc: lorenzo.bianconi@redhat.com Subject: [PATCH] iw: event: report missing radar events Date: Fri, 12 Nov 2021 17:50:34 +0100 Message-Id: <6a7cd7bd2179578335cc95b158faf21ba3f7876a.1636730634.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Properly report the two following radar events: - NL80211_RADAR_PRE_CAC_EXPIRED - NL80211_RADAR_CAC_STARTED Signed-off-by: Lorenzo Bianconi --- event.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/event.c b/event.c index e0908dd..ad29189 100644 --- a/event.c +++ b/event.c @@ -1233,6 +1233,12 @@ static int print_event(struct nl_msg *msg, void *arg) case NL80211_RADAR_NOP_FINISHED: printf("%d MHz: NOP finished\n", freq); break; + case NL80211_RADAR_PRE_CAC_EXPIRED: + printf("%d MHz: PRE-CAC expired\n", freq); + break; + case NL80211_RADAR_CAC_STARTED: + printf("%d MHz: CAC started\n", freq); + break; default: printf("%d MHz: unknown radar event\n", freq); }