]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix read_name updating when HCI_SETUP is not set
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 18:14:22 +0000 (20:14 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000 (13:07 +0200)
commit52170ae6b6cf7cd4008bea769d84f0af428d47e7
tree9230d4104b45ab1717bb63d46d1cd56438eac4e1
parent7d47b5ecc68d0efe7a6bf925e7bb202dea94ae37
Bluetooth: Fix read_name updating when HCI_SETUP is not set

The local name should only be updated as a consequence of a
hci_read_local_name if we are in the HCI_SETUP state. In all other
scenarios it should only be updated through hci_write_local_name.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c