From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [RFC 2/4] Bluetooth: Set local_amp_id after getting Phylink Completed evt Date: Tue, 20 Nov 2012 17:16:20 +0200 Message-Id: <1353424582-26042-3-git-send-email-Andrei.Emeltchenko.news@gmail.com> In-Reply-To: <1353424582-26042-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <20121119212812.GB14006@joana> <1353424582-26042-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko local_amp_id is used in l2cap_physical_cfm and shall be set up before calling it. Signed-off-by: Andrei Emeltchenko --- net/bluetooth/amp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bluetooth/amp.c b/net/bluetooth/amp.c index 0258b26..1b0d92c 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; -- 1.7.10.4