mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
scan: don't print notification if sc is not found
If this scan is not for any IWD wdev's don't print
This commit is contained in:
parent
ceb6da81b3
commit
34348fcb42
@ -1811,8 +1811,6 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
|
|||||||
|
|
||||||
cmd = l_genl_msg_get_command(msg);
|
cmd = l_genl_msg_get_command(msg);
|
||||||
|
|
||||||
l_debug("Scan notification %s(%u)", nl80211cmd_to_string(cmd), cmd);
|
|
||||||
|
|
||||||
if (nl80211_parse_attrs(msg, NL80211_ATTR_WDEV, &wdev_id,
|
if (nl80211_parse_attrs(msg, NL80211_ATTR_WDEV, &wdev_id,
|
||||||
NL80211_ATTR_WIPHY, &wiphy_id,
|
NL80211_ATTR_WIPHY, &wiphy_id,
|
||||||
NL80211_ATTR_UNSPEC) < 0)
|
NL80211_ATTR_UNSPEC) < 0)
|
||||||
@ -1822,6 +1820,8 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
|
|||||||
if (!sc)
|
if (!sc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
l_debug("Scan notification %s(%u)", nl80211cmd_to_string(cmd), cmd);
|
||||||
|
|
||||||
if (!l_genl_attr_init(&attr, msg))
|
if (!l_genl_attr_init(&attr, msg))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user