]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Do not add WSC IE for P2P2 Invitation Request
authorShivani Baranwal <quic_shivbara@quicinc.com>
Mon, 1 Jul 2024 19:11:48 +0000 (00:41 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 13 Oct 2024 18:51:07 +0000 (21:51 +0300)
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
src/p2p/p2p_invitation.c

index 5dcd06a283c16794d093dde5aa0fc6f61cac6084..7b8a2c58487626e7d0991737a9818547f6887c2b 100644 (file)
@@ -104,7 +104,7 @@ static struct wpabuf * p2p_build_invitation_req(struct p2p_data *p2p,
        if (p2p->vendor_elem && p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ])
                wpabuf_put_buf(buf, p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]);
 
-       if (dev_pw_id >= 0) {
+       if (dev_pw_id >= 0 && !peer->p2p2) {
                /* WSC IE in Invitation Request for NFC static handover */
                p2p_build_wps_ie(p2p, buf, dev_pw_id, 0);
        }