sta_associate: Return status,COMPLETE if association does not complete
This replaces the previously used "status,ERROR,ErrorCode,Association
did not complete" with "status,COMPLETE,Result,Association did not
complete" to be more consistent with sta_associate behavior in error
cases. status,ERROR is now returned if the association attempt cannot be
started at all while status,COMPLETE is returned if wpa_supplicant has
started to process the request regardless of whether the association
succeeds. The "Result" argument is used with status,COMPLETE to provide
details on what happened with the attempt.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/sta.c b/sta.c
index 282fe85..c68f33f 100644
--- a/sta.c
+++ b/sta.c
@@ -3445,8 +3445,8 @@
res = get_wpa_cli_events(dut, ctrl, events, buf, sizeof(buf));
if (res < 0) {
- send_resp(dut, conn, SIGMA_ERROR,
- "ErrorCode,Association did not complete");
+ send_resp(dut, conn, SIGMA_COMPLETE,
+ "Result,Association did not complete");
ret = STATUS_SENT_ERROR;
break;
}