mgmt: Add NAME_REQUEST_FAILED flag for device_found event
authorArchie Pusaka <apusaka@chromium.org>
Thu, 25 Nov 2021 07:06:23 +0000 (15:06 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
Report failure when resolving remote name to userspace. This is useful
so the userspace can make an informed decision when to retry name
resolving procedure.

Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h

index e3660a4..fcef9e1 100644 (file)
@@ -864,9 +864,10 @@ struct mgmt_ev_auth_failed {
        uint8_t status;
 } __packed;
 
-#define MGMT_DEV_FOUND_CONFIRM_NAME    0x01
-#define MGMT_DEV_FOUND_LEGACY_PAIRING  0x02
-#define MGMT_DEV_FOUND_NOT_CONNECTABLE 0x04
+#define MGMT_DEV_FOUND_CONFIRM_NAME            0x01
+#define MGMT_DEV_FOUND_LEGACY_PAIRING          0x02
+#define MGMT_DEV_FOUND_NOT_CONNECTABLE         0x04
+#define MGMT_DEV_FOUND_NAME_REQUEST_FAILED     0x10
 
 #define MGMT_EV_DEVICE_FOUND           0x0012
 struct mgmt_ev_device_found {