All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
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	[thread overview]
Message-ID: <6a7cd7bd2179578335cc95b158faf21ba3f7876a.1636730634.git.lorenzo@kernel.org> (raw)

Properly report the two following radar events:
- NL80211_RADAR_PRE_CAC_EXPIRED
- NL80211_RADAR_CAC_STARTED

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 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);
 		}
-- 
2.31.1


                 reply	other threads:[~2021-11-12 16:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a7cd7bd2179578335cc95b158faf21ba3f7876a.1636730634.git.lorenzo@kernel.org \
    --to=lorenzo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.