diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-24 14:21:52 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-03-26 12:31:36 -0400 |
commit | 43bb560583c9fb21bcec0cc68426a16bca8eb87a (patch) | |
tree | 8ed23c1ea5da6a3c1e1ddc9a3f7a70b016b643f8 /net/bluetooth/lib.c | |
parent | 80c24ab85fc27a9683d732016bfa69033a292cf4 (diff) |
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: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/lib.c')
-rw-r--r-- | net/bluetooth/lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index b3fbc73516c4..941ad7530eda 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c | |||
@@ -58,6 +58,7 @@ int bt_to_errno(__u16 code) | |||
58 | return EIO; | 58 | return EIO; |
59 | 59 | ||
60 | case 0x04: | 60 | case 0x04: |
61 | case 0x3c: | ||
61 | return EHOSTDOWN; | 62 | return EHOSTDOWN; |
62 | 63 | ||
63 | case 0x05: | 64 | case 0x05: |