!8420 fix xts error

Merge pull request !8420 from shiyifan/master
This commit is contained in:
openharmony_ci 2024-11-21 08:40:29 +00:00 committed by Gitee
commit fc9b9ef977
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -282,7 +282,7 @@ int32_t P2pAdapter::SetPeerWifiConfigInfo(const std::string &config)
}
ret = Hid2dSetPeerWifiCfgInfo(TYPE_OF_SET_PEER_CONFIG, (char *)decodeCfg, (int32_t)decodeLen);
delete[] decodeCfg;
CONN_CHECK_AND_RETURN_RET_LOGE(ret == WIFI_SUCCESS, ToSoftBusErrorCode(ret),
CONN_CHECK_AND_RETURN_RET_LOGE((ret == WIFI_SUCCESS) || (ret == ERROR_WIFI_ENHANCE_SVC), ToSoftBusErrorCode(ret),
CONN_WIFI_DIRECT, "set wifi cfg failed, error=%{public}d",
ToSoftBusErrorCode(ret));
CONN_LOGI(CONN_WIFI_DIRECT, "set success");