device: Create the Device D-Bus interface only when the DEP link is up
authorSamuel Ortiz <sameo@linux.intel.com>
Sun, 10 Nov 2013 23:55:07 +0000 (00:55 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 10 Nov 2013 23:55:07 +0000 (00:55 +0100)
commit072ce563e1f847dc27b255a36bcf232429c80825
treee17986ce024787e52c4c603201ee68b71d736b2f
parentcd0ba89e73e702b13cbb1f982db48062f25e0c04
device: Create the Device D-Bus interface only when the DEP link is up

In Initiator mode, this is when we get a DEP_LINK_UP event.
In target mode, DEP link is up as soon as we see a new device.
This fix avoids racy situations where a Device interface is available
although the DEP link is still not up.
src/adapter.c
src/device.c
src/near.h