我的操作系统是android 4.0.4,当我开发wifi direct时,我创建组有时会成功,有时会失败,失败后会导致系统重启
以下是失败后的错误信息
01-01 11:31:30.003: DEBUG/NetworkManagementService(1331): flags <[down broadcast multicast]>
01-01 11:31:30.793: DEBUG/WifiP2pService(1331): P2p start successful
01-01 11:31:30.913: DEBUG/ViewRootImpl(1408): pckname = com.android.systemui
01-01 11:31:31.753: DEBUG/audio_hw_primary(1293): start_output_stream: card:0, port:0, rate:44100
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): Update device info: Device: ID_9f68
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): deviceAddress: 00:09:01:55:18:49
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): interfaceAddress: null
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): primary type: 10-0050F204-5
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): secondary type: null
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): wps: 0
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): grpcapab: 0
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): devcapab: 0
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): status: 3
01-01 11:31:31.813: DEBUG/WifiP2pSettings(1556): discover success
01-01 11:31:32.573: ERROR/WifiP2pService(1331): Unhandled message { what=147462 when=0 obj=android.net.wifi.StateChangeResult@410225f8 }
01-01 11:31:32.583: DEBUG/WifiP2pSettings(1556): create group success
01-01 11:31:32.693: ERROR/wpa_supplicant(2438): Using interface wlan0 with hwaddr 00:09:01:55:18:49 and ssid 'DIRECT-3p'
01-01 11:31:32.693: DEBUG/NetworkManagementService(1331): rsp <213 00:00:00:00:00:00 0.0.0.0 0 [up broadcast running multicast]>
01-01 11:31:32.703: DEBUG/NetworkManagementService(1331): flags <[up broadcast running multicast]>
01-01 11:31:33.013: ERROR/wpa_supplicant(2438): random: Cannot read from /dev/random: Try again
01-01 11:31:33.013: ERROR/wpa_supplicant(2438): WPA initialization failed.
01-01 11:31:33.013: ERROR/wpa_supplicant(2438): wlan0: Unable to setup interface.
01-01 11:31:33.013: ERROR/wpa_supplicant(2438): Failed to initialize AP interface
01-01 11:31:33.063: ERROR/wpa_supplicant(2438): Failed to remove interface (ifidx=27)
01-01 11:31:33.353: DEBUG/Tethering(1331): sendTetherStateChangedBroadcast 1, 0, 0
01-01 11:31:33.353: DEBUG/Tethering(1331): InitialState.processMessage what=4
01-01 11:31:33.353: DEBUG/Tethering(1331): sendTetherStateChangedBroadcast 0, 0, 0