Bluetooth: Fix EIR data clearing when powering off
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 16:11:53 +0000 (18:11 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:06:59 +0000 (13:06 +0200)
commite59fda8dc14c173b74b5e9d5c8d72849d2ff6b5f
treefea7601af5badce381b0de38240e85868e766def
parent06199cf86a84206cfdc96b8dc02d5c27efa8c60f
Bluetooth: Fix EIR data clearing when powering off

When powering off we should assume that the EIR data isn't valid
anymore. This patch makes sure it gets cleared in hci_dev_do_close and
thereby ensures that a correct new EIR is recreated when powering on
again.

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