aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-07-15 17:25:53 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-15 17:28:46 (GMT)
commit04a85e4401c958f2685224a55c1932e5bcf22213 (patch)
treeb330705908f3c373ba3c04ec38d7861f892bf4c9 /src/drivers/driver_atheros.c
parent15f0961447f9865640505378b4d63207f3c1aa5f (diff)
downloadhostap-04a85e4401c958f2685224a55c1932e5bcf22213.zip
hostap-04a85e4401c958f2685224a55c1932e5bcf22213.tar.gz
hostap-04a85e4401c958f2685224a55c1932e5bcf22213.tar.bz2
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.
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 1e78f6e..0587050 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -748,6 +748,8 @@ static void atheros_raw_receive(void *ctx, const u8 *src_addr, const u8 *buf,
os_memset(&event, 0, sizeof(event));
event.rx_probe_req.sa = mgmt->sa;
+ event.rx_probe_req.da = mgmt->da;
+ event.rx_probe_req.bssid = mgmt->bssid;
event.rx_probe_req.ie = mgmt->u.probe_req.variable;
event.rx_probe_req.ie_len =
len - (IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req));