diff options
author | Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no> | 2015-06-17 07:32:25 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-06-17 19:17:58 +0200 |
commit | fc84242f7a9731885ae70c0077816fa6fb19c4d5 (patch) | |
tree | 152a7d49e28d143e7d701d68ff5f6179ec49a887 /net/bluetooth/6lowpan.c | |
parent | f63666d20973b85073c4849c9d7471219adf6da9 (diff) | |
download | lwn-fc84242f7a9731885ae70c0077816fa6fb19c4d5.tar.gz lwn-fc84242f7a9731885ae70c0077816fa6fb19c4d5.zip |
Bluetooth: 6lowpan: Move netdev sysfs device reference
This patch moves the sysfs device used by the netdev from the device of
the first connected peer to the hci sysfs device. Using the sysfs device
of hci instead of the first connected device fixes this issue such that
the sysfs group of tx-0 and bt0 kobject are still present after the last
peer has been deleted and all sysfs entries can be removed.
Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no>
Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r-- | net/bluetooth/6lowpan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 7ee591aac2fc..bc105a91c84a 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -856,7 +856,7 @@ static int setup_netdev(struct l2cap_chan *chan, struct lowpan_dev **dev) set_dev_addr(netdev, &chan->src, chan->src_type); netdev->netdev_ops = &netdev_ops; - SET_NETDEV_DEV(netdev, &chan->conn->hcon->dev); + SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); SET_NETDEV_DEVTYPE(netdev, &bt_type); err = register_netdev(netdev); |