mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 14:22:36 +01:00
netdev: Skip non-STA interfaces
This commit is contained in:
parent
94f204b994
commit
c977b8092c
10
src/netdev.c
10
src/netdev.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user