aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.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/ap.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/ap.c')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index bfb69fc..15192d1 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -486,7 +486,7 @@ static int ap_probe_req_rx(void *ctx, const u8 *sa, const u8 *da,
{
struct wpa_supplicant *wpa_s = ctx;
return wpas_p2p_probe_req_rx(wpa_s, sa, da, bssid, ie, ie_len,
- ssi_signal);
+ 0, ssi_signal);
}