P2P: Filter Probe Request frames based on DA and BSSID in Listen state
Only accept Probe Request frames that have a Wildcard BSSID and a destination address that matches with our P2P Device Address or is the broadcast address per P2P specification 3.1.2.1.1.
This commit is contained in:
parent
15f0961447
commit
04a85e4401
15 changed files with 72 additions and 22 deletions
|
@ -217,7 +217,8 @@ void handle_probe_req(struct hostapd_data *hapd,
|
|||
|
||||
for (i = 0; hapd->probereq_cb && i < hapd->num_probereq_cb; i++)
|
||||
if (hapd->probereq_cb[i].cb(hapd->probereq_cb[i].ctx,
|
||||
mgmt->sa, ie, ie_len) > 0)
|
||||
mgmt->sa, mgmt->da, mgmt->bssid,
|
||||
ie, ie_len) > 0)
|
||||
return;
|
||||
|
||||
if (!hapd->iconf->send_probe_response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue