Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56af2568 authored by Samuel Ortiz's avatar Samuel Ortiz
Browse files

NFC: Send a receiver ready frame only to reply to an I frame



Sending an RR as a reply to another RR is fine but not quite logical.
We should send RRs only as a reply to I frames.

Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 84457960
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -810,7 +810,7 @@ static void nfc_llcp_recv_hdlc(struct nfc_llcp_local *local,
	else if (ptype == LLCP_PDU_RNR)
	else if (ptype == LLCP_PDU_RNR)
		llcp_sock->remote_ready = false;
		llcp_sock->remote_ready = false;


	if (nfc_llcp_queue_i_frames(llcp_sock) == 0)
	if (nfc_llcp_queue_i_frames(llcp_sock) == 0 && ptype == LLCP_PDU_I)
		nfc_llcp_send_rr(llcp_sock);
		nfc_llcp_send_rr(llcp_sock);


	release_sock(sk);
	release_sock(sk);