Message ID | 20240823161848.485685-2-denkenz@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/5] defs: Add defs.h to hold certain global definitions | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | success | GitLint |
diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 214246ea72c2..f0ffff90b1d7 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -7254,8 +7254,10 @@ static void print_message(struct nlmon *nlmon, const struct timeval *tv, if (nlmon->nowiphy && (cmd == NL80211_CMD_NEW_WIPHY)) return; - if (nlmon->noscan && ((cmd == NL80211_CMD_NEW_SCAN_RESULTS) || - (cmd == NL80211_CMD_TRIGGER_SCAN))) + if (nlmon->noscan && L_IN_SET(cmd, NL80211_CMD_NEW_SCAN_RESULTS, + NL80211_CMD_NEW_SURVEY_RESULTS, + NL80211_CMD_TRIGGER_SCAN, + NL80211_CMD_GET_SURVEY)) return; switch (type) {