aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorYoni Divinsky <yoni.divinsky@ti.com>2012-12-25 09:22:42 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-25 09:22:42 (GMT)
commit3dfd0484fc672860c824c5dcc6678153870d7664 (patch)
tree5e55cf209af87381d425fc078d1c61a4fc71a160 /src/p2p/p2p_i.h
parentd125df25e41eba7d815873ab73d415e237584c72 (diff)
downloadhostap-3dfd0484fc672860c824c5dcc6678153870d7664.zip
hostap-3dfd0484fc672860c824c5dcc6678153870d7664.tar.gz
hostap-3dfd0484fc672860c824c5dcc6678153870d7664.tar.bz2
P2P: Consider age for the P2P scan results
cfg80211 caches the scan results according the channel number. Due to the 15 sec aging this might cause the user mode to see more than one scan result with the same BSSID, e.g. - one scan result for the P2P Device and one for the P2P GO (once it's enabled). Fix this by updating the device entry only if the new peer entry is newer than the one previously stored. Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com> Signed-off-by: Victor Goldenshtein <victorg@ti.com> Signed-off-by: Igal Chernobelsky <igalc@ti.com> Signed-hostap: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index c38eb3b..27fef01 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -692,8 +692,9 @@ struct p2p_device * p2p_add_dev_from_go_neg_req(struct p2p_data *p2p,
struct p2p_message *msg);
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, int scan_res);
+int p2p_add_device(struct p2p_data *p2p, const u8 *addr, int freq,
+ unsigned int age_ms, int level, 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);