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

Commit 0301ef04 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Marcel Holtmann
Browse files

Bluetooth: Remove set of SrejSaveReqSeq under receipt of REJ frame



That action is not specified by the ERTM spec, so removing it.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: default avatarJoão Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 59203a21
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3670,12 +3670,10 @@ static inline void l2cap_data_channel_rejframe(struct sock *sk, u16 rx_control)
		pi->next_tx_seq = pi->expected_ack_seq;
		l2cap_ertm_send(sk);

		if (pi->conn_state & L2CAP_CONN_WAIT_F) {
			pi->srej_save_reqseq = tx_seq;
		if (pi->conn_state & L2CAP_CONN_WAIT_F)
			pi->conn_state |= L2CAP_CONN_REJ_ACT;
	}
}
}
static inline void l2cap_data_channel_srejframe(struct sock *sk, u16 rx_control)
{
	struct l2cap_pinfo *pi = l2cap_pi(sk);