3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

netdev: Skip non-STA interfaces

This commit is contained in:
Denis Kenzior 2016-07-19 16:03:26 -05:00
parent 94f204b994
commit c977b8092c

View File

@ -1406,6 +1406,16 @@ static void netdev_create_from_genl(struct l_genl_msg *msg)
return;
}
if (!iftype) {
l_warn("Missing iftype attribute");
return;
}
if (*iftype != NL80211_IFTYPE_STATION) {
l_warn("Skipping non-STA interfaces");
return;
}
if (!ifindex || !ifaddr | !ifname) {
l_warn("Unable to parse interface information");
return;