mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-12-18 20:40:11 +00:00
commit
147a6bc599
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user