Bluetooth: mgmt: Fix updating EIR when updating the name
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 16:17:32 +0000 (18:17 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:06:59 +0000 (13:06 +0200)
commitf51d5b248981d05269e4f83ab8f8ed7ed494fe33
treefd7350c3921273e57073bb49bdadfd42f1e10060
parente59fda8dc14c173b74b5e9d5c8d72849d2ff6b5f
Bluetooth: mgmt: Fix updating EIR when updating the name

Whenever we update the local device name the EIR data also needs to be
updated to reflect this. The update_eir() function in mgmt.c depends on
hdev->dev_name to be up to date so the patch also makes sure that the
mgmt function is called from hci_event.c after the update has happened.

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