diff options
-rw-r--r-- | net/bluetooth/mgmt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index fc171f222ba4..54f3ddba9139 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2987,7 +2987,13 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered) | |||
2987 | } | 2987 | } |
2988 | } else { | 2988 | } else { |
2989 | u8 status = MGMT_STATUS_NOT_POWERED; | 2989 | u8 status = MGMT_STATUS_NOT_POWERED; |
2990 | u8 zero_cod[] = { 0, 0, 0 }; | ||
2991 | |||
2990 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); | 2992 | mgmt_pending_foreach(0, hdev, cmd_status_rsp, &status); |
2993 | |||
2994 | if (memcmp(hdev->dev_class, zero_cod, sizeof(zero_cod)) != 0) | ||
2995 | mgmt_event(MGMT_EV_CLASS_OF_DEV_CHANGED, hdev, | ||
2996 | zero_cod, sizeof(zero_cod), NULL); | ||
2991 | } | 2997 | } |
2992 | 2998 | ||
2993 | err = new_settings(hdev, match.sk); | 2999 | err = new_settings(hdev, match.sk); |