From e6c2d1c3fc81864e38316ed24ade5994b78cc751 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Fri, 29 Apr 2011 21:27:32 -0300 Subject: [PATCH] Remove 'periodic' param from hciops_start_inquiry() The 'periodic' parameter from hciops_start_inquiry() is useless. This patch removes it. --- plugins/hciops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/hciops.c b/plugins/hciops.c index db3ca841c..2c49e35fe 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -3073,13 +3073,13 @@ static int hciops_set_dev_class(int index, uint8_t major, uint8_t minor) return err; } -static int hciops_start_inquiry(int index, uint8_t length, gboolean periodic) +static int hciops_start_inquiry(int index, uint8_t length) { struct dev_info *dev = &devs[index]; uint8_t lap[3] = { 0x33, 0x8b, 0x9e }; inquiry_cp inq_cp; - DBG("hci%d length %u periodic %d", index, length, periodic); + DBG("hci%d length %u", index, length); memset(&inq_cp, 0, sizeof(inq_cp)); memcpy(&inq_cp.lap, lap, 3); @@ -3235,9 +3235,9 @@ static int hciops_start_discovery(int index) switch (adapter_type) { case BR_EDR_LE: - return hciops_start_inquiry(index, LENGTH_BR_LE_INQ, FALSE); + return hciops_start_inquiry(index, LENGTH_BR_LE_INQ); case BR_EDR: - return hciops_start_inquiry(index, LENGTH_BR_INQ, FALSE); + return hciops_start_inquiry(index, LENGTH_BR_INQ); case LE_ONLY: return hciops_start_scanning(index, TIMEOUT_LE_SCAN); default: -- 2.47.3