mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-19 01:42:33 +01:00
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:
parent
e565b75032
commit
5118f08d79
@ -7254,8 +7254,10 @@ static void print_message(struct nlmon *nlmon, const struct timeval *tv,
|
|||||||
if (nlmon->nowiphy && (cmd == NL80211_CMD_NEW_WIPHY))
|
if (nlmon->nowiphy && (cmd == NL80211_CMD_NEW_WIPHY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (nlmon->noscan && ((cmd == NL80211_CMD_NEW_SCAN_RESULTS) ||
|
if (nlmon->noscan && L_IN_SET(cmd, NL80211_CMD_NEW_SCAN_RESULTS,
|
||||||
(cmd == NL80211_CMD_TRIGGER_SCAN)))
|
NL80211_CMD_NEW_SURVEY_RESULTS,
|
||||||
|
NL80211_CMD_TRIGGER_SCAN,
|
||||||
|
NL80211_CMD_GET_SURVEY))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user