Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
Settings去开启wifi时,会调用到DisconnectedState类
enter -> WifiStateMachine.java//DisconnectedStatestartScan ->
sendMessage -> //cmd:CMD_START_SCAN
processMessage -> //DisconnectedState类,返回NOT_HANDLED,让父类处理
processMessage -> //ConnectModeState类,返回NOT_HANDLED,让父类处理
processMessage -> //DriverStartedState类
handleScanRequest -> //cmd: SCAN_WITHOUT_CONNECTION_SETUP
startScanNative ->
mWifiNative.scan ->
scan -> WifiNative.java
doBooleanCommand -> //command会根据type及freq list决定发的命令,这里是"SCAN TYPE=ONLY"
wpa_supp