diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-11-28 10:59:42 -0500 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-12-03 12:59:59 -0500 |
commit | ced5c338d7b696021058c23fb6a286def2171df5 (patch) | |
tree | b813b839a11627147237b6aa44149f4bc57544a7 | |
parent | 5e4e3972b8da23e270fa37670caec4d32f2197f7 (diff) |
Bluetooth: AMP: Mark controller radio powered down after HCIDEVDOWN
After getting HCIDEVDOWN controller did not mark itself as 0x00 which
means: "The Controller radio is available but is currently physically
powered down". The result was even if the hdev was down we return
in controller list value 0x01 "status 0x01 (Bluetooth only)".
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
-rw-r--r-- | net/bluetooth/hci_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 69eb644f0d48..ec7d3a7adf74 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -861,6 +861,9 @@ static int hci_dev_do_close(struct hci_dev *hdev) | |||
861 | /* Clear flags */ | 861 | /* Clear flags */ |
862 | hdev->flags = 0; | 862 | hdev->flags = 0; |
863 | 863 | ||
864 | /* Controller radio is available but is currently powered down */ | ||
865 | hdev->amp_status = 0; | ||
866 | |||
864 | memset(hdev->eir, 0, sizeof(hdev->eir)); | 867 | memset(hdev->eir, 0, sizeof(hdev->eir)); |
865 | memset(hdev->dev_class, 0, sizeof(hdev->dev_class)); | 868 | memset(hdev->dev_class, 0, sizeof(hdev->dev_class)); |
866 | 869 | ||