WifiStateMachine: properly enable p2p service
After moving the async channel connection between WifiStateMachine and
p2p service, the case where we immediately enter connect mode was not
able to properly notify p2p service to enable. This CL waits for two
conditions to be true:
1 - the async channel (WSM to P2P service) is connected
2 - we are in connect mode
There are two conditions that this can address - namely, a race between
setting up the async channel and entering connect mode, and also the
assumed entry into client mode immediately after booting.
This CL additionally adds a bug number (b/34283611) tracking work for
investigating the reliability of the async channel connection to the
p2p service.
Bug: 34281933
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Test: manually tested wifi connection
Test: manually checked for Wifi Direct peers
Change-Id: Id420746be40de5ae60d1b45b806a25e8379f79ae
1 file changed