diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index b74a157bde09b1a38fcf591107512315a87512bb..51d0446bc4ed8bf06a8a99d924d13ebf70a66e77 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1483,8 +1483,8 @@ static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data, if (err < 0) { mgmt_pending_remove(cmd); if (err == -ENODATA) - err = send_settings_rsp(sk, MGMT_OP_SET_CONNECTABLE, - hdev); + err = set_connectable_update_settings(hdev, sk, + cp->val); goto failed; }