提交 b5694506 编写于 作者: G Gustavo F. Padovan

Bluetooth: Don't forget to check for LE_LINK

Otherwise the wrong error can be returned.
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 1a09bcb9
...@@ -4127,7 +4127,7 @@ static int l2cap_disconn_ind(struct hci_conn *hcon) ...@@ -4127,7 +4127,7 @@ static int l2cap_disconn_ind(struct hci_conn *hcon)
BT_DBG("hcon %p", hcon); BT_DBG("hcon %p", hcon);
if (hcon->type != ACL_LINK || !conn) if ((hcon->type != ACL_LINK && hcon->type != LE_LINK) || !conn)
return 0x13; return 0x13;
return conn->disc_reason; return conn->disc_reason;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册