projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a76f1
)
NFC: Set the right LLCP N(R) value for I frames
author
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 5 Mar 2012 00:03:41 +0000
(
01:03
+0100)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:21 +0000
(15:16 -0500)
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/llcp/llcp.c
patch
|
blob
|
history
diff --git
a/net/nfc/llcp/llcp.c
b/net/nfc/llcp/llcp.c
index 577bcb92ea9bd8f735e362c70bc2bd312f9b2e43..2506810cd780ed8f8e1e626a04743784a664e2da 100644
(file)
--- a/
net/nfc/llcp/llcp.c
+++ b/
net/nfc/llcp/llcp.c
@@
-419,7
+419,7
@@
static u8 nfc_llcp_nr(struct sk_buff *pdu)
static void nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu)
{
- pdu->data[2] = (sock->send_n << 4) | (
(sock->recv_n - 1)
% 16);
+ pdu->data[2] = (sock->send_n << 4) | (
sock->recv_n
% 16);
sock->send_n = (sock->send_n + 1) % 16;
sock->recv_ack_n = (sock->recv_n - 1) % 16;
}