mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
615b524aca
commit
8409e4283c
2 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue