Skip to content

Commit 0767a7f

Browse files
Samuel Ortizlinvjw
authored andcommitted
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>
1 parent b9a76f1 commit 0767a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/nfc/llcp/llcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static u8 nfc_llcp_nr(struct sk_buff *pdu)
419419

420420
static void nfc_llcp_set_nrns(struct nfc_llcp_sock *sock, struct sk_buff *pdu)
421421
{
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);
423423
sock->send_n = (sock->send_n + 1) % 16;
424424
sock->recv_ack_n = (sock->recv_n - 1) % 16;
425425
}

0 commit comments

Comments
 (0)