Bluetooth: Keep msec in DISCOV_LE_TIMEOUT
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Thu, 27 Mar 2014 19:55:21 +0000 (20:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Mar 2014 07:09:30 +0000 (00:09 -0700)
To be consistent, lets use msec for this timeout as well.

Note: This define value is a minimum scan time taken from BT Core spec 4.0,
Vol 3, Part C, chapter 9.2.6

Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/mgmt.c

index e0c26bc144e561188ab46fca52df42e77c608807..d73f41855ada2cbb7ce9dfc61c72cd9b592083ca 100644 (file)
@@ -1210,7 +1210,7 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event);
  */
 #define DISCOV_LE_SCAN_WIN             0x12
 #define DISCOV_LE_SCAN_INT             0x12
-#define DISCOV_LE_TIMEOUT              msecs_to_jiffies(10240)
+#define DISCOV_LE_TIMEOUT              10240   /* msec */
 #define DISCOV_INTERLEAVED_TIMEOUT     5120    /* msec */
 #define DISCOV_INTERLEAVED_INQUIRY_LEN 0x04
 #define DISCOV_BREDR_INQUIRY_LEN       0x08
index b34e13aed51c5ab5f136e36b1ac65d90d5d858f3..11cb00a2befbe98056a7a5ad28d59b2d87a10223 100644 (file)
@@ -3368,7 +3368,7 @@ static void start_discovery_complete(struct hci_dev *hdev, u8 status)
 
        switch (hdev->discovery.type) {
        case DISCOV_TYPE_LE:
-               timeout = DISCOV_LE_TIMEOUT;
+               timeout = msecs_to_jiffies(DISCOV_LE_TIMEOUT);
                break;
 
        case DISCOV_TYPE_INTERLEAVED: