Instead of relying on the ConditionManager making sure that WifiP2p is really ready to be used, just try starting the framework as soon as Wifi is enabled and retry for 5 seconds until it either works or fails.