Skip to content

Commit

Permalink
NFC: Fix LLCP link timeout typo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed Apr 12, 2012
1 parent 56d5876 commit 91b0ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91b0ade

Please sign in to comment.