aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c4
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
2746int mgmt_index_removed(struct hci_dev *hdev) 2746int 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