Status-BIT4/BIT5 contain Password Hash status

In setPasswordHash command, status- BIT4/ BIT5 contain password
status.so we need to filter out the status bit for checking the 
supported Algorithm. Status BIT4 and BIT5 are used in
bios-settings-mgr service.

Tested:
SetPassword Hash command is working fine.

Signed-off-by: Suryakanth Sekar <suryakanth.sekar@linux.intel.com>
Change-Id: I8f3005c5b9fc1928f1728d86939625d3583da2e6
diff --git a/src/biosconfigcommands.cpp b/src/biosconfigcommands.cpp
index 1c6d060..38b044c 100644
--- a/src/biosconfigcommands.cpp
+++ b/src/biosconfigcommands.cpp
@@ -748,7 +748,7 @@
     if (OSState != "OperatingState")
     {
 
-        if (algoInfo != algoSHA384)
+        if ((algoInfo & 0xF) != algoSHA384)
         {
             // Atpresent, we are supporting only SHA384- HASH algo in BIOS side
             return ipmi::responseInvalidFieldRequest();
@@ -762,6 +762,7 @@
         json["AdminPwdHash"] = adminPwdHash;
         json["IsUserPwdChanged"] = false;
         json["UserPwdHash"] = userPwdHash;
+        json["StatusFlag"] = algoInfo;
         std::ofstream ofs(HashFilePath, std::ios::out);
         const auto& writeData = json.dump();
         ofs << writeData;