提交 43bb5605 编写于 作者: J Johan Hedberg 提交者: Marcel Holtmann

Bluetooth: Add error mapping for Directed Advertising Timeout

When a timeout occurs using directed advertising a 0x3c error gets
generated. Since the operation is analogous to conventional connection
creation map this to the usual EHOSTDOWN error.
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 80c24ab8
...@@ -58,6 +58,7 @@ int bt_to_errno(__u16 code) ...@@ -58,6 +58,7 @@ int bt_to_errno(__u16 code)
return EIO; return EIO;
case 0x04: case 0x04:
case 0x3c:
return EHOSTDOWN; return EHOSTDOWN;
case 0x05: case 0x05:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册