3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

netdev: Create owe_sm for fullmac connections

Somehow this ability was lost in the refactoring.  OWE was intended to
be used on fullmac cards, but the state machine is only actually created
if the connection type ends up being softmac.

Fixes: 8b6ad5d3b9 ("owe: netdev: refactor to remove OWE as an auth-proto")
This commit is contained in:
Denis Kenzior 2024-08-03 21:57:27 -05:00
parent 8a27cff8c0
commit 16f5bbc20a

View File

@ -3826,6 +3826,12 @@ static void netdev_connect_common(struct netdev *netdev,
if (!is_rsn)
goto build_cmd_connect;
/* For OWE, always use the CMD_CONNECT path */
if (IE_AKM_IS_OWE(hs->akm_suite)) {
netdev->owe_sm = owe_sm_new(hs);
goto build_cmd_connect;
}
if (nhs->type != CONNECTION_TYPE_SOFTMAC)
goto build_cmd_connect;
@ -3848,10 +3854,6 @@ static void netdev_connect_common(struct netdev *netdev,
}
break;
case IE_RSN_AKM_SUITE_OWE:
netdev->owe_sm = owe_sm_new(hs);
goto build_cmd_connect;
case IE_RSN_AKM_SUITE_FILS_SHA256:
case IE_RSN_AKM_SUITE_FILS_SHA384:
case IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256: