mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-27 01:01:03 +00:00
!3364 fix master P2p Open Session failed
Merge pull request !3364 from xionglei/master
This commit is contained in:
commit
e3afe0e083
@ -1647,7 +1647,11 @@ ErrCode WifiP2pProxy::Hid2dSetPeerWifiCfgInfo(PeerCfgType cfgType,
|
||||
if (exception) {
|
||||
return WIFI_OPT_FAILED;
|
||||
}
|
||||
return ErrCode(reply.ReadInt32());
|
||||
int ret = reply.ReadInt32();
|
||||
if (ErrCode(ret) != WIFI_OPT_SUCCESS) {
|
||||
return ErrCode(ret);
|
||||
}
|
||||
return WIFI_OPT_SUCCESS;
|
||||
}
|
||||
|
||||
ErrCode WifiP2pProxy::Hid2dSetUpperScene(const std::string& ifName, const Hid2dUpperScene& scene)
|
||||
|
@ -1390,7 +1390,7 @@ ErrCode WifiP2pServiceImpl::Hid2dSetPeerWifiCfgInfo(PeerCfgType cfgType,
|
||||
IEnhanceService *pEnhanceService = WifiServiceManager::GetInstance().GetEnhanceServiceInst();
|
||||
if (pEnhanceService == nullptr) {
|
||||
WIFI_LOGE("Get pEnhanceService service failed!");
|
||||
return WIFI_OPT_FAILED;
|
||||
return WIFI_OPT_GET_ENHANCE_SVC_FAILED;
|
||||
}
|
||||
|
||||
if (pEnhanceService->Hid2dSetPeerWifiCfgInfo(cfgType, cfgData, setDataValidLen) != WIFI_OPT_SUCCESS) {
|
||||
@ -1543,7 +1543,7 @@ ErrCode WifiP2pServiceImpl::Hid2dIsWideBandwidthSupported(bool &isSupport)
|
||||
IEnhanceService *pEnhanceService = WifiServiceManager::GetInstance().GetEnhanceServiceInst();
|
||||
if (pEnhanceService == nullptr) {
|
||||
WIFI_LOGE("Hid2dIsWideBandwidthSupported get pEnhanceService service failed!");
|
||||
return WIFI_OPT_FAILED;
|
||||
return WIFI_OPT_GET_ENHANCE_SVC_FAILED;
|
||||
}
|
||||
|
||||
isSupport = pEnhanceService->IsWideBandwidthSupported();
|
||||
|
Loading…
Reference in New Issue
Block a user