aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMax Stepanov <Max.Stepanov@intel.com>2015-06-10 08:43:31 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-14 20:16:55 (GMT)
commit734ddf6125ccd911ad87814234d1fbed5410847b (patch)
tree22b671e80c7697b969b59c5a435720ca52793bb9 /wpa_supplicant/events.c
parente6012e839d4cf77413e0f4cf35cbfd9f71291632 (diff)
downloadhostap-734ddf6125ccd911ad87814234d1fbed5410847b.zip
hostap-734ddf6125ccd911ad87814234d1fbed5410847b.tar.gz
hostap-734ddf6125ccd911ad87814234d1fbed5410847b.tar.bz2
P2P: Add rx_freq parameter to Probe Request frame handler
In some cases, Probe Request frames can be received by a peer not only on a listen channel. In this case an additional rx_freq parameter explitly contains a Probe Request frame RX frequency. In case rx_freq is set to 0, a Probe Request frame RX channel is assumed to be our own listen channel (p2p->cfg->channel). Signed-off-by: Max Stepanov <Max.Stepanov@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index a1dae30..b615fbd 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3491,6 +3491,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
wpas_p2p_probe_req_rx(
wpa_s, src, mgmt->da,
mgmt->bssid, ie, ie_len,
+ data->rx_mgmt.freq,
data->rx_mgmt.ssi_signal);
break;
}
@@ -3562,6 +3563,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
data->rx_probe_req.bssid,
data->rx_probe_req.ie,
data->rx_probe_req.ie_len,
+ 0,
data->rx_probe_req.ssi_signal);
break;
case EVENT_REMAIN_ON_CHANNEL: