diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/invitation_request_state.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/invitation_request_state.cpp index 53958acb1..a33fd2c86 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/invitation_request_state.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/invitation_request_state.cpp @@ -58,9 +58,11 @@ bool InvitationRequestState::ExecuteStateMsg(InternalMessagePtr msg) WIFI_LOGW("Remove unknown client from currentGroup"); p2pStateMachine.groupManager.RemoveClientFromGroup( netId, p2pStateMachine.savedP2pConfig.GetDeviceAddress()); + int uid; + SharedLinkManager::GetGroupUid(uid); p2pStateMachine.SwitchState(&p2pStateMachine.p2pGroupFormedState); p2pStateMachine.SendMessage( - static_cast(P2P_STATE_MACHINE_CMD::CMD_CONNECT), p2pStateMachine.savedP2pConfig); + static_cast(P2P_STATE_MACHINE_CMD::CMD_CONNECT), uid, 0, p2pStateMachine.savedP2pConfig); break; } } diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ip2p_service.h b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ip2p_service.h index d1c8c9c4c..1c087690a 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ip2p_service.h +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ip2p_service.h @@ -282,13 +282,6 @@ public: */ virtual ErrCode Hid2dRequestGcIp(const std::string& gcMac, std::string& ipAddr) = 0; - /** - * @Description Set the group UID of calling service. - * - * @param callingUid - the UID of caller - */ - virtual void SetGroupUid(int callingUid) = 0; - /** * @Description Increase the reference count of the hid2d service. * @@ -303,13 +296,6 @@ public: */ virtual void DecreaseSharedLink(int callingUid) = 0; - /** - * @Description Get the reference count of the hid2d service. - * - * @return int - reference count - */ - virtual int GetSharedLinkCount(void) = 0; - /** * @Description Handle the exception of upper-layer business. *