Skip to content

Commit

Permalink
Bluetooth: Add error mapping for Directed Advertising Timeout
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg authored and Marcel Holtmann committed Mar 26, 2014
1 parent 80c24ab commit 43bb560
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bluetooth/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ int bt_to_errno(__u16 code)
return EIO;

case 0x04:
case 0x3c:
return EHOSTDOWN;

case 0x05:
Expand Down

0 comments on commit 43bb560

Please sign in to comment.