FT: Modify status code in FT Reassoc frame for invalid OCI channel info

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>
This commit is contained in:
Shaakir Mohamed 2020-10-02 17:14:21 -07:00 committed by Jouni Malinen
parent fe27c464fd
commit d48a3a6768

View 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 */