'is_scanning' status of LE scanner should be set only
when LE Scan is successfully triggered.In case, adapter proxy
fetch is failed or LE Scan is not triggered successfully,
scanning status of particular scanner should remain FALSE,
which can save unneccessary processing in _bt_stop_le_scan method.
Change-Id: I34ce0f3a3eaca50cd3233468dde705d32d6f074e
Signed-off-by: Anupam <anupam.r@samsung.com>
BT_ERR("BT is already in LE scanning");
return BLUETOOTH_ERROR_IN_PROGRESS;
}
- scanner->is_scanning = TRUE;
proxy = _bt_get_adapter_proxy();
retv_if(proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
} else {
BT_INFO("LE Full Scan is already on progress");
}
+
+ scanner->is_scanning = TRUE;
return BLUETOOTH_ERROR_NONE;
} else {
if (is_le_set_scan_parameter == FALSE) {
if (ret)
g_variant_unref(ret);
+
+ scanner->is_scanning = TRUE;
return BLUETOOTH_ERROR_NONE;
}