aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-02-24 19:59:58 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-24 19:59:58 (GMT)
commit8fd7dc1b1cb8bceae0b493fa724b5e076d45a42d (patch)
tree73e9f5056b2f7f6cfcc2d5ea0528e6072f417c95 /src/p2p/p2p_i.h
parentc5db8e517040f096d6c180150219c8ff88791efa (diff)
downloadhostap-8fd7dc1b1cb8bceae0b493fa724b5e076d45a42d.zip
hostap-8fd7dc1b1cb8bceae0b493fa724b5e076d45a42d.tar.gz
hostap-8fd7dc1b1cb8bceae0b493fa724b5e076d45a42d.tar.bz2
P2P: Add new_device flag to dev_found callback
The DBus code will want to have perfect matching of dev_found and the dev_lost it adds so it doesn't need to keep track internally. Enable that with a new flag in the core that tracks whether we have already notified about this -- the existing users can ignore it. The part where this is always set to 1 if the new device is discovered by a driver that has P2P in the driver is buggy -- the driver should feed the P2P peer database and then that should feed the notification here instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 0207c5b..91ba5fd 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -89,6 +89,7 @@ struct p2p_device {
#define P2P_DEV_GROUP_CLIENT_ONLY BIT(12)
#define P2P_DEV_FORCE_FREQ BIT(13)
#define P2P_DEV_PD_FOR_JOIN BIT(14)
+#define P2P_DEV_REPORTED_ONCE BIT(15)
unsigned int flags;
int status; /* enum p2p_status_code */