P2P: Provide local event on GO Neg Req rejection
If an authorized (p2p_connect used locally) GO Negotiation is rejected when receiving GO Negotiation Request from the peer, indicate the failure with a ctrl_interface P2P-GO-NEG-FAILURE event. Previously, this event was only shown on the peer (i.e., the device receiving the GO Negotiation Response with non-zero Status code).
This commit is contained in:
parent
014732ea81
commit
fbe7027239
2 changed files with 6 additions and 0 deletions
|
@ -2070,6 +2070,10 @@ static void p2p_go_neg_resp_failure_cb(struct p2p_data *p2p, int success)
|
|||
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
|
||||
"P2P: GO Negotiation Response (failure) TX callback: "
|
||||
"success=%d", success);
|
||||
if (p2p->go_neg_peer && p2p->go_neg_peer->status != P2P_SC_SUCCESS) {
|
||||
p2p_go_neg_failed(p2p, p2p->go_neg_peer,
|
||||
p2p->go_neg_peer->status);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue