Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfc: Fix MIFARE Plus detection #4049

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

GMMan
Copy link
Contributor

@GMMan GMMan commented Dec 30, 2024

What's new

  • Fixes MIFARE Plus version detection

Due to the lack of public documentation, I can only use what I've observed from the one MFP EV1 sample that I have, so the GetVersion detection is very conservative and does not attempt to fetch the entire version info. This should be good enough to at least identify the type of card.

Verification

  • Scanning a MIFARE Plus EV1 2k in SL1 as MIFARE Plus should no longer show it as MIFARE Plus X 2k in SL1
  • Other MIFARE Plus cards should be detected correctly. Special attention should be paid to MIFARE Plus EV1 and EV2 in SL1 and SL3

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

MIFARE Plus original doesn't have GetVersion support, so detection for SL2 has been moved. Also, SL2 only exists in MIFARE Plus X, so despite it not being specified in the type identification procedure chart, it's safe to call it for what it is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant