mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
Bluetooth: Add mgmt_remote_name event
This patch adds a new remote_name event to the Management interface which is sent every time the name of a remote device is resolved (over BR/EDR). Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
e17acd40f6
commit
a88a9652d2
4 changed files with 22 additions and 0 deletions
|
@ -1497,6 +1497,9 @@ static inline void hci_remote_name_evt(struct hci_dev *hdev, struct sk_buff *skb
|
|||
|
||||
hci_dev_lock(hdev);
|
||||
|
||||
if (ev->status == 0 && test_bit(HCI_MGMT, &hdev->flags))
|
||||
mgmt_remote_name(hdev->id, &ev->bdaddr, ev->name);
|
||||
|
||||
conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr);
|
||||
if (conn && hci_outgoing_auth_needed(hdev, conn)) {
|
||||
struct hci_cp_auth_requested cp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue