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

Commit e6949280 authored by Mat Martineau's avatar Mat Martineau Committed by Gustavo Padovan
Browse files

Bluetooth: Fix check for the ERTM local busy state



Local busy is encoded in a bitfield, but was not masked out correctly.

Signed-off-by: default avatarMat Martineau <mathewm@codeaurora.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent d8d69c54
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3540,7 +3540,7 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u16 rx_cont
		goto drop;
		goto drop;
	}
	}


	if (chan->conn_state == L2CAP_CONN_LOCAL_BUSY)
	if (chan->conn_state & L2CAP_CONN_LOCAL_BUSY)
		goto drop;
		goto drop;


	if (chan->conn_state & L2CAP_CONN_SREJ_SENT) {
	if (chan->conn_state & L2CAP_CONN_SREJ_SENT) {