sta_set_security: Fix error return for Clear_RSNXE configuration failure
Return correct enum value to avoid duplicate status,ERROR in the
response.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/sta.c b/sta.c
index a21555f..6b45661 100644
--- a/sta.c
+++ b/sta.c
@@ -2286,7 +2286,7 @@
wpa_command(intf, "SET rsnxe_override_eapol "))) {
send_resp(dut, conn, SIGMA_ERROR,
"errorCode,Failed to clear RSNXE");
- return ERROR_SEND_STATUS;
+ return STATUS_SENT_ERROR;
}
if (dut->sae_pwe == SAE_PWE_LOOP && get_param(cmd, "PasswordId"))