Bluetooth: L2CAP: Fix setting chan src info before adding PSM/CID
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 26 Jan 2016 22:19:11 +0000 (17:19 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 29 Jan 2016 10:47:24 +0000 (11:47 +0100)
commita2342c5fe5f2810b8ef6a0826bd584aa709dd2c6
tree5f83f8fd0aca1810950959d31c1e37f96dce4f0c
parent92594a51120ebc6c2f556204fc73568c8f7cb0f4
Bluetooth: L2CAP: Fix setting chan src info before adding PSM/CID

At least the l2cap_add_psm() routine depends on the source address
type being properly set to know what auto-allocation ranges to use, so
the assignment to l2cap_chan needs to happen before this.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c