fix ble join network issue

Signed-off-by: chenbotong <chenbotong1@huawei.com>
This commit is contained in:
chenbotong 2022-08-18 08:46:34 +08:00
parent 437c21129a
commit 4e5b187168

View File

@ -657,7 +657,7 @@ int32_t TransNotifyAuthDataSuccess(int32_t channelId)
return LnnNotifyDiscoveryDevice(&addr);
} else if (TransProxyGetSendMsgChanInfo(channelId, &info) == SOFTBUS_OK) {
ConnectOption connOpt;
if(TransProxyGetConnectOption(info.connId, &connOpt) != SOFTBUS_OK) {
if (TransProxyGetConnectOption(info.connId, &connOpt) != SOFTBUS_OK) {
return SOFTBUS_ERR;
}
if (connOpt.type == CONNECT_BLE && !LnnConvertOptionToAddr(&addr, &chanInfo.connOpt, CONNECTION_ADDR_BLE)) {