PEL: Save tran states in the repo attributes

Save the host and HMC (Hardware Management Console) transmission
states in the PEL attributes map so that external callers can
get to them without having to unflatten a PEL from the filesystem.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: If8b396d3c342af2c7a3c34f4f1bb0a7da075e47c
diff --git a/extensions/openpower-pels/repository.cpp b/extensions/openpower-pels/repository.cpp
index 3aeecb6..a21b0fa 100644
--- a/extensions/openpower-pels/repository.cpp
+++ b/extensions/openpower-pels/repository.cpp
@@ -58,8 +58,9 @@
             PEL pel{data};
             if (pel.valid())
             {
-                PELAttributes attributes{dirEntry.path(),
-                                         pel.userHeader().actionFlags()};
+                PELAttributes attributes{
+                    dirEntry.path(), pel.userHeader().actionFlags(),
+                    pel.hostTransmissionState(), pel.hmcTransmissionState()};
 
                 using pelID = LogID::Pel;
                 using obmcID = LogID::Obmc;
@@ -99,7 +100,9 @@
 
     write(*(pel.get()), path);
 
-    PELAttributes attributes{path, pel->userHeader().actionFlags()};
+    PELAttributes attributes{path, pel->userHeader().actionFlags(),
+                             pel->hostTransmissionState(),
+                             pel->hmcTransmissionState()};
 
     using pelID = LogID::Pel;
     using obmcID = LogID::Obmc;