!8268 fix:adjust V0 hb type

Merge pull request !8268 from 马浩云/master
This commit is contained in:
openharmony_ci 2024-11-05 13:11:57 +00:00 committed by Gitee
commit 854a74f140
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ typedef uint32_t LnnHeartbeatType;
#define HEARTBEAT_TYPE_BLE_V3 (0x1L << 4)
#define HEARTBEAT_TYPE_BLE_V4 (0x1L << 5) // for heartbeat to lowpower
#define HEARTBEAT_TYPE_MAX (0x1L << 6)
#define HEARTBEAT_TYPE_INVALID 0xFFFF
#define NORMAL_STRATEGY 1
#define HIGH_PERFORMANCE_STRATEGY 2

View File

@ -381,7 +381,7 @@ void LnnRemoveSendEndMsg(LnnHeartbeatFsm *hbFsm, LnnHeartbeatType type, bool wak
*isRemoved = true;
LnnRemoveSendEndMsgPara msgPara = {
.hbType = type & (~HEARTBEAT_TYPE_BLE_V3),
.hbType = type & (LnnIsLocalSupportBurstFeature() ? HEARTBEAT_TYPE_INVALID : ~HEARTBEAT_TYPE_BLE_V3),
.wakeupFlag = wakeupFlag,
.isRelay = isRelay,
.isRemoved = isRemoved,