Softap: update WifiContoller state on start softap failure

If start SoftAp fails due to tethering timeout or improper
ssid config, WifiStateMachine would transition to InitialState,
but WifiController is left stuck in ApEnabledState, which
in turn fails to turn on WLAN again.

Register WifiService to receive WIFI_AP_STATE_CHANGED_ACTION
intent from WifiStateMachine, and if wifiApState is failed,
inform WifiController to transtion to ApStaDisabledState.

Change-Id: Iaa4fb2223a16386166fe2e4861c6e3a6bd9a1007
2 files changed
tree: b78b5413c333fa6189da25f38e55a22874b0c7e0
  1. service/