diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2004-11-09 00:05:01 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2004-11-09 00:05:01 +0000 | 
| commit | c3b2524a78dc4d27025f6cd3c8f4c56f5de012ee (patch) | |
| tree | e7809158fbee08f643a773aaf664f45b172be338 /src/bluetooth.c | |
| parent | 34fb9e62566cddafd8d4fea40e368434859ae25a (diff) | |
Add the missing HCI error codes
Diffstat (limited to 'src/bluetooth.c')
| -rw-r--r-- | src/bluetooth.c | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/src/bluetooth.c b/src/bluetooth.c index 00639d2d..20a1aee6 100644 --- a/src/bluetooth.c +++ b/src/bluetooth.c @@ -133,19 +133,25 @@ int bt_error(uint16_t code)  	case HCI_ACL_CONNECTION_EXISTS:  		return EALREADY;  	case HCI_COMMAND_DISALLOWED: +	case HCI_TRANSACTION_COLLISION: +	case HCI_ROLE_SWITCH_PENDING:  		return EBUSY;  	case HCI_REJECTED_LIMITED_RESOURCES: -	case HCI_REJECTED_SECURITY:  	case HCI_REJECTED_PERSONAL: +	case HCI_QOS_REJECTED:  		return ECONNREFUSED;  	case HCI_HOST_TIMEOUT:  		return ETIMEDOUT;  	case HCI_UNSUPPORTED_FEATURE:  	case HCI_QOS_NOT_SUPPORTED:  	case HCI_PAIRING_NOT_SUPPORTED: +	case HCI_CLASSIFICATION_NOT_SUPPORTED:  	case HCI_UNSUPPORTED_LMP_PARAMETER_VALUE: +	case HCI_PARAMETER_OUT_OF_RANGE: +	case HCI_QOS_UNACCEPTABLE_PARAMETER:  		return EOPNOTSUPP;  	case HCI_INVALID_PARAMETERS: +	case HCI_SLOT_VIOLATION:  		return EINVAL;  	case HCI_OE_USER_ENDED_CONNECTION:  	case HCI_OE_LOW_RESOURCES: @@ -155,7 +161,9 @@ int bt_error(uint16_t code)  		return ECONNABORTED;  	case HCI_REPEATED_ATTEMPTS:  		return ELOOP; +	case HCI_REJECTED_SECURITY:  	case HCI_PAIRING_NOT_ALLOWED: +	case HCI_INSUFFICIENT_SECURITY:  		return EACCES;  	case HCI_UNSUPPORTED_REMOTE_FEATURE:  		return EPROTONOSUPPORT; | 
