diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-12-23 23:45:18 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-12-29 19:06:20 +0100 |
commit | 9afec6d3866b8451abcf1a7a1a381a3be6c83386 (patch) | |
tree | 8286f9115386f6b5f2f319381ceffe52e9c2793c /net/nfc/core.c | |
parent | dfa4089b3a3f3ac8bea847f968c92b89fbbf107c (diff) | |
download | linux-9afec6d3866b8451abcf1a7a1a381a3be6c83386.tar.gz linux-9afec6d3866b8451abcf1a7a1a381a3be6c83386.tar.bz2 linux-9afec6d3866b8451abcf1a7a1a381a3be6c83386.zip |
nfc: netlink: HCI event connectivity implementation
Add support for missing HCI event EVT_CONNECTIVITY and forward
it to userspace.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r-- | net/nfc/core.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c index 1fe3d3b362c0..122bb81da918 100644 --- a/net/nfc/core.c +++ b/net/nfc/core.c @@ -953,6 +953,19 @@ out: } EXPORT_SYMBOL(nfc_se_transaction); +int nfc_se_connectivity(struct nfc_dev *dev, u8 se_idx) +{ + int rc; + + pr_debug("connectivity: %x\n", se_idx); + + device_lock(&dev->dev); + rc = nfc_genl_se_connectivity(dev, se_idx); + device_unlock(&dev->dev); + return rc; +} +EXPORT_SYMBOL(nfc_se_connectivity); + static void nfc_release(struct device *d) { struct nfc_dev *dev = to_nfc_dev(d); |