aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-06-18 15:38:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:42:14 -0400
commit025f152046c8a4101a61943ab2065fdf1fa02c0e (patch)
tree47558e8547d29490bb1df790c67adad2c99f13c8 /net/nfc
parent5df16cad44f13293803ad3fbc4d49ae2c40e1f0f (diff)
NFC: Update LLCP socket target index when getting a connection
Getting a valid CONNECT means we have a valid target index. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/llcp/llcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index 5d503eeb15a1..eee4b9286f8d 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -677,6 +677,7 @@ static void nfc_llcp_recv_connect(struct nfc_llcp_local *local,
677 new_sock->nfc_protocol = sock->nfc_protocol; 677 new_sock->nfc_protocol = sock->nfc_protocol;
678 new_sock->ssap = sock->ssap; 678 new_sock->ssap = sock->ssap;
679 new_sock->dsap = ssap; 679 new_sock->dsap = ssap;
680 new_sock->target_idx = local->target_idx;
680 new_sock->parent = parent; 681 new_sock->parent = parent;
681 682
682 nfc_llcp_parse_connection_tlv(new_sock, &skb->data[LLCP_HEADER_SIZE], 683 nfc_llcp_parse_connection_tlv(new_sock, &skb->data[LLCP_HEADER_SIZE],