From: Gustavo Padovan Date: Tue, 11 Jun 2013 10:56:19 +0000 (+0100) Subject: adapter: fix setting of discoverable timeout X-Git-Tag: android-x86-4.4-r3~7984 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=71d733b479d0f11183463d60c6789af27c1cc210;p=android-x86%2Fexternal-bluetooth-bluez.git adapter: fix setting of discoverable timeout The mgmt_cp_set_discoverable struct was getting reset for no reason after we set up the discoverable timeout value. --- diff --git a/src/adapter.c b/src/adapter.c index 52d2fc7cc..02c4f3387 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -1907,9 +1907,6 @@ static void property_set_mode(struct btd_adapter *adapter, uint32_t setting, goto failed; } - memset(&cp, 0, sizeof(cp)); - cp.val = (enable == TRUE) ? 0x01 : 0x00; - DBG("sending %s command for index %u", mgmt_opstr(opcode), adapter->dev_id);