diff options
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; |