Android wifi power question

主宰稳场 提交于 2019-12-22 10:43:15

问题


I have observed that by default the wifi adaptor goes into (power saving mode) PSM mode. When Certain applications such as youtube appear to buffer video, the adaptor leaves PSM mode into CAM state or full power mode. Once the buffering is done, the wifi adaptor goes back into PSM mode. I have observed this behavior with other applications as well. Is there an API call that supports this kind of behavior? It's not clear from the documentation how to switch the WIFI adapator in and out of PSM mode.


回答1:


WiFi goes PSM or CAM not under Application's control, it's the 802.11 Power Management Mode -- whenever there is traffic, the WiFi goes to CAM, when transfer is done, it goes back to PSM. On application layer, you simply generate some traffic, the NIC driver will automatically transit to right mode.



来源:https://stackoverflow.com/questions/3514123/android-wifi-power-question

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!