P2P: Add new_device flag to dev_found callback
authorJohannes Berg <johannes.berg@intel.com>
Thu, 24 Feb 2011 19:59:58 +0000 (21:59 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 19:59:58 +0000 (21:59 +0200)
commit8fd7dc1b1cb8bceae0b493fa724b5e076d45a42d
tree73e9f5056b2f7f6cfcc2d5ea0528e6072f417c95
parentc5db8e517040f096d6c180150219c8ff88791efa
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>
src/drivers/driver_test.c
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_i.h
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h