From: Gustavo F. Padovan Date: Wed, 5 May 2010 23:56:43 +0000 (-0300) Subject: Bluetooth: Remove set of SrejSaveReqSeq under receipt of REJ frame X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0301ef04b5f49a95681694fc0d75af9441faa919;p=linux-beck.git 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: Gustavo F. Padovan Reviewed-by: João Paulo Rechi Vita Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 2a981de071df..d0d03302e14d 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c @@ -3670,10 +3670,8 @@ 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)