OSDN Git Service

Fix packet fragmenter so it doesn't request acl sizes unless it's actually an ACL...
authorZach Johnson <zachoverflow@google.com>
Wed, 17 Sep 2014 22:20:04 +0000 (15:20 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:33 +0000 (16:51 -0700)
commit43b9ddb63f2efac8b3113df975e479663301a5b7
treed92decb1034b820af12ef6e1e6ac8f34213a1a5b
parent823ca2017cda94b7d35746c664150d5fdd26d20c
Fix packet fragmenter so it doesn't request acl sizes unless it's actually an ACL packet

During the startup process, commands are sent before the ACL sizes are fetched.
With the change that we now assert the acl sizes are fetched when you request
them from the controller, the assertion was being triggered during that phase.

When I was rebasing the waiting changes and also making the assertion change,
I should have been more careful to test this. mea culpa

Also simplifies that code path just a bit.
hci/src/packet_fragmenter.c