Bluetooth: Add EIR flags to LE Adv data cache

Use the EIR flags to prevent LE pairing attempts to
BR/EDR capable (Dual Mode) devices.

Signed-off-by: Brian Gix <bgix@codeaurora.org>
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 424f2df..848a515 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1436,6 +1436,7 @@
 	struct pending_cmd *cmd;
 	u8 sec_level, auth_type, io_cap;
 	struct hci_conn *conn;
+	struct adv_entry *entry;
 	int err;
 
 	BT_DBG("");
@@ -1462,7 +1463,8 @@
 		auth_type = HCI_AT_DEDICATED_BONDING_MITM;
 	}
 
-	if (hci_find_adv_entry(hdev, &cp->bdaddr)) {
+	entry = hci_find_adv_entry(hdev, &cp->bdaddr);
+	if (entry && entry->flags & 0x04) {
 		conn = hci_connect(hdev, LE_LINK, 0, &cp->bdaddr, sec_level,
 								auth_type);
 	} else {