hostapd/src
Jouni Malinen 198f82a1e3 P2P: Ignore unexpected GO Neg Resp is we have sent Resp
There is a race condition in GO Negotiation Request frame sending and
processing that may end up with both devices sending GO Negotiation
Response. This response frame was previously accepted even if a response
had already been sent. This could result in two GO Negotiation Confirm
frames being exchanged and consequently, with two separate GO
Negotiations completing concurrently. These negotiations could result in
getting mismatching parameters (e.g., both device could believe it was
the GO).

Fix this by ignoring GO Negotiation Response from the peer if twe have
already sent a GO Negotiation Response frame and we have the higher P2P
Device Address. This is similar to the rule used to determine whether to
reply to GO Negotiation Request frame when Request was already sent,
i.e., the same direction of GO Negotiation is maintained here to enforce
that only the negotiation initiated by the device with smaller P2P
Device Address is completed.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
2012-06-09 18:31:24 +03:00
..
ap sta_info: Remove duplicated function declaration 2012-06-09 12:54:00 +03:00
common WNM: Add advertisement of BSS max idle period 2012-05-27 17:35:00 -07:00
crypto wpa_supplicant: Report EAP connection progress to DBus 2012-06-04 21:10:01 +03:00
drivers atheros: Set essid length field only once 2012-06-08 20:28:23 +03:00
eap_common EAP-AKA': Update to RFC 5448 2012-05-02 20:45:01 +03:00
eap_peer wpa_supplicant: Report EAP connection progress to DBus 2012-06-04 21:10:01 +03:00
eap_server EAP-AKA': Update to RFC 5448 2012-05-02 20:45:01 +03:00
eapol_auth hostapd: Copy Chargeable-User-Identity into accounting (RFC 4372) 2012-05-05 18:05:09 +03:00
eapol_supp wpa_supplicant: Report EAP connection progress to DBus 2012-06-04 21:10:01 +03:00
l2_packet Make bind failure messages unique 2012-04-06 12:10:36 +03:00
p2p P2P: Ignore unexpected GO Neg Resp is we have sent Resp 2012-06-09 18:31:24 +03:00
radius Add preliminary RADIUS dynamic authorization server (RFC 5176) 2012-05-06 22:02:42 +03:00
rsn_supp TDLS: Add support for TDLS frame RX with bridge interfaces 2012-03-30 11:12:33 +03:00
tls LibTomMath: Use 64-bit mode for mp_digit 2012-06-09 11:53:30 +03:00
utils Fix compiler warning on printf format with size_t 2012-04-28 18:30:12 +03:00
wps WPS: Allow vendor specific attribute to be added into M1 2012-04-04 00:08:57 +03:00
lib.rules Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00