OSDN Git Service

L2CAP: Dequeue next request if previous response is invalid
authorHansong Zhang <hsz@google.com>
Mon, 4 Nov 2019 18:12:02 +0000 (10:12 -0800)
committerHansong Zhang <hsz@google.com>
Mon, 4 Nov 2019 18:19:16 +0000 (18:19 +0000)
commit6f1ec72e7303147871b35d0bd35bdb6911210487
tree5c05a28129f552da464292053adaac3f1758e5d6
parent64c649904eb4bed317da38f0cfc1ae6d09f9a474
L2CAP: Dequeue next request if previous response is invalid

If we drop the invalid response packet without dequeuing next request,
the outgoing request queue will stuck. We should dequeue it as long as
the signalling id matches.

Also fix the scid/dcid mismatch in cert stack.

Test: cert/run_cert.sh. test_open_two_channels should be fixed.
Bug: 141557006
Change-Id: Id4dd9f279ece55aa5e78443c8027df91af1dd7c8
gd/l2cap/classic/cert/cert.cc
gd/l2cap/classic/internal/signalling_manager.cc