WifiStateMachine: Increment startup failure metrics

Increment the metrics for wifi native start failure reasons.
WifiNative.setupForClientMode() and WifiNative.setupForSoftApMode() have
been modified to return the reason for failure. WifiStateMachine can now
use these reason codes to increment the corresponding metrics.

Bug: 38457087
Test: Unit tests
Change-Id: I94c4283bac1566c1edd3985d96e6f39b7dd56910
4 files changed
tree: bc7a106d5701c92ee40d91673246b614708c4414
  1. service/
  2. PREUPLOAD.cfg