summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorArron Wang <arron.wang@intel.com>2012-09-27 17:32:56 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-10-26 18:26:45 +0200
commit928326f2237d2dd62b2fb9374c655cd906549868 (patch)
tree7ea03fcbcf40317ccb3cf0258be1323c197238c5 /net
parentf7a5f6c532f33ba66a7ca19e81ed447a83dab2db (diff)
downloadop-kernel-dev-928326f2237d2dd62b2fb9374c655cd906549868.zip
op-kernel-dev-928326f2237d2dd62b2fb9374c655cd906549868.tar.gz
NFC: Handle pn544 continue activation
We need to send continue activation command to allow NFCIP-1 activation when a NFC target has been discovered in type A or type F reader gate. Signed-off-by: Arron Wang <arron.wang@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/nfc/hci/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index 8a9a811..052a0a2 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -263,7 +263,9 @@ int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
break;
}
- targets->hci_reader_gate = gate;
+ /* if driver set the new gate, we will skip the old one */
+ if (targets->hci_reader_gate == 0x00)
+ targets->hci_reader_gate = gate;
r = nfc_targets_found(hdev->ndev, targets, 1);
OpenPOWER on IntegriCloud