]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove duplicated wpa_akm_to_suite() entry
authorJouni Malinen <jouni@codeaurora.org>
Mon, 17 Feb 2020 15:41:51 +0000 (17:41 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Feb 2020 15:41:51 +0000 (17:41 +0200)
This was unreachable code due to the previous WPA_KEY_MGTM_OWE case
returning from the function.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/wpa_common.c

index 5ecb1eceb468b84d837c821cd8fb738e0f514742..83bac5489f62d679b10eb39456502700be79a5f8 100644 (file)
@@ -2100,8 +2100,6 @@ u32 wpa_akm_to_suite(int akm)
                return RSN_AUTH_KEY_MGMT_OWE;
        if (akm & WPA_KEY_MGMT_DPP)
                return RSN_AUTH_KEY_MGMT_DPP;
-       if (akm & WPA_KEY_MGMT_OSEN)
-               return RSN_AUTH_KEY_MGMT_OSEN;
        return 0;
 }