summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-01-27 03:18:15 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2015-01-28 02:03:34 +0300
commit8409e4283c1ca62ce107564de7ff93b4dd476d41 (patch)
treecd9df96187e7a60fa79838fd1fa79cc4027edd11 /net/nfc
parent615b524aca0bff52ce6654ddf26546546eb02e93 (diff)
downloadlinux-8409e4283c1ca62ce107564de7ff93b4dd476d41.tar.xz
NFC: hci: Add cmd_received handler
When a command is received, it is sometime needed to let the CLF driver do some additional operations. (ex: count remaining pipe notification...) Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index a664a67dff1c..6e061da2258a 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -249,6 +249,9 @@ void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
break;
}
+ if (hdev->ops->cmd_received)
+ hdev->ops->cmd_received(hdev, pipe, cmd, skb);
+
exit:
nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_RESPONSE,
status, NULL, 0, NULL, NULL, 0);