diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-04 19:03:41 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:21 -0500 |
commit | 0767a7fa87ff18f6a11e3de954c5386a45b9d96e (patch) | |
tree | b2c2a3251cff14e90d7187c34d9818885d89d37d /net/nfc | |
parent | b9a76f1d3c6da47b2fa115ff1c0de229e8d06f8f (diff) |
NFC: Set the right LLCP N(R) value for I frames
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 577bcb92ea9b..2506810cd780 100644 --- 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) | |||
419 | 419 | ||
420 | static void nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu) | 420 | static void nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu) |
421 | { | 421 | { |
422 | pdu->data[2] = (sock->send_n << 4) | ((sock->recv_n - 1) % 16); | 422 | pdu->data[2] = (sock->send_n << 4) | (sock->recv_n % 16); |
423 | sock->send_n = (sock->send_n + 1) % 16; | 423 | sock->send_n = (sock->send_n + 1) % 16; |
424 | sock->recv_ack_n = (sock->recv_n - 1) % 16; | 424 | sock->recv_ack_n = (sock->recv_n - 1) % 16; |
425 | } | 425 | } |