Hi Johan,
This patch updates mgmt_ev_device_connected and mgmt_ev_device found to
include an EIR-encoded remote name and class whenever possible. With
this addition the mgmt_ev_remote_name event becomes unnecessary and can
be removed. Since the connected event doesn't map to hci_conn_complete
anymore a HCI_CONN_MGMT_CONNECTED flag is added to track when mgmt has
been notified about a connection.
Signed-off-by: Johan Hedberg <redacted>
---
include/net/bluetooth/hci_core.h | 7 ++-
include/net/bluetooth/mgmt.h | 17 ++++----
net/bluetooth/hci_event.c | 78 +++++++++++++++++++++++++++-----------
net/bluetooth/mgmt.c | 56 ++++++++++++++++++++-------
4 files changed, 110 insertions(+), 48 deletions(-)
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Regards
Marcel