fragattacks/src/p2p
Jouni Malinen 2b12b3602a P2P: Do not reply to GO Negotiation Request if peer is waiting for us
This improves robustness of GO Negotiation in special cases where GO
Negotiation Request frames from the peer may end up getting delivered
multiple times, e.g., due to interference and retransmitted frames not
getting properly filtered out in duplicate detection (which is something
that number of drivers do not implement for pre-associated state).

If we have already replied with GO Negotiation Response frame with
Status 1 (not yet ready), do not reply to another GO Negotiation Request
frame from the peer if we have already received authorization from the
user (P2P_CONNECT command) for group formation and have sent out our GO
Negotiation Request frame. This avoids a possible sequence where two
independent GO Negotiation instances could go through in parallel if the
MAC address based rule on avoiding duplicate negotiations is not able to
prevent the case. This can allow GO Negotiation to complete successfully
whereas the previous behavior would have likely resulted in a failure
with neither device sending a GO Negotiation Confirm frame.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-10-15 21:21:28 +03:00
..
Makefile tests: Add p2p-fuzzer 2015-04-22 11:44:19 +03:00
p2p_build.c P2P: Add preferred frequency list extension to GO Neg Req 2015-07-30 22:13:48 +03:00
p2p_dev_disc.c P2PS: Refactor p2p_data::query_hash and p2p_data::query_count use 2015-06-15 17:30:01 +03:00
p2p_go_neg.c P2P: Do not reply to GO Negotiation Request if peer is waiting for us 2015-10-15 21:21:28 +03:00
p2p_group.c P2P: Add a function to compute the group common freqs 2015-08-04 00:18:51 +03:00
p2p_i.h P2P: Support driver preferred freq list for invitation case 2015-08-11 19:04:45 +03:00
p2p_invitation.c P2P: Support driver preferred freq list for invitation case 2015-08-11 19:04:45 +03:00
p2p_parse.c P2P: Parse preferred frequency list extension 2015-07-30 22:13:48 +03:00
p2p_pd.c P2PS: Do not add unnecessary attributes to PD Response 2015-10-11 21:42:03 +03:00
p2p_sd.c P2P: Limit number of SD retries during find 2014-10-23 21:51:48 +03:00
p2p_utils.c P2P: Fix the calculation of group common freqs 2015-09-25 21:05:42 +03:00
p2p.c P2PS: Indicate the chosen operating frequency 2015-10-11 21:42:03 +03:00
p2p.h P2PS: Indicate the chosen operating frequency 2015-10-11 21:42:03 +03:00