summaryrefslogtreecommitdiff
path: root/halimpl
diff options
context:
space:
mode:
authorEvan Chu <evanchu@broadcom.com>2013-11-19 17:12:41 -0500
committerMartijn Coenen <maco@google.com>2014-05-19 13:28:24 -0700
commit46f4e4f7099609ff6b5e7efce7b91b4252bdbfb1 (patch)
treea162666ad226709a071b0bb56e248c7e3ea83dc0 /halimpl
parenta24be4f06674b2707b57904deaa0dff5a95823bd (diff)
downloadlibnfc-nci-46f4e4f7099609ff6b5e7efce7b91b4252bdbfb1.tar.gz
Delete non-volatile storage file for NFCEE ID 0xF5.
Delete non-volatile storage file for NFCEE ID 0xF5, which corresponds to UICC slot 2 on chip 20795. Change-Id: I1ad2016f93af4fda42c8b6e44672cc39529cb09e
Diffstat (limited to 'halimpl')
-rw-r--r--halimpl/bcm2079x/adaptation/NonVolatileStore.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/halimpl/bcm2079x/adaptation/NonVolatileStore.cpp b/halimpl/bcm2079x/adaptation/NonVolatileStore.cpp
index 0168517..f921f99 100644
--- a/halimpl/bcm2079x/adaptation/NonVolatileStore.cpp
+++ b/halimpl/bcm2079x/adaptation/NonVolatileStore.cpp
@@ -220,6 +220,8 @@ void delete_hal_non_volatile_store (bool forceDelete)
remove (filename);
snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), HC_F2_NV_BLOCK);
remove (filename);
+ snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), HC_F5_NV_BLOCK);
+ remove (filename);
}
@@ -259,7 +261,11 @@ void verify_hal_non_volatile_store ()
{
snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), HC_F2_NV_BLOCK);
if (crcChecksumVerifyIntegrity (filename))
- isValid = true;
+ {
+ snprintf (filename, sizeof(filename), "%s%u", fn.c_str(), HC_F5_NV_BLOCK);
+ if (crcChecksumVerifyIntegrity (filename))
+ isValid = true;
+ }
}
}
}