|
@@ -1234,10 +1234,12 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status)
|
|
|
} else {
|
|
|
if (!conn) {
|
|
|
conn = hci_conn_add(hdev, LE_LINK, &cp->peer_addr);
|
|
|
- if (conn)
|
|
|
+ if (conn) {
|
|
|
+ conn->dst_type = cp->peer_addr_type;
|
|
|
conn->out = 1;
|
|
|
- else
|
|
|
+ } else {
|
|
|
BT_ERR("No memory for new connection");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2694,6 +2696,8 @@ static inline void hci_le_conn_complete_evt(struct hci_dev *hdev, struct sk_buff
|
|
|
hci_dev_unlock(hdev);
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ conn->dst_type = ev->bdaddr_type;
|
|
|
}
|
|
|
|
|
|
if (ev->status) {
|