net: l2: bluetooth: Fix build break in ipsp_disconnected

In commit bf4fb51f44, "net: if: Add NET_IF_UP flag"
a reference to ctxt->iface was added in the ipsp_disconnected function.

Let's add the ctxt variable definition to fix the build break.

Change-Id: Ib06047e333504f3db4fe175fb3ef1dce347e1916
Signed-off-by: Michael Scott <michael.scott@linaro.org>
This commit is contained in:
Michael Scott 2017-01-06 12:56:57 -08:00 committed by Anas Nashif
commit 249cfb682f

View file

@ -156,6 +156,8 @@ static void ipsp_connected(struct bt_l2cap_chan *chan)
static void ipsp_disconnected(struct bt_l2cap_chan *chan) static void ipsp_disconnected(struct bt_l2cap_chan *chan)
{ {
struct bt_context *ctxt = CHAN_CTXT(chan);
NET_DBG("Channel %p disconnected", chan); NET_DBG("Channel %p disconnected", chan);
/* Set iface down */ /* Set iface down */