Skip to content

Commit

Permalink
STA: Do not wait for TWT response if send command fails
Browse files Browse the repository at this point in the history
Do not wait for TWT asynchronous response event from the driver if the
TWT request command send fails.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
  • Loading branch information
Kiran Kumar Lokere authored and Jouni Malinen committed Feb 14, 2025
1 parent 9c8c4f6 commit f7501f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -11949,6 +11949,7 @@ static int sta_twt_send_suspend(struct sigma_dut *dut, struct sigma_conn *conn,
sigma_dut_print(dut, DUT_MSG_ERROR,
"%s: err in send_and_recv_msgs, ret=%d",
__func__, ret);
return ret;
}

if (!dut->sta_async_twt_supp)
Expand Down Expand Up @@ -12013,6 +12014,7 @@ static int sta_twt_send_nudge(struct sigma_dut *dut, struct sigma_conn *conn,
sigma_dut_print(dut, DUT_MSG_ERROR,
"%s: err in send_and_recv_msgs, ret=%d",
__func__, ret);
return ret;
}

if (!dut->sta_async_twt_supp)
Expand Down Expand Up @@ -12102,6 +12104,7 @@ static int sta_twt_resume(struct sigma_dut *dut, struct sigma_conn *conn,
sigma_dut_print(dut, DUT_MSG_ERROR,
"%s: err in send_and_recv_msgs, ret=%d",
__func__, ret);
return ret;
}

if (!dut->sta_async_twt_supp)
Expand Down Expand Up @@ -12347,6 +12350,7 @@ int sta_twt_request(struct sigma_dut *dut, struct sigma_conn *conn,
sigma_dut_print(dut, DUT_MSG_ERROR,
"%s: err in send_and_recv_msgs, ret=%d",
__func__, ret);
return ret;
}

if (!dut->sta_async_twt_supp)
Expand Down Expand Up @@ -12420,6 +12424,7 @@ static int sta_twt_teardown(struct sigma_dut *dut, struct sigma_conn *conn,
sigma_dut_print(dut, DUT_MSG_ERROR,
"%s: err in send_and_recv_msgs, ret=%d",
__func__, ret);
return ret;
}

if (!dut->sta_async_twt_supp)
Expand Down

0 comments on commit f7501f2

Please sign in to comment.