mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
When a follow-on PD request is received, peer should not send a follow-on PD response except the case when the PD request status value is 12 (Success: accepted by user). Previously, the wpa_supplicant implementation behaved differently sending the follow-on PD Response on any follow-on PD Request. Fix the issue by adding the following changes: 1. Don't send PD Response if the follow-on PD Request status is different than 12 (seeker side). 2. Don't wait for the follow-on PD Response if the follow-on PD Request was sent with the status different than 12 (advertiser side). 3. If the follow-on PD Request was sent with the status different than 12 use the follow-on PD Request ACK as PD completion event (advertiser side). 4. Notify ASP about the PD completion by sending P2PS-PROV-DONE with the PD Request status (advertiser side). Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>