|
@@ -2109,7 +2109,7 @@ static inline void hci_remote_features_evt(struct hci_dev *hdev, struct sk_buff
|
|
|
goto unlock;
|
|
|
}
|
|
|
|
|
|
- if (!ev->status) {
|
|
|
+ if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) {
|
|
|
struct hci_cp_remote_name_req cp;
|
|
|
memset(&cp, 0, sizeof(cp));
|
|
|
bacpy(&cp.bdaddr, &conn->dst);
|
|
@@ -2878,7 +2878,7 @@ static inline void hci_remote_ext_features_evt(struct hci_dev *hdev, struct sk_b
|
|
|
if (conn->state != BT_CONFIG)
|
|
|
goto unlock;
|
|
|
|
|
|
- if (!ev->status) {
|
|
|
+ if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) {
|
|
|
struct hci_cp_remote_name_req cp;
|
|
|
memset(&cp, 0, sizeof(cp));
|
|
|
bacpy(&cp.bdaddr, &conn->dst);
|