From 3c69c94eed1a0c6eecfd53e739fade6596c6f3e5 Mon Sep 17 00:00:00 2001 From: Yong Li Date: Thu, 12 Sep 2019 17:37:05 +0800 Subject: [PATCH] Add timer use/actions support Based on IPMI spec, add timer use/actions support, and add input data checking Signed-off-by: Yong Li --- app/watchdog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/watchdog.cpp b/app/watchdog.cpp index c4e594d..18e7e3a 100644 --- a/app/watchdog.cpp +++ b/app/watchdog.cpp @@ -251,8 +251,8 @@ ipmi::RspType<> ipmiSetWatchdogTimer( return ipmi::responseInvalidFieldRequest(); } - timerLogFlags = static_cast(dontLog); - timerActions &= static_cast(timeoutAction) | + timerLogFlags = (static_cast(dontLog)) << 7; + timerActions = static_cast(timeoutAction) | static_cast(preTimeoutInterrupt) << 4; try -- 2.7.4