aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/digital_technology.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@animalcreek.com>2014-04-23 14:00:55 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2014-05-19 17:52:37 -0400
commit96e829b433056d8325916631dc370a4ba42bdaf8 (patch)
treec7ac2cd1a4b393dd55a6f49fd8c08633b2bc9d03 /net/nfc/digital_technology.c
parent0c942b007b52cdcde285fa1122688f186bf99464 (diff)
NFC: digital: SENSF_RES excludes RD when SENSF_REQ RC is zero
The check in digital_tg_send_sensf_res() that excludes the 'RD' field from the SENSF_RES is inverted. The 'RD' field should be excluded when the SENSF_REQ 'RC' field is equal to DIGITAL_SENSF_REQ_RC_NONE instead of when its not equal. This is described in section 6.6.2.11 of the NFC Digital Specification. CC: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/digital_technology.c')
-rw-r--r--net/nfc/digital_technology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/digital_technology.c b/net/nfc/digital_technology.c
index 88e946adb7bf..c8dfb1b90fa0 100644
--- a/net/nfc/digital_technology.c
+++ b/net/nfc/digital_technology.c
@@ -1101,7 +1101,7 @@ static int digital_tg_send_sensf_res(struct nfc_digital_dev *ddev,
1101 1101
1102 size = sizeof(struct digital_sensf_res); 1102 size = sizeof(struct digital_sensf_res);
1103 1103
1104 if (sensf_req->rc != DIGITAL_SENSF_REQ_RC_NONE) 1104 if (sensf_req->rc == DIGITAL_SENSF_REQ_RC_NONE)
1105 size -= sizeof(sensf_res->rd); 1105 size -= sizeof(sensf_res->rd);
1106 1106
1107 skb = digital_skb_alloc(ddev, size); 1107 skb = digital_skb_alloc(ddev, size);