aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-12 17:14:32 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-12 17:14:32 (GMT)
commitc5f10e804afff4a73b3f1e3267a5061e78c20a17 (patch)
tree18abad3d93ed7e18905ff5c1e82831ec067d5eb9 /src/p2p/p2p_i.h
parent8b2b2a70ef37e218dd8752a82cdacf22dfac42a4 (diff)
downloadhostap-c5f10e804afff4a73b3f1e3267a5061e78c20a17.zip
hostap-c5f10e804afff4a73b3f1e3267a5061e78c20a17.tar.gz
hostap-c5f10e804afff4a73b3f1e3267a5061e78c20a17.tar.bz2
Use more accurate timestamps for scan results
For various P2P use cases, it is useful to have more accurate timestamp for the peer information update. This commit improves scan result handling by using a single timestamp that is taken immediately after fetching the results from the driver and then using that value to calculate the time when the driver last updated the BSS entry. In addition, more debug information is added for P2P peer updates to be able to clearly see how old information is being used here. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
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 27fef01..c4838d2 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -693,7 +693,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,
- unsigned int age_ms, int level, const u8 *ies,
+ struct os_time *rx_time, 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,