WiFi 在“关闭”时被卡住状态
你好 我正在开发一个用于控制 WiFi 接口的应用程序 我发现一个问题:Xperia X10 上的 WiFi 接口卡住 Mini(我在同型号的三台设备上进行了测试)。 使用“logcat”查看日志,我发现以下错误:
E/wpa_supplicant( 1775): ERROR - wpa_driver_tista_private_send - (ioctl_cmd = 8021501, res = 1, errno = 99)
E/wpa_supplicant( 1775): ERROR - Failed to do tista scan!
W/wpa_supplicant( 1775): Failed to initiate AP scan.
解决问题的唯一方法是重新启动设备(并且确实如此) 甚至不能一直工作)。有人有解决办法吗?任何帮助都是 欢迎?
PS:我知道这里报告了一个错误:http://code. google.com/p/android/issues/detail?id=9677。然而,它适用于 Motorola Droid,而不是 Xperia X10 Mini。
Hi
I am developing an application for controlling the WiFi interface and
I have found a problem: WiFi interface gets jammed on the Xperia X10
Mini (I tested on three devices of the same model).
Looking at the log with "logcat" I found the following error:
E/wpa_supplicant( 1775): ERROR - wpa_driver_tista_private_send - (ioctl_cmd = 8021501, res = 1, errno = 99)
E/wpa_supplicant( 1775): ERROR - Failed to do tista scan!
W/wpa_supplicant( 1775): Failed to initiate AP scan.
The only way to fix the problem is rebooting the device (and it did
not even work all the times). Has anyone got a solution? Any help is
welcome?
P.S: I know there is a bug reported here: http://code.google.com/p/android/issues/detail?id=9677. However, it is for Motorola Droid, not for Xperia X10 Mini.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我已经解决了。问题是我试图保持 WiFi 开启,但手机在进入睡眠状态时却将其关闭。此过程的结果尚未确定。
解决方案是获取 WifiLock:
http://developer.android .com/reference/android/net/wifi/WifiManager.WifiLock.html
Ok, I got it solved. The problem was I was trying to keep the WiFi up but the phone was putting it down when it went to sleep. The result of this procedure is undetermined.
The solution is to acquire a WifiLock:
http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html