Bluetooth: Set local_amp_id after getting Phylink Completed evt
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 20 Nov 2012 15:16:20 +0000 (17:16 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 20 Nov 2012 17:54:44 +0000 (15:54 -0200)
local_amp_id is used in l2cap_physical_cfm and shall be set up
before calling it.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/amp.c

index 0258b2645edbfc2f97d93642c09b8e5c20f18f59..1b0d92c0643a97595ea2ad44e69f2cf45b96a852 100644 (file)
@@ -390,6 +390,7 @@ void amp_physical_cfm(struct hci_conn *bredr_hcon, struct hci_conn *hs_hcon)
 
        set_bit(FLAG_EFS_ENABLE, &bredr_chan->flags);
        bredr_chan->remote_amp_id = hs_hcon->remote_id;
+       bredr_chan->local_amp_id = hs_hcon->hdev->id;
        bredr_chan->hs_hcon = hs_hcon;
        bredr_chan->conn->mtu = hs_hcon->hdev->block_mtu;
 
This page took 0.025204 seconds and 5 git commands to generate.