|
@@ -770,7 +770,7 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
|
|
|
|
|
|
BT_DBG("conn %p hcon %p level 0x%2.2x", conn, hcon, sec_level);
|
|
|
|
|
|
- if (!lmp_host_le_capable(hcon->hdev))
|
|
|
+ if (!test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags))
|
|
|
return 1;
|
|
|
|
|
|
if (sec_level == BT_SECURITY_LOW)
|
|
@@ -851,7 +851,7 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)
|
|
|
__u8 reason;
|
|
|
int err = 0;
|
|
|
|
|
|
- if (!lmp_host_le_capable(conn->hcon->hdev)) {
|
|
|
+ if (!test_bit(HCI_LE_ENABLED, &conn->hcon->hdev->dev_flags)) {
|
|
|
err = -ENOTSUPP;
|
|
|
reason = SMP_PAIRING_NOTSUPP;
|
|
|
goto done;
|