!3061 wpa状态bugfix

Merge pull request !3061 from yiyajun/master
This commit is contained in:
openharmony_ci 2024-09-29 15:07:53 +00:00 committed by Gitee
commit b6fff9e54c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -242,6 +242,7 @@ void StaStateMachine::InitWifiLinkedInfo()
linkedInfo.isDataRestricted = 0;
linkedInfo.platformType = "";
linkedInfo.portalUrl = "";
linkedInfo.supplicantState = SupplicantState::DISCONNECTED;
linkedInfo.detailedState = DetailedState::DISCONNECTED;
linkedInfo.channelWidth = WifiChannelWidth::WIDTH_INVALID;
linkedInfo.lastPacketDirection = 0;
@ -274,6 +275,7 @@ void StaStateMachine::InitLastWifiLinkedInfo()
lastLinkedInfo.lastPacketDirection = 0;
lastLinkedInfo.lastRxPackets = 0;
lastLinkedInfo.lastTxPackets = 0;
lastLinkedInfo.supplicantState = SupplicantState::DISCONNECTED;
lastLinkedInfo.detailedState = DetailedState::DISCONNECTED;
}