fix:Adapter bluetooth return code for duplicate addr

Signed-off-by: c00828596 <caiguangwei2@huawei.com>
This commit is contained in:
c00828596 2024-08-07 21:06:45 +08:00
parent 3092ee557b
commit f915bdf036
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,8 @@ int32_t BtStatusToSoftBus(BtStatus btStatus)
return SOFTBUS_BC_STATUS_RMT_DEV_DOWN;
case OHOS_BT_STATUS_AUTH_REJECTED:
return SOFTBUS_BC_STATUS_AUTH_REJECTED;
case OHOS_BT_STATUS_DUPLICATED_ADDR:
return SOFTBUS_BC_STATUS_DUPLICATED_ADDR;
default:
return SOFTBUS_BC_STATUS_FAIL;
}

View File

@ -159,7 +159,8 @@ typedef enum {
SOFTBUS_BC_STATUS_UNHANDLED,
SOFTBUS_BC_STATUS_AUTH_FAILURE,
SOFTBUS_BC_STATUS_RMT_DEV_DOWN,
SOFTBUS_BC_STATUS_AUTH_REJECTED
SOFTBUS_BC_STATUS_AUTH_REJECTED,
SOFTBUS_BC_STATUS_DUPLICATED_ADDR
} SoftBusBcStatus;
/**