- 08 Jun, 2020 1 commit
-
-
Benjamin Berg authored
-
- 05 Jun, 2020 29 commits
-
-
Benjamin Berg authored
This is based on the patch and observation from Bastien that some URU4000B devices do not use encryption by default (it is a configuration stored within the firmware). As such, it makes sense to always detect whether encryption is in use by inspecting the image. The encryption option would disable flipping of the image for the URU400B device. Retain this behaviour for backward compatibility.
-
Benjamin Berg authored
-
Benjamin Berg authored
-
Vasily Khoruzhick authored
The value was set after the transfer was submitting, causing the value to always be zero.
-
Benjamin Berg authored
The user data for write_regs_cb needs to be set to wrdata. This was simply missing, add the appropriate argument.
-
Benjamin Berg authored
The code would just read 4096 bytes from the packet, without checking the size and neither setting short_is_error. It is not clear whether packets from the device are always 4096 bytes or not. But the code assume we always get a full line, so enforce that and use the actual packet size otherwise.
-
Benjamin Berg authored
This seems to have been unused even before the v2 port.
-
Benjamin Berg authored
This was not used. The old driver used this if creating a USB transfer failed, however, we delay any such failures (which cannot really happen) into the callback today, where the error is handled differently.
-
Benjamin Berg authored
The GPtrArray needs to be created at some point. Also, reference counting was wrong as submitting the transfer sinks the ref, but we rely on it surviving. Note that we really should change this to only have one in-flight transfer and starting a new one after it finishes. Co-authored-by:
Vasily Khoruzhick <anarsoul@gmail.com>
-
Benjamin Berg authored
When sending static data, it would not be copied. The function that sends it assumed that it should be free'ed though. Fix this by simply always making a copy.
-
Benjamin Berg authored
The driver would warn about the fact that a state change is queued, but still queue it a second time. This would result in deactivation to run twice. See: #216
-
Benjamin Berg authored
The image driver may still be deactivating when a new activation request comes in. This is because of a hack to do early reporting, which is technically not needed anymore. Fix the immediate issue by properly reporting the retry case. The proper fix is to only finish the previous operation after the device has been deactivated.
-
Benjamin Berg authored
One can set it in the project, but that doesn't get copied to forks. And that means the coverage information isn't printed in MRs sometimes. Just add it into .gitlab-ci.yml so that it always works.
-
Benjamin Berg authored
Thanks to Evgeny for much of the work and suggestions from Boger Wang. Co-authored-by:
Evgeny Gagauz <evgenij.gagauz@gmail.com>
-
Benjamin Berg authored
This test is based on data captured by Evgeny. Co-authored-by:
Evgeny Gagauz <evgenij.gagauz@gmail.com>
-
Benjamin Berg authored
This allows us to replace non-emulateable timeout conditions into zero byte replies in the recording.
-
Benjamin Berg authored
We delayed the wrong error types for the early reporting mechanism.
-
Benjamin Berg authored
The error memory management was incorrect possibly causing double free's and critical warnings.
-
Benjamin Berg authored
the code tried to fetch the data from the device rather the print. Obviously, this could never work.
-
Benjamin Berg authored
Enrolled prints need to have their type set. FpDevice should ensure that is the case when a driver returns a print back.
-
Benjamin Berg authored
The driver might forget to set the type of the print. Catch that error a bit earlier rather than failing when the API user tries to load it from disk again.
-
Benjamin Berg authored
-
Benjamin Berg authored
The type of the print (RAW or NBIS) needs to be filled in by the driver. For most drivers the image devices does this (NBIS), but the corresponding call was missing in the upekts driver, rendering the enrolled print unusable.
-
Benjamin Berg authored
__handle_incoming_msg would copy the payload of the message into a newly created buffer just to destroy it again immediately after calling the callback. Just reference the correct address inside the original package instead. Also, in one case the extra buffer was leaked afterwards.
-
Benjamin Berg authored
The surrounding code already checks this and reads the correct amount. Add an assert to ensure we really never do an out of bounds read.
-
Benjamin Berg authored
The driver would correctly calculate the amount of extra space needed to receive the whole packet. It would also request the correct number of bytes for this transfer. However, the reallocated buffer to hold this data was directly derived from the expected payload size and did not include the overhead. Make the code more explicit and get rid of the confusing MAX_DATA_IN_READ_BUF define that hides details on buffer allocation calculation from the code.
-
Benjamin Berg authored
The device is already beeing de-initialised from the verify/enroll commands. Trying it again will result in a timeout error as it is not responding properly at that point.
-
Benjamin Berg authored
The print passed to do_enroll_stop does not need to be ref'ed in the function.
-
Benjamin Berg authored
fpi_device_enroll_complete takes the ownership of the pointers. As such, they need to be stolen from EnrollStopData.
-
- 04 Jun, 2020 2 commits
-
-
Vasily Khoruzhick authored
And activate perimeter points removal if this flag is set This flag should be set for aes1610, aesx660, aes2501, aes2550 and upektc_img since these sensors may produce incomplete image. Fixes: #142
-
Vasily Khoruzhick authored
This step helps to drop false minutiae for short sensors and it was accidentally dropped during NBIS update. Re-add this step and add a patch to update script to ensure that it's not dropped during next update. Fixes: 9fb789dc ("nbis: Update to NBIS 5.0.0")
-
- 02 Jun, 2020 2 commits
-
-
Benjamin Berg authored
Not having the diff is a bit painfull when the local version of uncrustify differs from the one on the CI runner. So uncrustify in-place and output the diff.
-
Benjamin Berg authored
-
- 22 May, 2020 1 commit
-
-
Benjamin Berg authored
-
- 13 May, 2020 1 commit
-
-
Evgeny Gagauz authored
If a transfer errors out then actual_length is negative. The only error that is not caught is a timeout error, which should also result in the SSM to move to the next state.
-
- 11 May, 2020 3 commits
-
-
Benjamin Berg authored
This must have been broken all along. Get it into a better shape. Looks like mostly cases of bad copy/paste.
-
Benjamin Berg authored
Otherwise the public API page (which is empty) is overwritten.
-
Benjamin Berg authored
We build the HTML documentation. For feature branches, it is convenient to be able to view the documentation easily. Expose them as artifacts and add a link to the browser underneath the pipeline in the MR. Unfortunately, it does not seem to be possible to link directly to the HTML.
-
- 07 May, 2020 1 commit
-
-
Benjamin Berg authored
Apply the newly added patch to the checkout.
-