Invalid param handling in bt_device_le_conn_update() 02/213602/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Mon, 9 Sep 2019 06:16:43 +0000 (15:16 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Mon, 9 Sep 2019 06:16:43 +0000 (15:16 +0900)
Change-Id: Ib42a2a4f8966df38fd225477663edd75e59db833
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
src/bluetooth-device.c

index 408b733..3de6a4c 100644 (file)
@@ -567,7 +567,10 @@ int bt_device_le_conn_update(const char *device_address,
        BT_CHECK_INPUT_PARAMETER(parameters);
 
        _bt_convert_address_to_hex(&addr_hex, device_address);
-       param.interval_min = parameters->interval_min;
+       if (parameters->interval_min < 7.5)
+               param.interval_min = 7.5;
+       else
+               param.interval_min = parameters->interval_min;
        param.interval_max = parameters->interval_max;
        param.latency = parameters->latency;
        param.timeout = parameters->time_out;