Skip to content

Commit fda7a49

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: hci: Change event_received handler gate parameter to pipe
Several pipes may point to the same CLF gate, so getting the gate ID as an input is not enough. For example dual secure element may have 2 pipes (1 for uicc and 1 for eSE) pointing to the connectivity gate. As resolving gate and host IDs can be done from a pipe, we now pass the pipe ID to the event received handler. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 6da7c85 commit fda7a49

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/nfc/hci.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct nfc_hci_ops {
5151
int (*tm_send)(struct nfc_hci_dev *hdev, struct sk_buff *skb);
5252
int (*check_presence)(struct nfc_hci_dev *hdev,
5353
struct nfc_target *target);
54-
int (*event_received)(struct nfc_hci_dev *hdev, u8 gate, u8 event,
54+
int (*event_received)(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
5555
struct sk_buff *skb);
5656
int (*fw_download)(struct nfc_hci_dev *hdev, const char *firmware_name);
5757
int (*discover_se)(struct nfc_hci_dev *dev);

‎net/nfc/hci/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ void nfc_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
338338
}
339339

340340
if (hdev->ops->event_received) {
341-
r = hdev->ops->event_received(hdev, gate, event, skb);
341+
r = hdev->ops->event_received(hdev, pipe, event, skb);
342342
if (r <= 0)
343343
goto exit_noskb;
344344
}

0 commit comments

Comments
 (0)