Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2ae2182 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

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: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent deff5aa4
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -200,6 +200,9 @@ void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
			nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK,
			nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK,
					      &gate_opened, 1);
					      &gate_opened, 1);
		break;
		break;
	case NFC_HCI_ADM_NOTIFY_ALL_PIPE_CLEARED:
		nfc_hci_send_response(hdev, gate, NFC_HCI_ANY_OK, NULL, 0);
		break;
	default:
	default:
		pr_info("Discarded unknown cmd %x to gate %x\n", cmd, gate);
		pr_info("Discarded unknown cmd %x to gate %x\n", cmd, gate);
		r = -EINVAL;
		r = -EINVAL;