
条件:WiFi 5G自动切换,当小于-69db和备选WiFi大于-60db是切换
frameworks/opt/net/wifi/service/java/com/androID/server/wifi/WifiautoJoinController.java public static int mchangedelay=0; /** * Ask WifiStateMachine permission to switch : * if user is currently streaming voice traffic, * then we should not be allowed to switch regardless of the delta */ if(YldefineSystemPropertIEs.MMI_BOol_WIFI_5G_auto_JOIN) { if ((candIDate != null) && (currentConfiguration != null)) { mToast = Toast.makeText(mContext,"RSSi5 =" + currentConfiguration.visibility.RSSi5+ ", "+candIDate.visibility.RSSi5,Toast.LENGTH_SHORT); mToast.show(); if(mchangedelay>0) mchangedelay--; if((candIDate.visibility.RSSi5!=-127) && (currentConfiguration.visibility.RSSi5!=-127) && (mchangedelay==0)) { if((currentConfiguration.visibility.RSSi5<-69) && (candIDate.visibility.RSSi5>-60)) { mchangedelay=4; networkDelta=100; } } } }总结
以上是内存溢出为你收集整理的Android增强WiFi性能全部内容,希望文章能够帮你解决Android增强WiFi性能所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)