diff options
-rw-r--r-- | include/net/nfc/nci_core.h | 1 | ||||
-rw-r--r-- | net/nfc/nci/core.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index cfea60748a39..8399a7964de4 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h | |||
@@ -72,6 +72,7 @@ struct nci_ops { | |||
72 | int (*send)(struct nci_dev *ndev, struct sk_buff *skb); | 72 | int (*send)(struct nci_dev *ndev, struct sk_buff *skb); |
73 | int (*setup)(struct nci_dev *ndev); | 73 | int (*setup)(struct nci_dev *ndev); |
74 | __u32 (*get_rfprotocol)(struct nci_dev *ndev, __u8 rf_protocol); | 74 | __u32 (*get_rfprotocol)(struct nci_dev *ndev, __u8 rf_protocol); |
75 | int (*discover_se)(struct nci_dev *ndev); | ||
75 | }; | 76 | }; |
76 | 77 | ||
77 | #define NCI_MAX_SUPPORTED_RF_INTERFACES 4 | 78 | #define NCI_MAX_SUPPORTED_RF_INTERFACES 4 |
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index a354d1985d50..4044973084a7 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c | |||
@@ -756,6 +756,11 @@ static int nci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) | |||
756 | 756 | ||
757 | static int nci_discover_se(struct nfc_dev *nfc_dev) | 757 | static int nci_discover_se(struct nfc_dev *nfc_dev) |
758 | { | 758 | { |
759 | struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); | ||
760 | |||
761 | if (ndev->ops->discover_se) | ||
762 | return ndev->ops->discover_se(ndev); | ||
763 | |||
759 | return 0; | 764 | return 0; |
760 | } | 765 | } |
761 | 766 | ||