fix: modify dev name len when assembleTLV

Signed-off-by: Mark <liudongmiao@huawei.com>
This commit is contained in:
Mark 2024-01-14 12:48:31 +00:00
parent 8851fe2ac9
commit ca8e888920

View File

@ -258,6 +258,9 @@ int32_t AssembleTLV(BroadcastData *broadcastData, uint8_t dataType, const void *
return SOFTBUS_MEM_ERR;
}
broadcastData->dataLen += validLen;
if (dataType == TLV_TYPE_DEVICE_NAME) {
broadcastData->dataLen += 1;
}
return SOFTBUS_OK;
}