netdev: skip associate event when not in OWE/FT

The associate event is only important for OWE and FT. If neither of
these conditions (or FT initial association) are happening we do
not need to continue further processing the associate event.
This commit is contained in:
James Prestwood 2019-04-05 15:32:54 -07:00 committed by Denis Kenzior
parent c416db0708
commit a71adcc243
1 changed files with 3 additions and 0 deletions

View File

@ -2389,6 +2389,9 @@ static void netdev_associate_event(struct l_genl_msg *msg,
if (netdev->aborting)
return;
if (!netdev->owe && !netdev->in_ft && !netdev->handshake->mde)
return;
if (!l_genl_attr_init(&attr, msg)) {
l_debug("attr init failed");
return;