diff options
Diffstat (limited to 'net/nfc/llcp/llcp.h')
-rw-r--r-- | net/nfc/llcp/llcp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/nfc/llcp/llcp.h b/net/nfc/llcp/llcp.h index 465f5953e2d1..ca8c6d94ab85 100644 --- a/net/nfc/llcp/llcp.h +++ b/net/nfc/llcp/llcp.h | |||
@@ -97,6 +97,10 @@ struct nfc_llcp_local { | |||
97 | u8 remote_opt; | 97 | u8 remote_opt; |
98 | u16 remote_wks; | 98 | u16 remote_wks; |
99 | 99 | ||
100 | struct mutex sdreq_lock; | ||
101 | struct hlist_head pending_sdreqs; | ||
102 | u8 sdreq_next_tid; | ||
103 | |||
100 | /* sockets array */ | 104 | /* sockets array */ |
101 | struct llcp_sock_list sockets; | 105 | struct llcp_sock_list sockets; |
102 | struct llcp_sock_list connecting_sockets; | 106 | struct llcp_sock_list connecting_sockets; |
@@ -230,7 +234,10 @@ int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, | |||
230 | void nfc_llcp_recv(void *data, struct sk_buff *skb, int err); | 234 | void nfc_llcp_recv(void *data, struct sk_buff *skb, int err); |
231 | u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length); | 235 | u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length); |
232 | struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap); | 236 | struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap); |
237 | struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdreq_tlv(u8 tid, char *uri, | ||
238 | size_t uri_len); | ||
233 | void nfc_llcp_free_sdp_tlv(struct nfc_llcp_sdp_tlv *sdp); | 239 | void nfc_llcp_free_sdp_tlv(struct nfc_llcp_sdp_tlv *sdp); |
240 | void nfc_llcp_free_sdp_tlv_list(struct hlist_head *sdp_head); | ||
234 | void nfc_llcp_recv(void *data, struct sk_buff *skb, int err); | 241 | void nfc_llcp_recv(void *data, struct sk_buff *skb, int err); |
235 | int nfc_llcp_disconnect(struct nfc_llcp_sock *sock); | 242 | int nfc_llcp_disconnect(struct nfc_llcp_sock *sock); |
236 | int nfc_llcp_send_symm(struct nfc_dev *dev); | 243 | int nfc_llcp_send_symm(struct nfc_dev *dev); |
@@ -238,6 +245,8 @@ int nfc_llcp_send_connect(struct nfc_llcp_sock *sock); | |||
238 | int nfc_llcp_send_cc(struct nfc_llcp_sock *sock); | 245 | int nfc_llcp_send_cc(struct nfc_llcp_sock *sock); |
239 | int nfc_llcp_send_snl_sdres(struct nfc_llcp_local *local, | 246 | int nfc_llcp_send_snl_sdres(struct nfc_llcp_local *local, |
240 | struct hlist_head *tlv_list, size_t tlvs_len); | 247 | struct hlist_head *tlv_list, size_t tlvs_len); |
248 | int nfc_llcp_send_snl_sdreq(struct nfc_llcp_local *local, | ||
249 | struct hlist_head *tlv_list, size_t tlvs_len); | ||
241 | int nfc_llcp_send_dm(struct nfc_llcp_local *local, u8 ssap, u8 dsap, u8 reason); | 250 | int nfc_llcp_send_dm(struct nfc_llcp_local *local, u8 ssap, u8 dsap, u8 reason); |
242 | int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock); | 251 | int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock); |
243 | int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, | 252 | int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, |