diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-12-23 00:24:22 +0100 |
---|---|---|
committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2008-12-23 00:24:22 +0100 |
commit | 8e655cf40735ed91c162e75701ed94c927fb93f2 (patch) | |
tree | 00ebad12b872c5c8cae0b1fa783a3aae93f5d025 /packages/librfid/files/013-zero-UID.patch | |
parent | 762ef6bea06fe8a8e62936c82f7530ef4ce132f8 (diff) |
librfid: cherrypick patches from http://www.nixda.biz/librfid/
Diffstat (limited to 'packages/librfid/files/013-zero-UID.patch')
-rw-r--r-- | packages/librfid/files/013-zero-UID.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/librfid/files/013-zero-UID.patch b/packages/librfid/files/013-zero-UID.patch new file mode 100644 index 0000000000..30e09099c4 --- /dev/null +++ b/packages/librfid/files/013-zero-UID.patch @@ -0,0 +1,31 @@ +Index: librfid-svn/src/rfid_asic_rc632.c +=================================================================== +--- librfid-svn.orig/src/rfid_asic_rc632.c 2008-02-27 16:47:21.000000000 -0500 ++++ librfid-svn/src/rfid_asic_rc632.c 2008-02-28 12:56:31.000000000 -0500 +@@ -529,7 +529,7 @@ + rc632_reg_read(handle, RC632_REG_CHANNEL_REDUNDANCY, &tmp); + + //return 0; +- return -1; ++ return -EIO; + } + + return rc632_fifo_read(handle, *rx_len, rx_buf); +@@ -1777,7 +1777,7 @@ + ret = rc632_transceive(handle, (u_int8_t *)acf, acf_len, + (u_int8_t *) resp, rx_len, + iso15693_timing[rate][ISO15693_T1], 0); +- if (ret == -ETIMEDOUT) ++ if (ret == -ETIMEDOUT || ret == -EIO) + return ret; + + /* determine whether there was a collission */ +@@ -1795,6 +1795,8 @@ + *bit_of_col = boc; + }else{ + *bit_of_col = 0; ++ if (error_flag & RC632_ERR_FLAG_CRC_ERR) ++ return -EIO; + } + + return 0; |