diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-10-25 22:54:43 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-27 03:55:12 +0100 |
commit | 96d4581f0b3712221d6ed4a765bb6b4ea40f2b2f (patch) | |
tree | 1d07dd46daa8b0b1c2aa0e3d3c7c4f9cd47b7fbe /net/nfc/nfc.h | |
parent | NFC: st21nfca: Fix host_list verification after SEactivation (diff) | |
download | linux-96d4581f0b3712221d6ed4a765bb6b4ea40f2b2f.tar.xz linux-96d4581f0b3712221d6ed4a765bb6b4ea40f2b2f.zip |
NFC: netlink: Add mode parameter to deactivate_target functions
In order to manage in a better way the nci poll mode state machine,
add mode parameter to deactivate_target functions.
This way we can manage different target state.
mode parameter make sense only in nci core.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nfc.h')
-rw-r--r-- | net/nfc/nfc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h index 5c93e8412a26..c20b784ad720 100644 --- a/net/nfc/nfc.h +++ b/net/nfc/nfc.h @@ -25,6 +25,9 @@ #include <net/nfc/nfc.h> #include <net/sock.h> +#define NFC_TARGET_MODE_IDLE 0 +#define NFC_TARGET_MODE_SLEEP 1 + struct nfc_protocol { int id; struct proto *proto; @@ -147,7 +150,7 @@ int nfc_dep_link_down(struct nfc_dev *dev); int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol); -int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx); +int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode); int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context); |