projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d7e49
)
NFC: LLCP's MIUX is 10 bytes long, not 7
author
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 14 May 2012 15:38:54 +0000
(17:38 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 4 Jun 2012 19:34:29 +0000
(21:34 +0200)
The mask is 0x7ff and not 0x7f and the return value is an u16.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp/commands.c
patch
|
blob
|
history
diff --git
a/net/nfc/llcp/commands.c
b/net/nfc/llcp/commands.c
index 850e5cf79378b69050646a6b3176620a2603b7c5..b982b5b890d73da30a315567851d5d91e7ec9285 100644
(file)
--- a/
net/nfc/llcp/commands.c
+++ b/
net/nfc/llcp/commands.c
@@
-51,7
+51,7
@@
static u8 llcp_tlv8(u8 *tlv, u8 type)
return tlv[2];
}
-static u
8
llcp_tlv16(u8 *tlv, u8 type)
+static u
16
llcp_tlv16(u8 *tlv, u8 type)
{
if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]])
return 0;
@@
-67,7
+67,7
@@
static u8 llcp_tlv_version(u8 *tlv)
static u16 llcp_tlv_miux(u8 *tlv)
{
- return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7f;
+ return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7f
f
;
}
static u16 llcp_tlv_wks(u8 *tlv)