fragattacks/src/p2p
Johannes Berg eb916eb899 P2P: Clear WPS method when GO negotiation fails
When GO negotation fails the WPS method is currently not cleared, which
can result in GO negotiation being resumed when a GO negotiation request
frame is received from the peer. That is unexpected as locally we
already gave up.

This manifests itself in getting

1319574733.955685: wlan0: P2P-GO-NEG-FAILURE status=-1
1319574733.955723: P2P: Removing pending group interface p2p-wlan0-0
...
1319574736.648378: wlan0: P2P: Starting GO Negotiation with previously
authorized peer
...
1319574736.650115: wlan0: P2P: Sending GO Negotiation Response
...
1319574736.988038: wlan0: P2P-GO-NEG-SUCCESS
1319574736.988233: P2P: No pending group interface
1319574736.988268: P2P: Create a new interface p2p-wlan0-1 for the group

Clear the WPS method to avoid this situation. I wasn't
able to test this though, but given the log I can only
assume this is how the situation happened.

Reported-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-hostap: Johannes Berg <johannes.berg@intel.com>
2011-11-18 23:34:53 +02:00
..
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00
p2p_build.c P2P: Allow advertisement config methods to be limited 2011-09-08 16:48:06 +03:00
p2p_dev_disc.c P2P: Embed publically visible struct in peer info 2011-02-24 21:51:17 +02:00
p2p_go_neg.c P2P: Advertise Persistent Reconnect group capability 2011-10-24 17:29:37 +03:00
p2p_group.c P2P: Deal with a peer associating while connected 2011-11-16 16:36:40 +02:00
p2p_i.h P2P: Wait until ongoing scan completes before starting P2P find 2011-11-15 21:28:35 +02:00
p2p_invitation.c P2P: Embed publically visible struct in peer info 2011-02-24 21:51:17 +02:00
p2p_parse.c P2P: Store more WPS attributes for peers 2011-03-28 15:27:10 +03:00
p2p_pd.c P2P: Add callback for provision discovery failure 2011-06-12 14:26:22 -07:00
p2p_sd.c Use NULL instead of 0 for pointers 2011-11-18 22:07:30 +02:00
p2p_utils.c P2P: Reject multi-channel concurrent operations depending on driver 2010-10-14 14:24:56 +03:00
p2p.c P2P: Clear WPS method when GO negotiation fails 2011-11-18 23:34:53 +02:00
p2p.h P2P: Wait until ongoing scan completes before starting P2P find 2011-11-15 21:28:35 +02:00