|
@@ -3753,7 +3753,8 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
|
|
|
goto done;
|
|
|
}
|
|
|
|
|
|
- if (test_bit(HCI_USER_CHANNEL, &hdev->dev_flags)) {
|
|
|
+ if (test_bit(HCI_SETUP, &hdev->dev_flags) ||
|
|
|
+ test_bit(HCI_USER_CHANNEL, &hdev->dev_flags)) {
|
|
|
err = cmd_status(sk, index, opcode,
|
|
|
MGMT_STATUS_INVALID_INDEX);
|
|
|
goto done;
|