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

netdev: downgrade L_WARN_ON for ensure_eapol_registered

This warning is guaranteed to happen for SAE networks where there are
multiple netdev_authenticate_events. This should just be a check so
we don't register eapol twice, not a warning.
This commit is contained in:
James Prestwood 2024-06-18 09:58:45 -07:00 committed by Denis Kenzior
parent 9a5c64481e
commit 5cf826c73a

View File

@ -2898,7 +2898,7 @@ static bool kernel_will_retry_auth(uint16_t status_code,
static void netdev_ensure_eapol_registered(struct netdev *netdev)
{
if (L_WARN_ON(netdev->sm))
if (netdev->sm)
return;
netdev->sm = eapol_sm_new(netdev->handshake);