mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2025-02-17 07:21:44 +00:00
!1687 手机亮屏状态与网络质量差的热点保持连接,此时扫描周期应为20/40/80/160倍增,实际日志显示周期达到160s后,20/40/80等小倍率周期扫描同样一直存在,时间点17:13,不涉及对比,无法恢复
Merge pull request !1687 from liuyuanyuan66/master
This commit is contained in:
commit
81cac55b51
@ -52,7 +52,8 @@ ScanService::ScanService(int instId)
|
||||
isAbsFreezeScaned(false),
|
||||
scanResultBackup(-1),
|
||||
mEnhanceService(nullptr),
|
||||
m_instId(instId)
|
||||
m_instId(instId),
|
||||
lastNetworkQuality(0)
|
||||
{}
|
||||
|
||||
ScanService::~ScanService()
|
||||
@ -1009,6 +1010,9 @@ void ScanService::HandleStaStatusChanged(int status)
|
||||
void ScanService::HandleNetworkQualityChanged(int status)
|
||||
{
|
||||
WIFI_LOGI("Enter ScanService::HandleNetworkQualityChanged, change to status: %{public}d.", status);
|
||||
if (lastNetworkQuality == status) {
|
||||
return;
|
||||
}
|
||||
switch (status) {
|
||||
case static_cast<int>(OperateResState::CONNECT_NETWORK_DISABLED): {
|
||||
SystemScanProcess(true);
|
||||
@ -1019,6 +1023,7 @@ void ScanService::HandleNetworkQualityChanged(int status)
|
||||
break;
|
||||
}
|
||||
}
|
||||
lastNetworkQuality = status;
|
||||
}
|
||||
|
||||
void ScanService::HandleMovingFreezeChanged()
|
||||
|
@ -367,6 +367,7 @@ private:
|
||||
StandByListerner standByListerner; /* standby Listerner*/
|
||||
#endif
|
||||
int m_instId;
|
||||
int lastNetworkQuality;
|
||||
/**
|
||||
* @Description Obtains the frequency of a specified band.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user