Эх сурвалжийг харах

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>
Johan Hedberg 11 жил өмнө
parent
commit
43bb560583

+ 1 - 0
net/bluetooth/lib.c

@@ -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: