summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-04-10 19:43:20 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-04-12 15:10:45 -0400
commit91b0ade112136a1504677defa91cf137d9a53994 (patch)
treeffff93d4e814d7a8a7c20b463f2934ec4ef7d943 /net/nfc
parent56d5876a22e79b0bb82eb3dc5f2134fa429daa2e (diff)
downloadlinux-stable-91b0ade112136a1504677defa91cf137d9a53994.tar.gz
linux-stable-91b0ade112136a1504677defa91cf137d9a53994.tar.bz2
linux-stable-91b0ade112136a1504677defa91cf137d9a53994.zip
NFC: Fix LLCP link timeout typo
We were sending the LTO TLV as a version TLV instead of the actual link timeout one. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/llcp/llcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c
index 31a05e55619f..92988aa620dc 100644
--- a/net/nfc/llcp/llcp.c
+++ b/net/nfc/llcp/llcp.c
@@ -318,7 +318,7 @@ static int nfc_llcp_build_gb(struct nfc_llcp_local *local)
/* 1500 ms */
lto = 150;
- lto_tlv = nfc_llcp_build_tlv(LLCP_TLV_VERSION, &lto, 1, &lto_length);
+ lto_tlv = nfc_llcp_build_tlv(LLCP_TLV_LTO, &lto, 1, &lto_length);
gb_len += lto_length;
pr_debug("Local wks 0x%lx\n", local->local_wks);