P2P: Add Device Password ID to GO Neg Request RX event
This event indicates the Device Password ID that the peer tried to use in GO Negotiation. For example: P2P-GO-NEG-REQUEST 02:40:61:c2:f3:b7 dev_passwd_id=4
This commit is contained in:
parent
4147a2cc64
commit
3dfda83d9c
5 changed files with 9 additions and 7 deletions
|
@ -398,6 +398,7 @@ struct p2p_config {
|
|||
* go_neg_req_rx - Notification of a receive GO Negotiation Request
|
||||
* @ctx: Callback context from cb_ctx
|
||||
* @src: Source address of the message triggering this notification
|
||||
* @dev_passwd_id: WPS Device Password ID
|
||||
*
|
||||
* This callback is used to notify that a P2P Device is requesting
|
||||
* group owner negotiation with us, but we do not have all the
|
||||
|
@ -406,7 +407,7 @@ struct p2p_config {
|
|||
* PIN or PBC button press. This information can be provided with a
|
||||
* call to p2p_connect().
|
||||
*/
|
||||
void (*go_neg_req_rx)(void *ctx, const u8 *src);
|
||||
void (*go_neg_req_rx)(void *ctx, const u8 *src, u16 dev_passwd_id);
|
||||
|
||||
/**
|
||||
* go_neg_completed - Notification of GO Negotiation results
|
||||
|
|
|
@ -395,7 +395,8 @@ void p2p_process_go_neg_req(struct p2p_data *p2p, const u8 *sa,
|
|||
status = P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE;
|
||||
if (dev)
|
||||
dev->flags |= P2P_DEV_PEER_WAITING_RESPONSE;
|
||||
p2p->cfg->go_neg_req_rx(p2p->cfg->cb_ctx, sa);
|
||||
p2p->cfg->go_neg_req_rx(p2p->cfg->cb_ctx, sa,
|
||||
msg.dev_password_id);
|
||||
} else if (p2p->go_neg_peer && p2p->go_neg_peer != dev) {
|
||||
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
|
||||
"P2P: Already in Group Formation with another peer");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue