netdev: Skip non-STA interfaces

This commit is contained in:
Denis Kenzior 2016-07-19 16:03:26 -05:00
parent 94f204b994
commit c977b8092c
1 changed files with 10 additions and 0 deletions

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;