fragattacks/src/p2p
Jouni Malinen d55fc03ef6 P2P: Handle unexpected GO Neg Req reject message more cleanly
The mechanism of using Status attribute in GO Negotiation Request was
used in some early specification drafts, but it is not compliant with
the current P2P specification where GO Negotiation Request is used only
for the purpose of initiating a new GO Negotiation. However, some
deployed devices use it to indicate rejection of GO Negotiation in a
case where they have sent out GO Negotiation Response with status 1. The
P2P specification explicitly disallows this.

To avoid unnecessary interoperability issues and extra frames, mark the
pending negotiation as failed and do not reply to this GO Negotiation
Request frame. Previously, GO Negotiation Response frame with status=4
was sent back as an indication of the GO Negotiation Request frame being
invalid. This response is not sent anymore and the status code for the
P2P-GO-NEG-FAILURE event is changed from 4 (invalid parameters) to 11
(rejected by user) for this specific workaround case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2014-02-07 16:26:59 +02:00
..
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
p2p_build.c P2P NFC: Add OOB GO Negotiation Channel attribute 2014-01-27 21:10:55 +02:00
p2p_dev_disc.c P2P: Clean up debug prints 2013-05-18 18:47:36 +03:00
p2p_go_neg.c P2P: Handle unexpected GO Neg Req reject message more cleanly 2014-02-07 16:26:59 +02:00
p2p_group.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
p2p_i.h P2P: Do not re-start invitation on Probe Req RX if already ack'ed 2014-02-04 17:16:32 +02:00
p2p_invitation.c P2P: Do not re-start invitation on Probe Req RX if already ack'ed 2014-02-04 17:16:32 +02:00
p2p_parse.c P2P NFC: Static handover with NFC Tag on client 2014-01-27 21:44:30 +02:00
p2p_pd.c P2P: Fix PD retry channel on join-a-group case 2013-10-20 21:38:02 +03:00
p2p_sd.c P2P: Clean up debug prints 2013-05-18 18:47:36 +03:00
p2p_utils.c P2P: Prefer U-NII-3 over U-NII-1 during channel selection 2013-11-19 13:04:21 +02:00
p2p.c P2P: Do not re-start invitation on Probe Req RX if already ack'ed 2014-02-04 17:16:32 +02:00
p2p.h P2P NFC: Static handover with NFC Tag on client 2014-01-27 21:44:30 +02:00