diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-01 20:07:07 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-01 20:19:24 -0500 |
commit | d4f68526e438dbb7d194b08499a96c733131ad72 (patch) | |
tree | 47446595ec96d34c5905e99a951b98792beb9071 /net/bluetooth | |
parent | 9f8ce967caed427f78d00bb6b07d79cb040a88bd (diff) |
Bluetooth: mgmt: Fix command status error code values
Error codes in the command status should always be from the set of
values defined for mgmt and never e.g. POSIX error codes.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 40b3da3d5e62..bd01e4a4784e 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2745,7 +2745,7 @@ int mgmt_index_added(struct hci_dev *hdev) | |||
2745 | 2745 | ||
2746 | int mgmt_index_removed(struct hci_dev *hdev) | 2746 | int mgmt_index_removed(struct hci_dev *hdev) |
2747 | { | 2747 | { |
2748 | u8 status = ENODEV; | 2748 | u8 status = MGMT_STATUS_INVALID_PARAMS; |
2749 | 2749 | ||
2750 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); | 2750 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); |
2751 | 2751 | ||
@@ -2798,7 +2798,7 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered) | |||
2798 | update_class(hdev); | 2798 | update_class(hdev); |
2799 | update_eir(hdev); | 2799 | update_eir(hdev); |
2800 | } else { | 2800 | } else { |
2801 | u8 status = ENETDOWN; | 2801 | u8 status = MGMT_STATUS_NOT_POWERED; |
2802 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); | 2802 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); |
2803 | } | 2803 | } |
2804 | 2804 | ||