GetWakeupTime should return full time information, including
the daylight/timezone. Make use of the existing non-volatile
variables for that purpose. Moreover add an error checking
of possibly invalid parameters.
This partially fixes FWTS and SCT Set/GetWakeupTime tests on
Marvell platforms.
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
OUT EFI_TIME *Time\r
)\r
{\r
+ if (Time == NULL || Enabled == NULL || Pending == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+\r
+ //\r
+ // Set these first so the RealTimeClockLib implementation\r
+ // can override them based on its own settings.\r
+ //\r
+ Time->TimeZone = mTimeSettings.TimeZone;\r
+ Time->Daylight = mTimeSettings.Daylight;\r
+\r
return LibGetWakeupTime (Enabled, Pending, Time);\r
}\r
\r