diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-02-17 18:39:36 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-19 05:33:49 -0500 |
commit | 4aab14e5504e84c42534378f91e836e6f55d0886 (patch) | |
tree | 9378f2f0d3e345788e8853b3bb7ea2fa4d70558e /net/bluetooth/mgmt.c | |
parent | f39799f5047c4827b200acbf33cd0ba076afd7ed (diff) |
Bluetooth: Track discovery type
This patch adds to struct discovery_state the field 'type' so that
we can track the discovery type the device is performing.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 196215c9d424..9d98382e48c7 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2192,7 +2192,9 @@ static int start_discovery(struct sock *sk, u16 index, | |||
2192 | goto failed; | 2192 | goto failed; |
2193 | } | 2193 | } |
2194 | 2194 | ||
2195 | switch (cp->type) { | 2195 | hdev->discovery.type = cp->type; |
2196 | |||
2197 | switch (hdev->discovery.type) { | ||
2196 | case DISCOV_TYPE_BREDR: | 2198 | case DISCOV_TYPE_BREDR: |
2197 | case DISCOV_TYPE_INTERLEAVED: | 2199 | case DISCOV_TYPE_INTERLEAVED: |
2198 | err = hci_do_inquiry(hdev, INQUIRY_LEN_BREDR); | 2200 | err = hci_do_inquiry(hdev, INQUIRY_LEN_BREDR); |