summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRam Malovany <ramm@ti.com>2012-07-19 10:26:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-14 09:59:26 -0700
commitc9e7000a6cd8fad9a5803c1bbceeb3a0203d7b8f (patch)
tree5fa16a9f9dd4ab06f4062c2490225127d9f1c839
parent3081d97a11571d26b6f68c85d1d1d84eefd9b088 (diff)
Bluetooth: Set name_state to unknown when entry name is empty
commit c3e7c0d90b14a3e7ac091d24cef09efb516d587b upstream. When the name of the given entry is empty , the state needs to be updated accordingly. Signed-off-by: Ram Malovany <ramm@ti.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index d8215f3ed91e..a69f958b5944 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1418,6 +1418,8 @@ static void hci_check_pending_name(struct hci_dev *hdev, struct hci_conn *conn,
e->name_state = NAME_KNOWN;
mgmt_remote_name(hdev, bdaddr, ACL_LINK, 0x00,
e->data.rssi, name, name_len);
+ } else {
+ e->name_state = NAME_NOT_KNOWN;
}
if (hci_resolve_next_name(hdev))