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

Fix for unsupported commands: GET_CLOCK_FREQUENCIES and improvement of previous fix for GET_DATA_RATES #83

Merged
merged 2 commits into from
Apr 10, 2021

Conversation

gtrentalancia
Copy link
Contributor

This pull request aims to fix the case of two commands possibly unsupported by some readers:

GET_CLOCK_FREQUENCIES (bNumClockSupported) - new fix

GET_DATA_RATES (bNumDataRatesSupported) - code style improvement of previous fix

Both fixes seem to be needed at least on the following reader: Bit4Id miniLector AIR NFC v3 (25DD:3403).

… data rates:

commit b00292f
Author: Ludovic Rousseau <[email protected]>
Date:   Sat Mar 27 18:46:15 2021 +0100

    ccid_usb: ask for bNumDataRatesSupported data rates

    Some devices set bNumDataRatesSupported to a value different from 0 but
    libusb_control_transfer() fails if another value (like 256) is used.

    The Alcor Micro 9540 is such a reader.

commit 19b9e92 (HEAD -> master, origin/master, origin/HEAD)
Author: Ludovic Rousseau <[email protected]>
Date:   Sun Apr 4 19:04:10 2021 +0200

    get_data_rates(): fix bug if bNumDataRatesSupported > 0

    The bug was introduced in b00292f (not
    released in a stable version)

    Thanks to Godfrey Chung got the bug report
    b00292f#r49087277

-------

These fixes seem also needed on the following reader: Bit4Id miniLector AIR NFC v3 (25DD:3403).

Signed-off-by: Guido Trentalancia <[email protected]>
Some devices set bNumClockSupported to a value different from 0 but
libusb_control_transfer() fails if another value (like 256) is used.

The Bit4Id miniLector AIR NFC v3 (25DD:3403) seems to need this fix.

Signed-off-by: Guido Trentalancia <[email protected]>
@LudovicRousseau LudovicRousseau merged commit 2ef2fb6 into LudovicRousseau:master Apr 10, 2021
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.

2 participants