]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: 6lowpan: Move netdev sysfs device reference
authorGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Wed, 17 Jun 2015 14:32:25 +0000 (07:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 17:17:58 +0000 (19:17 +0200)
commit59d913bee15b21243e89f5d7a1230a2ad52a5e48
tree152a7d49e28d143e7d701d68ff5f6179ec49a887
parentf2fff08a7979004c01c370deb66dc133fbb4798b
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>
net/bluetooth/6lowpan.c