From: Johan Hedberg Date: Mon, 24 Mar 2014 18:21:52 +0000 (+0200) Subject: Bluetooth: Add error mapping for Directed Advertising Timeout X-Git-Tag: v3.16~18^2~11^2~7^2~45^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43bb560583c9fb21bcec0cc68426a16bca8eb87a;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index b3fbc73..941ad75 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c @@ -58,6 +58,7 @@ int bt_to_errno(__u16 code) return EIO; case 0x04: + case 0x3c: return EHOSTDOWN; case 0x05: