3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01: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; 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) { if (!ifindex || !ifaddr | !ifname) {
l_warn("Unable to parse interface information"); l_warn("Unable to parse interface information");
return; return;