debug p2p chr report

Signed-off-by: WangYusen <wangyusen8@huawei.com>
This commit is contained in:
WangYusen 2024-11-20 17:28:38 +08:00
parent a33ba33459
commit b3a4679584

View File

@ -683,8 +683,9 @@ bool P2pEnabledState::ProcessChrReport(InternalMessagePtr msg) const
{
int errCode = msg->GetParam1();
WIFI_LOGI("P2pEnabledState receive chr error code %{public}d", errCode);
deviceManager.GetThisDevice().SetChrErrCode(static_cast<P2pChrEvent>(errCode));
p2pStateMachine.BroadcastThisDeviceChanaged(deviceManager.GetThisDevice());
WifiP2pDevice device = deviceManager.GetThisDevice();
device.SetChrErrCode(static_cast<P2pChrEvent>(errCode));
p2pStateMachine.BroadcastThisDeviceChanaged(device);
return EXECUTED;
}
} // namespace Wifi