]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Change LE scanning timeout macros
authorAndre Guedes <andre.guedes@openbossa.org>
Thu, 4 Apr 2013 23:20:59 +0000 (20:20 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 18 Apr 2013 04:15:05 +0000 (01:15 -0300)
Define LE scanning timeout macros in jiffies just like we do for
others timeout macros.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c

index e246d3782ac2d2d1b793032889b9297624c3a118..00dcb74954d3a7bee23a6428a9e92dc9e236db49 100644 (file)
@@ -2024,7 +2024,7 @@ static int hci_do_le_scan(struct hci_dev *hdev, u8 type, u16 interval,
                return err;
 
        queue_delayed_work(hdev->workqueue, &hdev->le_scan_disable,
-                          msecs_to_jiffies(timeout));
+                          timeout);
 
        return 0;
 }
index 34ba1647e6e8ac13fd413b1fb246d665ea74ac54..cd2332f6cecb74c862c1c370a60bf5843a0f7345 100644 (file)
@@ -109,8 +109,8 @@ static const u16 mgmt_events[] = {
 #define LE_SCAN_TYPE                   0x01
 #define LE_SCAN_WIN                    0x12
 #define LE_SCAN_INT                    0x12
-#define LE_SCAN_TIMEOUT_LE_ONLY                10240   /* TGAP(gen_disc_scan_min) */
-#define LE_SCAN_TIMEOUT_BREDR_LE       5120    /* TGAP(100)/2 */
+#define LE_SCAN_TIMEOUT_LE_ONLY                msecs_to_jiffies(10240)
+#define LE_SCAN_TIMEOUT_BREDR_LE       msecs_to_jiffies(5120)
 
 #define INQUIRY_LEN_BREDR              0x08    /* TGAP(100) */
 #define INQUIRY_LEN_BREDR_LE           0x04    /* TGAP(100)/2 */