aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-04-26 13:11:17 (GMT)
committerJouni Malinen <j@w1.fi>2012-04-26 13:11:17 (GMT)
commitc98b83f2d3f8b9ad435c75f386829105f9837baa (patch)
treefbb8f37eb6d573f45033a70e30f7759d402e5f27 /src/p2p/p2p_i.h
parent7c4e92115a795dd2ee2135cf49d7e9e172fb5851 (diff)
downloadhostap-c98b83f2d3f8b9ad435c75f386829105f9837baa.zip
hostap-c98b83f2d3f8b9ad435c75f386829105f9837baa.tar.gz
hostap-c98b83f2d3f8b9ad435c75f386829105f9837baa.tar.bz2
P2P: Do not update peer Listen channel based on PD/Invitation
Commits 17bef1e97a5061a8b5443dc24166e28439911f0b and ffe98dfb88a19b66418184955ef272789e3abb68 started using p2p_add_device() with other frames than just Probe Response frames from scan results. However, these changes did not take into account that the PD Request and Invitation Request frames are normally received on the our own Listen channel, not on the Listen channel of the peer. As such, these frames must not be used to update Listen channel information for the peer. Fix this by letting p2p_add_device() know whether the results are from scan results and if not, skip the peer table updates that are specific to Probe Response frames. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 30a83d5..3a764ca 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -653,7 +653,7 @@ struct p2p_device * p2p_add_dev_from_go_neg_req(struct p2p_data *p2p,
void p2p_add_dev_info(struct p2p_data *p2p, const u8 *addr,
struct p2p_device *dev, struct p2p_message *msg);
int p2p_add_device(struct p2p_data *p2p, const u8 *addr, int freq, int level,
- const u8 *ies, size_t ies_len);
+ const u8 *ies, size_t ies_len, int scan_res);
struct p2p_device * p2p_get_device(struct p2p_data *p2p, const u8 *addr);
struct p2p_device * p2p_get_device_interface(struct p2p_data *p2p,
const u8 *addr);