Bluetooth: mgmt: Fix name_changed event for short name changes
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 19:39:58 +0000 (21:39 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000 (13:07 +0200)
commit7bdaae4a4bc075cf73ab9c3a531b7229caa1f49e
tree0a27c9ffc511019b667be1679622975449c00167
parent28cc7bde5978cbc58c9026123fa5f33b62ad66b3
Bluetooth: mgmt: Fix name_changed event for short name changes

Since we can't reliably track the short name changes just assume that we
had a change whenever there's a pending mgmt command. In the worst case
we just get one unnecessary name_changed signal.

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