From 71720f32769576237244ec1287f703d61ba7f5c0 Mon Sep 17 00:00:00 2001 From: l30052082 Date: Thu, 30 Nov 2023 14:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9p2p/gc=E7=BB=84=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: l30052082 --- .../wifi_framework/wifi_manage/wifi_p2p_service_impl.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_service_impl.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_service_impl.cpp index 5aef2b720..4c036e2cd 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_service_impl.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_service_impl.cpp @@ -451,7 +451,13 @@ ErrCode WifiP2pServiceImpl::RemoveGroup() WIFI_LOGE("Get P2P service failed!"); return WIFI_OPT_P2P_NOT_OPENED; } - + WifiP2pGroupInfo config; + ErrCode ret = pService->GetCurrentGroup(config); + if (ret != WIFI_OPT_SUCCESS) { + WIFI_LOGE("RemoveGroup:GetCurrentGroup failed!"); + pService->RemoveGroup(); + return WIFI_OPT_FAILED; + } return pService->RemoveGroup(); }