Skip to content

Commit

Permalink
sta_send_p2p_invitation_req: Handle invitation accepted
Browse files Browse the repository at this point in the history
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
  • Loading branch information
Shivani Baranwal authored and Jouni Malinen committed Dec 20, 2024
1 parent 4d2b29a commit 19b5881
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,11 @@ cmd_sta_send_p2p_invitation_req(struct sigma_dut *dut, struct sigma_conn *conn,
char buf[4096];
struct wpa_ctrl *ctrl;
int res;
const char *events[] = {
"P2P-INVITATION-RESULT",
"P2P-INVITATION-ACCEPTED",
NULL
};

if (devid == NULL || grpid == NULL)
return -1;
Expand Down Expand Up @@ -1633,8 +1638,7 @@ cmd_sta_send_p2p_invitation_req(struct sigma_dut *dut, struct sigma_conn *conn,
return -2;
}

res = get_wpa_cli_event(dut, ctrl, "P2P-INVITATION-RESULT",
buf, sizeof(buf));
res = get_wpa_cli_events(dut, ctrl, events, buf, sizeof(buf));

wpa_ctrl_detach(ctrl);
wpa_ctrl_close(ctrl);
Expand Down

0 comments on commit 19b5881

Please sign in to comment.