monitor: Don't dump survey results with noscan

Survey is used after each scan, creating quite a bit of spam.  Silence
survey results if noscan is set.
This commit is contained in:
Denis Kenzior 2024-08-11 22:40:49 -05:00
parent e565b75032
commit 5118f08d79
1 changed files with 4 additions and 2 deletions

View File

@ -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) {