NFC: Export sensf from pn533
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 5 Mar 2012 00:03:45 +0000 (01:03 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:22 +0000 (15:16 -0500)
sensf is the detection response for Felica NFC tags.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/nfc/pn533.c

index a5766042f0ee0711e1f4357877d99d2792b3cc3e..353bab775d7df89f99efef72df08ce43f645d8b2 100644 (file)
@@ -783,6 +783,9 @@ static int pn533_target_found_felica(struct nfc_target *nfc_tgt, u8 *tgt_data,
        else
                nfc_tgt->supported_protocols = NFC_PROTO_FELICA_MASK;
 
+       memcpy(nfc_tgt->sensf_res, &tgt_felica->opcode, 9);
+       nfc_tgt->sensf_res_len = 9;
+
        return 0;
 }