mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 17:40:54 +07:00
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: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
d8d69c54fb
commit
e694928067
@ -3540,7 +3540,7 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u16 rx_cont
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (chan->conn_state == L2CAP_CONN_LOCAL_BUSY)
|
||||
if (chan->conn_state & L2CAP_CONN_LOCAL_BUSY)
|
||||
goto drop;
|
||||
|
||||
if (chan->conn_state & L2CAP_CONN_SREJ_SENT) {
|
||||
|
Loading…
Reference in New Issue
Block a user