P2pService: Handle invalid WifiChannel usecases
Race conditions may occur in WifiP2pService between setting up of
WifiChannel with WifiStateMachine, handling WifiMonitor events and
recieving messages over AsyncChannel from a client. Ensure all accesses
to WifiChannel is protected inside a null check. Additionally, failure
to setup WifiChannel will move P2p to disabled state, this will provide
clean handling of error cases.
Bug: 35184612
Test: Unit tests
Change-Id: I299957c0f2aee83e3451c7c001cc1e53a706ef7a
1 file changed