Bluetooth: check L2CAP info_rsp ident and state
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>
Fri, 25 Mar 2011 09:31:41 +0000 (11:31 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 31 Mar 2011 17:22:58 +0000 (14:22 -0300)
commite90165be9a4d6a1e8fa632fcae00a5294abd3981
tree4bd658a68194912fa82b2c7241ef065a1d4940b4
parentd1010240fa9aac93da56a683c1295e759ee69d10
Bluetooth: check L2CAP info_rsp ident and state

Information requests/responses are unbound to L2CAP channel. Patch
fixes issue arising when two devices connects at the same time to
each other. This way we do not process out of the context messages.
We are safe dropping info_rsp since info_timer is left running.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c