Set default power state when NFC is enabled

If NFC is turned off and on the same power state,
DH doesn't send CORE_SET_POWER_SUB_STATE_CMD to NFCC
because previous power state in DH is same as the new one.

But, actually, default power state in NFCC is Switched On.
Therefore, if NFC is enabled on the "locked" state,
secure NFC doesn't work until power state is changed.

This patch sets previous power state of Switched On-Unlocked
so that CORE_SET_POWER_SUB_STATE_CMD is correctly updated
when NFC is enabled.
1 file changed
tree: be6211a54200e8fa924df145e52c349db6ec6e49
  1. assets/
  2. etc/
  3. nci/
  4. res/
  5. src/
  6. tests/
  7. .clang-format
  8. Android.bp
  9. AndroidManifest.xml
  10. CleanSpec.mk
  11. migrate_nfc.txt
  12. OWNERS
  13. PREUPLOAD.cfg
  14. README.md
README.md

NFC_NCIHAL_Nfc

Git Repository

DESCRIPTIONCHECKOUT COMMAND
NFC_NCIHAL_Nfcgit clone https://github.com/NXPNFCProject/NFC_NCIHAL_Nfc.git

Supported Version on "br_android_ncihalx_row_q" branch

Android VersionNXP ReleaseNXP Tag
aosp-master10.01.00 (PN80T/PN81T/PN553/PN557)NFC_AR_00_18C0_10.01.00_OpnSrc
aosp-master10.02.00 (PN80T/PN81T/PN553/PN557)NFC_AR_00_18C0_10.02.00_OpnSrc
android-10.0.0_r210.03.00 (PN80T/PN81T/PN553/PN557)NFC_AR_00_18C0_10.03.00_OpnSrc
android-10.0.0_r210.04.00 (PN80T/PN81T/PN553/PN557)NFC_AR_00_18C0_10.04.00_OpnSrc

Supported Versions on "br_android_ncihalx_row_p" Branch

Android VersionNXP ReleaseNXP Tag
android-p-preview 29.0.D (PN553)NFC_NCIHALx_AR00C0.9.0.D_OpnSrc
android-9.0.0_r39.1.0 (PN557)NFC_NCIHALx_AR0800.9.1.0_OpnSrc
android-9.0.0_r39.2.0 (PN81T/PN557)NFC_NCIHALx_AR1800.9.2.0_OpnSrc
android-9.0.0_r39.3.0 (PN553)NFC_NCIHALx_AR0040.9.3.0_OpnSrc
android-9.0.0_r39.4.0 (PN553)NFC_NCIHALx_AR00C0.9.4.0_OpnSrc
android-9.0.0_r39.5.0 (PN557)NFC_NCIHALx_AR1800.9.5.0_OpnSrc
android-9.0.0_r39.6.0 (PN80T/PN81T)NFC_NCIHALx_AR18C0.9.6.0_OpnSrc