提交 2b293490 编写于 作者: J Johan Hedberg 提交者: Marcel Holtmann

Bluetooth: Fix confusion between parent and child channel for 6lowpan

The new_connection L2CAP channel callback creates a new channel based on
the provided parent channel. The 6lowpan code was confusingly naming the
child channel "pchan" and the parent channel "chan". This patch swaps
the names.
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 5fcb9347
...@@ -772,16 +772,16 @@ static inline void chan_ready_cb(struct l2cap_chan *chan) ...@@ -772,16 +772,16 @@ static inline void chan_ready_cb(struct l2cap_chan *chan)
ifup(dev->netdev); ifup(dev->netdev);
} }
static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *chan) static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *pchan)
{ {
struct l2cap_chan *pchan; struct l2cap_chan *chan;
pchan = chan_open(chan); chan = chan_open(pchan);
pchan->ops = chan->ops; chan->ops = pchan->ops;
BT_DBG("chan %p pchan %p", chan, pchan); BT_DBG("chan %p pchan %p", chan, pchan);
return pchan; return chan;
} }
static void delete_netdev(struct work_struct *work) static void delete_netdev(struct work_struct *work)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册