netdev: Skip IE processing of no request IEs sent

This commit is contained in:
Denis Kenzior 2019-10-17 17:30:11 -05:00
parent aa75b3e06e
commit a043f26134
1 changed files with 3 additions and 0 deletions

View File

@ -1668,6 +1668,8 @@ static void netdev_connect_event(struct l_genl_msg *msg, struct netdev *netdev)
if (!status_code || *status_code != 0)
goto error;
if (!ies)
goto process_resp_ies;
/*
* The driver may have modified the IEs we passed to CMD_CONNECT
* before sending them out, the actual IE sent is reflected in the
@ -1696,6 +1698,7 @@ static void netdev_connect_event(struct l_genl_msg *msg, struct netdev *netdev)
}
}
process_resp_ies:
if (resp_ies) {
const uint8_t *fte = NULL;
const uint8_t *qos_set = NULL;