mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-26 18:30:47 +00:00
!8319 check p2p adapter case for short range communication
Merge pull request !8319 from shiyifan/master
This commit is contained in:
commit
75af221da0
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user