From: Andrei Emeltchenko Date: Tue, 20 Nov 2012 15:16:20 +0000 (+0200) Subject: Bluetooth: Set local_amp_id after getting Phylink Completed evt X-Git-Tag: next-20121205~78^2~57^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37295996ce181a2a4e74308070abf06bd822f7a1;p=karo-tx-linux.git Bluetooth: Set local_amp_id after getting Phylink Completed evt local_amp_id is used in l2cap_physical_cfm and shall be set up before calling it. Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/amp.c b/net/bluetooth/amp.c index 0258b2645edb..1b0d92c0643a 100644 --- a/net/bluetooth/amp.c +++ b/net/bluetooth/amp.c @@ -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;