!1607 修改chr打点wifi连接失败率异常问题

Merge pull request !1607 from lihui/master
This commit is contained in:
openharmony_ci 2023-12-21 06:22:46 +00:00 committed by Gitee
commit cc3bf3187d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 8 deletions

View File

@ -1499,6 +1499,8 @@ ErrCode StaStateMachine::StartConnectToNetwork(int networkId)
StopTimer(static_cast<int>(CMD_NETWORK_CONNECT_TIMEOUT));
StartTimer(static_cast<int>(CMD_NETWORK_CONNECT_TIMEOUT), STA_NETWORK_CONNECTTING_DELAY);
WriteWifiOperateStateHiSysEvent(static_cast<int>(WifiOperateType::STA_CONNECT),
static_cast<int>(WifiOperateState::STA_CONNECTING));
return WIFI_OPT_SUCCESS;
}
@ -1765,6 +1767,8 @@ void StaStateMachine::OnNetworkConnectionEvent(int networkId, std::string bssid)
msg->SetParam1(networkId);
msg->AddStringMessageBody(bssid);
SendMessage(msg);
WriteWifiOperateStateHiSysEvent(static_cast<int>(WifiOperateType::STA_CONNECT),
static_cast<int>(WifiOperateState::STA_CONNECTED));
}
void StaStateMachine::OnNetworkDisconnectEvent(int reason)

View File

@ -249,14 +249,6 @@ void WifiStaManager::DealStaConnChanged(OperateResState state, const WifiLinkedI
}
}
switch (state) {
case OperateResState::CONNECT_CONNECTING:
WriteWifiOperateStateHiSysEvent(static_cast<int>(WifiOperateType::STA_CONNECT),
static_cast<int>(WifiOperateState::STA_CONNECTING));
break;
case OperateResState::CONNECT_AP_CONNECTED:
WriteWifiOperateStateHiSysEvent(static_cast<int>(WifiOperateType::STA_CONNECT),
static_cast<int>(WifiOperateState::STA_CONNECTED));
break;
case OperateResState::DISCONNECT_DISCONNECTED:
WriteWifiOperateStateHiSysEvent(static_cast<int>(WifiOperateType::STA_CONNECT),
static_cast<int>(WifiOperateState::STA_DISCONNECTED));