netdev: Refine error handling in roam_event

This commit is contained in:
Denis Kenzior 2021-04-30 11:31:22 -05:00
parent f35a40c0c5
commit 84ca680611
1 changed files with 3 additions and 2 deletions

View File

@ -4345,7 +4345,8 @@ static void netdev_roam_event(struct l_genl_msg *msg, struct netdev *netdev)
netdev->operational = false;
l_genl_attr_init(&attr, msg);
if (!l_genl_attr_init(&attr, msg))
goto failed;
while (l_genl_attr_next(&attr, &type, &len, &data)) {
switch (type) {
@ -4387,7 +4388,7 @@ get_fw_scan:
return;
failed:
l_error("Failed to roam to new BSS");
l_error("Failed to properly handle the ROAM event -- submit logs!");
netdev_connect_failed(netdev, NETDEV_RESULT_ABORTED,
MMPDU_REASON_CODE_UNSPECIFIED);