mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-12-19 04:48:42 +00:00
修改p2p/gc组无法删除
Signed-off-by: l30052082 <lihui410@huawei.com>
This commit is contained in:
parent
dc22917da9
commit
71720f3276
@ -451,7 +451,13 @@ ErrCode WifiP2pServiceImpl::RemoveGroup()
|
|||||||
WIFI_LOGE("Get P2P service failed!");
|
WIFI_LOGE("Get P2P service failed!");
|
||||||
return WIFI_OPT_P2P_NOT_OPENED;
|
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();
|
return pService->RemoveGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user