]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Modify status code in FT Reassoc frame for invalid OCI channel info
authorShaakir Mohamed <smohamed@codeaurora.org>
Sat, 3 Oct 2020 00:14:21 +0000 (17:14 -0700)
committerJouni Malinen <j@w1.fi>
Wed, 7 Oct 2020 21:20:10 +0000 (00:20 +0300)
Modify status code in FT Reassociation Response frame from
WLAN_STATUS_UNSPECIFIED_FAILURE to WLAN_STATUS_INVALID_FTE when replying
to an invalid OCI channel info (subelement of FTE) in FT Reassociation
Request frame.

Signed-off-by: Shaakir Mohamed <smohamed@codeaurora.org>
src/ap/wpa_auth_ft.c

index 5cd7037e9b65397e52190ef0e17a50415a422a52..94a688ed99c5a77a97b6b2420a28cedc3990526c 100644 (file)
@@ -3527,7 +3527,7 @@ int wpa_ft_validate_reassoc(struct wpa_state_machine *sm, const u8 *ies,
                                        OCV_FAILURE "addr=" MACSTR
                                        " frame=ft-reassoc-req error=%s",
                                        MAC2STR(sm->addr), ocv_errorstr);
-                       return WLAN_STATUS_UNSPECIFIED_FAILURE;
+                       return WLAN_STATUS_INVALID_FTIE;
                }
        }
 #endif /* CONFIG_OCV */