提交 025f1520 编写于 作者: S Samuel Ortiz 提交者: John W. Linville

NFC: Update LLCP socket target index when getting a connection

Getting a valid CONNECT means we have a valid target index.
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 5df16cad
......@@ -677,6 +677,7 @@ static void nfc_llcp_recv_connect(struct nfc_llcp_local *local,
new_sock->nfc_protocol = sock->nfc_protocol;
new_sock->ssap = sock->ssap;
new_sock->dsap = ssap;
new_sock->target_idx = local->target_idx;
new_sock->parent = parent;
nfc_llcp_parse_connection_tlv(new_sock, &skb->data[LLCP_HEADER_SIZE],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册