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
tree: 3685a2acd4e8d5025fc55a7d0f6cc9a0f873c056
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/
  5. PREUPLOAD.cfg