summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-07-02 10:37:27 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 11:42:57 -0400
commita3451d279f839d987cbcf25b0f3be666aef99d0b (patch)
tree3f7573f26dfca7dfb28945e5b41388ee1dcbc1e2 /net/bluetooth/mgmt.c
parent55af49a8fe85278ea244e72d2d264cf5e0941c61 (diff)
Bluetooth: Add new auto_conn value matching mgmt action 0x00
The 0x00 action value of mgmt means "scan and report" but do not connect. This is different from HCI_AUTO_CONN_DISABLED so we need a new value for it. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 29850e76ea3c..f7217f9eda03 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -5034,7 +5034,7 @@ static int add_device(struct sock *sk, struct hci_dev *hdev,
5034 if (cp->action) 5034 if (cp->action)
5035 auto_conn = HCI_AUTO_CONN_ALWAYS; 5035 auto_conn = HCI_AUTO_CONN_ALWAYS;
5036 else 5036 else
5037 auto_conn = HCI_AUTO_CONN_DISABLED; 5037 auto_conn = HCI_AUTO_CONN_REPORT;
5038 5038
5039 /* If the connection parameters don't exist for this device, 5039 /* If the connection parameters don't exist for this device,
5040 * they will be created and configured with defaults. 5040 * they will be created and configured with defaults.