diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-02 17:37:27 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 17:42:57 +0200 |
commit | a3451d279f839d987cbcf25b0f3be666aef99d0b (patch) | |
tree | 3f7573f26dfca7dfb28945e5b41388ee1dcbc1e2 /net/bluetooth/mgmt.c | |
parent | 55af49a8fe85278ea244e72d2d264cf5e0941c61 (diff) | |
download | lwn-a3451d279f839d987cbcf25b0f3be666aef99d0b.tar.gz lwn-a3451d279f839d987cbcf25b0f3be666aef99d0b.zip |
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.c | 2 |
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, if (cp->action) auto_conn = HCI_AUTO_CONN_ALWAYS; else - auto_conn = HCI_AUTO_CONN_DISABLED; + auto_conn = HCI_AUTO_CONN_REPORT; /* If the connection parameters don't exist for this device, * they will be created and configured with defaults. |