!8319 check p2p adapter case for short range communication

Merge pull request !8319 from shiyifan/master
This commit is contained in:
openharmony_ci 2024-11-09 11:13:02 +00:00 committed by Gitee
commit 75af221da0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -248,7 +248,7 @@ int32_t P2pAdapter::GetSelfWifiConfigInfo(std::string &config)
uint8_t wifiConfig[CFG_DATA_MAX_BYTES] = { 0 };
int32_t wifiConfigSize = 0;
int32_t ret = Hid2dGetSelfWifiCfgInfo(TYPE_OF_GET_SELF_CONFIG, (char *)wifiConfig, &wifiConfigSize);
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, "get self wifi config failed, error=%{public}d",
ToSoftBusErrorCode(ret));