aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeeraj Kumar Garg <neerajkg@broadcom.com>2011-12-18 15:42:11 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-18 15:42:11 (GMT)
commitbfe3557a0790a036c75f5cd58a318f408a8d4ab8 (patch)
tree617cbb4c8fc7ab50be92974285ee0be173c94360 /src
parent1ef2f7ffcf8c58725be57ad5022a7991f1cc6e4c (diff)
downloadhostap-bfe3557a0790a036c75f5cd58a318f408a8d4ab8.zip
hostap-bfe3557a0790a036c75f5cd58a318f408a8d4ab8.tar.gz
hostap-bfe3557a0790a036c75f5cd58a318f408a8d4ab8.tar.bz2
P2P: Fix PROBE_REQ_ONLY flag use for Provision Discovery Request
Provision discovery from a known peer should actually check for dev->flags & P2P_DEV_PROBE_REQ_ONLY. This is creating an issue of updating the listen frequency of peer with the PD request frame frequency. PD request frame will be sent by the peer on our local listen frequency. This patch fixes that error. Suggested check has already been implemented in the invitation req receive path.
Diffstat (limited to 'src')
-rw-r--r--src/p2p/p2p_pd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c
index 790334f..1ee59c5 100644
--- a/src/p2p/p2p_pd.c
+++ b/src/p2p/p2p_pd.c
@@ -112,7 +112,7 @@ void p2p_process_prov_disc_req(struct p2p_data *p2p, const u8 *sa,
MAC2STR(sa), msg.wps_config_methods, rx_freq);
dev = p2p_get_device(p2p, sa);
- if (dev == NULL || !(dev->flags & P2P_DEV_PROBE_REQ_ONLY)) {
+ if (dev == NULL || (dev->flags & P2P_DEV_PROBE_REQ_ONLY)) {
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG,
"P2P: Provision Discovery Request from "
"unknown peer " MACSTR, MAC2STR(sa));