Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp639753ybm; Fri, 29 May 2020 08:39:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmulOV7DRz4pvucjC5QqFNHGy3FwzRdogAlPRt/TtQjdEzPyVFnPh7lzN/Nn+PSOIr5BJw X-Received: by 2002:a17:906:e247:: with SMTP id gq7mr2498220ejb.107.1590766743178; Fri, 29 May 2020 08:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590766743; cv=none; d=google.com; s=arc-20160816; b=Os7MOGh//IttsZm8slREBe0M1i8vYf5kuugWZD9vgBdTG3vMZdU2iNQfbTo9U/ld9H wyMxlpoGPoQSRG8UZiVO3Et0L771PCgagCpLbjdFUQ5EjuJP63kPQnurEGDPZvgaD29S YPx6OkQbLmymKr4crzwYwIgEaLfEyl9RwsqyRxljUJy/Z3cd496di0wOiGvqKjL971/a XF1WkKG2yz3Jdbua4g2hyzL30w5sle0MAOHlBVHewkN8n3Qc3vIN3LWAdA2mpJqYkpBf q7qpzGEclkR0B1JRSEw/U3nsfCIUCN7mMLXKygbsBw7qp/ILAa4qPsdl7aVWIvixCz+x 1nQg== 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=DIVyaPrMnLKXr8E5UBrkKsc/WrG5o+j+XVU0uMFBAPo=; b=JpeAUbigbGOobrTc6zwk9xtGomOhZ+NhhytIjJMPzPdTXC2tP3sxKkDv9rczBFGnTR oOzDuBpC/rcF99LMRt1Y/dW8UPfKA2asNJCnlUvl5ZVHCheX1V6nvGk2yyVMkieaodAm 3JT9adasU7yRVwzHmSo1CiqafE4nTX0Jf+8s1oX0NIOycYDruTzfC8OUk9WTNAj+8BXn 7SQDi526wgFtpMHNkQ7TcO7MBoSmjQYip2GfKK/zCi2QHZNke35QJAVwZR0KbuZ0G8U/ eMOV1fb83nihIr/aoiA1XY0UKCSPUidTMLthsodZU+WBpYJ7F6mSizzeh/3t18JNvN6i pWzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OWr9gi0g; 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 u2si5737712eja.265.2020.05.29.08.38.38; Fri, 29 May 2020 08:39:03 -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=OWr9gi0g; 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 S1726886AbgE2PiU (ORCPT + 99 others); Fri, 29 May 2020 11:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbgE2PiU (ORCPT ); Fri, 29 May 2020 11:38:20 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 283E2C03E969 for ; Fri, 29 May 2020 08:38:19 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id k3so1753564vsg.2 for ; Fri, 29 May 2020 08:38:19 -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=DIVyaPrMnLKXr8E5UBrkKsc/WrG5o+j+XVU0uMFBAPo=; b=OWr9gi0gCSJctQxQQQKdk/z2s7NyM0M91LYu3sdso/DAwP6MWpwqlQUmxnJoq5s7Mx PJ9qMnItTbqbTSV76UrYfJlYR/GWO6Jk1JNlGFbonBt81dzafkUnwPhmZjPsCAmnPgu7 vvGBgzVrziQwExWbthUclXDYHuhju7u+QJEB0= 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=DIVyaPrMnLKXr8E5UBrkKsc/WrG5o+j+XVU0uMFBAPo=; b=TUh2RIaXb6z23eicPW5lP49JEoaKELj1cwEeGkIpe6b5ZzOQ7dgGeGRoe4DXRIItbX 6TdwSOlzFgbNAK6GOvyAyybxJPkqOCHXjrd8vatettFY8le6HCLFpXmkqN6w3vtfStSw oiOOt4LS5nLoMZZCa8MJBPjr0o/+W43O5n4e0CDLfVL92bTAdOxUGVMcENZ8dA1KWfve TAIjOaHKqtI9RwvoEZ8Gpb1zhmEg71htz2NCCBQGoiV3hlfqzuH1xptppkQuO+gzUqGf 6NLLrhyQhudzFt6nwLoBXY5yVV03j4xJCOfYGgSoserqo9iFqkPn1QgGnwpYLixoIPOa T5zg== X-Gm-Message-State: AOAM532mJ7davVWxMjEK8H4gH38RTkv+U6DCAkJusGFdAnT6nrg70c04 ZC11E3ryi8dWvO0LV2FgBjDzhJKYbQU= X-Received: by 2002:a67:6441:: with SMTP id y62mr6283940vsb.145.1590766698114; Fri, 29 May 2020 08:38:18 -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 o2sm1309494vkl.27.2020.05.29.08.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 08:38:17 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH v3 0/4] Load default system configuration from file. Date: Fri, 29 May 2020 15:38:09 +0000 Message-Id: <20200529153814.213125-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 v3: - Fixing const decoration warnings on options. Changes in v2: - Fixing checkpatch warning that are applicable. Alain Michaud (4): mgmt:adding load default system configuration definitions adapter:set default system configuration if available main:read default system configuration from the conf file. fixing const decoration warnins on options. lib/mgmt.h | 20 ++++ src/adapter.c | 251 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/hcid.h | 39 ++++++++ src/main.c | 174 ++++++++++++++++++++++++++++++++-- src/main.conf | 65 +++++++++++++ 5 files changed, 543 insertions(+), 6 deletions(-) -- 2.27.0.rc0.183.gde8f92d652-goog