Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp633530ybm; Fri, 29 May 2020 08:30:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKUKjem+fsq19YkfkQqeweIwqRIAIKn/7AEY523MYfG4GEwJXhKTwCrJWDaqxubrTAddl3 X-Received: by 2002:a17:906:f0e:: with SMTP id z14mr7957778eji.375.1590766224197; Fri, 29 May 2020 08:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590766224; cv=none; d=google.com; s=arc-20160816; b=zZWd7YAD3p9zbqyeNpBTHdFxup+eTo5c2+xT0IqqGDi2Ad4Fe20qWrPFjUcLNCl9Eo ofBZlqo6h6MdRHUjUWOlOaXzEgbjgLYkZp/mkXkMg8GDKqZPeXWkL3jBA6f1Ijqxt4Qt PyGa0PtIRZxKNScC70opXNnQj7iDU32HlnMw5qpIhjjwioZJl1nl37kDds5hQAn/u8d8 E+NRcEaQ9mc0OrMPw0PnkGZjQkbCUflpLunmdGvJfZhCYGCQXaN4r8zP+03kc8hd15nC 0ZcsFgt5WXLtoxi8STeR8e1EaWSnkPBDshUxZEp0cOEeVcdrZIG0YP/NfSOsn8Xl/V1n 8DVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/0IsKODMXSzvMGSAh9Gryo1QBRpF6G8Og9IEBshvpoU=; b=q8e+anNckBf4hyDreUDKoVORcp4MrizZXVgiBonKuqCVoP9UMch1ttO0QWSlBNhymP h/G6RpSHaFO92LBzmR66S++5tX63D3fBqvfenPe5pM+ZI0FD5LQYwfoF5eJWB5nkg2Jg WvmXPz/yTQTMpfoWO2H3oQQTGCg7XSBYVq0ebGTAd9LTviMvwDnSIbYJPPxdDgC5vdjO 6WsZDB9CwMJfbSuRqw7uPpwf0JJJwJ5UFtkbUI/BpGRZKJYsC9tYRX+GhSOXiuwLRQCN //8Z0UJwJDoAPuJdhNSuGyCWr2mZLcadn6qoCgS576FJGh26dJD44GkuW41T5LQEaAiG HI7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJWUmm73; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si5733802eji.455.2020.05.29.08.29.51; Fri, 29 May 2020 08:30:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJWUmm73; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727025AbgE2P3q (ORCPT + 99 others); Fri, 29 May 2020 11:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgE2P3q (ORCPT ); Fri, 29 May 2020 11:29:46 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C5CC03E969 for ; Fri, 29 May 2020 08:29:46 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id k3so926366ual.8 for ; Fri, 29 May 2020 08:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/0IsKODMXSzvMGSAh9Gryo1QBRpF6G8Og9IEBshvpoU=; b=VJWUmm73h98XahwgCptjJ+Q6ul+pffi67zEywNEE25FSK2SV3biFGcW9nd0nfN8hrW yooo2pvR6+zn584bFACHBN4bI03xvuCZJnRz+3RQ/NrLL6rw/LCsIroAuvzIKgLMPUj8 UX2jhOh9n2pvrzPTj+sjuDXjO4tYtfXCPfcBQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/0IsKODMXSzvMGSAh9Gryo1QBRpF6G8Og9IEBshvpoU=; b=Wg0ooZ8Pg3Nhqc3X3Ckrc9QszZSNRZ8THv8iNKYrU8TR5eRPxO0izHoj0alnKH4zNc gKJ+IxDrxHH8QJmUIioCWz48/pkEG/piVH97N7J6SvgX8xoyhCUoiFDpaEXSa35KHYER FxAO0ZZY+5c0Oa9wTMcwqF1D9Wh59zcE9n3LGD3bZV3JQexL8E/Wqisj1wbj841Q3J1q GjcslgYeUOb7BMUYXXEnAGI7L19SgCaLDE9kfygDfkx0OO2mNnCArNP0Zi0Rp5T1GhAe 58gurBJEXkJcTzIOLx8utwwanpFfs/+lW8xUeVjDb5ul3EiLliks8xDcEPDU6WI9GmvC AI8A== X-Gm-Message-State: AOAM530AJV+UK+8U3zjpP18ZR02dN1zX7JDllgJuZI+L99tc68jliFpo B03+hssUKqz4nPH3TD4h8sAGxAwUTu0= X-Received: by 2002:a9f:318b:: with SMTP id v11mr6876568uad.46.1590766184894; Fri, 29 May 2020 08:29:44 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id c65sm1216286vkh.32.2020.05.29.08.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 08:29:44 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH v2 0/3] Load default system configuration from file. Date: Fri, 29 May 2020 15:29:37 +0000 Message-Id: <20200529152940.208214-1-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This series adds supports for reading default system configurations from a configuration file. This allows a system to override what are currently kernel hardcoded values from a conf file. The dependent kernel patch will be posted after some additional parsing validation on the tlv is completed. Changes in v2: - Fixing checkpatch warning that are applicable. Alain Michaud (3): mgmt:adding load default system configuration definitions adapter:set default system configuration if available main:read default system configuration from the conf file. lib/mgmt.h | 20 ++++ src/adapter.c | 251 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/hcid.h | 39 ++++++++ src/main.c | 162 ++++++++++++++++++++++++++++++++ src/main.conf | 65 +++++++++++++ 5 files changed, 537 insertions(+) -- 2.27.0.rc0.183.gde8f92d652-goog