当前位置: 代码迷 >> Android >> android wifi 当wcnss crash的时分不重启手机只重启wcnss
  详细解决方案

android wifi 当wcnss crash的时分不重启手机只重启wcnss

热度:671   发布时间:2016-04-28 01:41:51.0
android wifi 当wcnss crash的时候不重启手机只重启wcnss

    此文涉及到system restart level的问题,对应的高通文档为doc 80-Y0513-2其中的第2.4.3章Enabling/disabling WCN-SS SSR。   

  To find out if SSR is enabled on WCN-SS, enter this command:  cat /sys/bus/msm_subsys/devices/subsys2/restart_level  To enable WCN-SS SSR, execute this command in the ADB shell  echo related > /sys/bus/msm_subsys/devices/subsys2/restart_level  To disable WCN-SS SSR, execute this command in the ADB shell  echo system > /sys/bus/msm_subsys/devices/subsys2/restart_level

 

    具体运行效果如下,默认的是重启手机,可修改为只重启相关模块。

  cat /sys/bus/msm_subsys/devices/subsys2/restart_level  SYSTEM  echo related > /sys/bus/msm_subsys/devices/subsys2/restart_level     cat /sys/bus/msm_subsys/devices/subsys2/restart_level         RELATED  echo system > /sys/bus/msm_subsys/devices/subsys2/restart_level  cat /sys/bus/msm_subsys/devices/subsys2/restart_level  SYSTEM

     

    此条shell命令可以添加在/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh文件中, 在系统启动的时候进行设置。

  echo related > /sys/bus/msm_subsys/devices/subsys2/restart_level

  相关解决方案