diff options
| author | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-07 03:03:32 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2014-08-14 02:49:11 -0400 |
| commit | 2b29349044cc2cf74d4c6e23e26cd27977d91353 (patch) | |
| tree | 53f509126bda4e65bd3dee3877c4ce7c94e2eaba /net/bluetooth/6lowpan.c | |
| parent | 5fcb93475697911eb239f68241903eb5540803ac (diff) | |
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: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
| -rw-r--r-- | net/bluetooth/6lowpan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 206b65ccd5b8..35ebe79c87b0 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
| @@ -772,16 +772,16 @@ static inline void chan_ready_cb(struct l2cap_chan *chan) | |||
| 772 | ifup(dev->netdev); | 772 | ifup(dev->netdev); |
| 773 | } | 773 | } |
| 774 | 774 | ||
| 775 | static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *chan) | 775 | static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *pchan) |
| 776 | { | 776 | { |
| 777 | struct l2cap_chan *pchan; | 777 | struct l2cap_chan *chan; |
| 778 | 778 | ||
| 779 | pchan = chan_open(chan); | 779 | chan = chan_open(pchan); |
| 780 | pchan->ops = chan->ops; | 780 | chan->ops = pchan->ops; |
| 781 | 781 | ||
| 782 | BT_DBG("chan %p pchan %p", chan, pchan); | 782 | BT_DBG("chan %p pchan %p", chan, pchan); |
| 783 | 783 | ||
| 784 | return pchan; | 784 | return chan; |
| 785 | } | 785 | } |
| 786 | 786 | ||
| 787 | static void delete_netdev(struct work_struct *work) | 787 | static void delete_netdev(struct work_struct *work) |
