aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-11-12 18:30:43 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2014-12-01 20:02:00 -0500
commita2ae21829833611fe3d73b09cfada5823c37aef0 (patch)
tree91eb97df3122e270b12d41a069e8fd2d229ba375
parentdeff5aa4699a36e792c00ad7e7a8aa811edd6296 (diff)
NFC: hci: Add support for NOTIFY_ALL_PIPE_CLEARED
When switching from UICC to another, the CLF may signals to the Terminal Host that some existing pipe are cleared for future update. This notification needs to be "acked" by the Terminal Host with a ANY_OK message. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-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 779a3c1fc344..ef50e7716c4a 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -200,6 +200,9 @@ void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
200 nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK, 200 nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK,
201 &gate_opened, 1); 201 &gate_opened, 1);
202 break; 202 break;
203 case NFC_HCI_ADM_NOTIFY_ALL_PIPE_CLEARED:
204 nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK, NULL, 0);
205 break;
203 default: 206 default:
204 pr_info("Discarded unknown cmd %x to gate %x\n", cmd, gate); 207 pr_info("Discarded unknown cmd %x to gate %x\n", cmd, gate);
205 r = -EINVAL; 208 r = -EINVAL;