Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp602575ybm; Fri, 29 May 2020 07:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkX5YAk8VY0WAUivo1QH68XA/Ymrqj32IIBKgArrluNWP/VmUS+wgJVFcC8w0U3V5K4Zmn X-Received: by 2002:a05:6402:306a:: with SMTP id bs10mr8798727edb.227.1590763843349; Fri, 29 May 2020 07:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590763843; cv=none; d=google.com; s=arc-20160816; b=0dRtWMW9ihA1CnBJ1zVP+oZYeP1kDJwzWYeDVnIrFeN0CK7V0OYgd+ExsUFpJiH4lz fFaHsqzNOVUm0Xp8KNhPb8f5+kSPUleVNvzy86hIvycI35E7y5g4lR7H8mO4nEccr+0c YiQyqLITkawPIIfD0xazCi2okS4cxll0D9W5NaHmRY60ELZsXioz6oTiwr2SFgnB+rM8 0jaoemo88/vtPEL9j24v0EvtmCWV0LE2WINmM+C04RQqJA4Ex6uJH33K4xt4ulmuqkUX HviNdkCJ1SCFvLtFTGihuRNf3Oo8ckdBuPu3vpplZX9TEoHjxR4RLNony62/DQ6maPV9 jcLw== 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=COVUHSxTCMj2isyY9J+v1mwEZIAcu4F6fY+gjyNQtIA=; b=DBonI0w8b7JbDU5VgYk41uvugxhWPB2mOauHjKQI7l2u++Z7tZxkzrkDsQKmOHQHA7 mfbqBst1/kuvws1WShaQ7DAxsh5kkEc9LwUv+orsgwjAQge8neIH8J9M90pGGTX6BAQb 7ZYN+bJizyaeLAGSR73urOcnWnY7zuAgsXXT2AolRRVIkmKF2uKvTK721Emwvr5er6WJ Aj/DAXi3X+caWii9Lfkb7vmclS0OZ8MOoqqO7ZGwEp6H466JBnymKD8R3aFnz80EGDAU pNZFEu6Uhc+nZa4q/uh3MxGmrLLSvcaWNsrayDZOufgz9nA+7wQ40MXGwbidyNfvUjL1 qGEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lBhEchyZ; 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 bu27si5492001edb.169.2020.05.29.07.50.19; Fri, 29 May 2020 07:50:43 -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=lBhEchyZ; 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 S1727078AbgE2OuN (ORCPT + 99 others); Fri, 29 May 2020 10:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgE2OuM (ORCPT ); Fri, 29 May 2020 10:50:12 -0400 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2F0C03E969 for ; Fri, 29 May 2020 07:50:12 -0700 (PDT) Received: by mail-ua1-x935.google.com with SMTP id d8so865372uam.12 for ; Fri, 29 May 2020 07:50:12 -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=COVUHSxTCMj2isyY9J+v1mwEZIAcu4F6fY+gjyNQtIA=; b=lBhEchyZ/Q+vBamZ8g8B1Ns1tcncpcr7wwFG8Sa9MfKrvob9qneczS4Hf2PwBZng6R OmBAB8BeXjiRd08pQY+50fyteHeI1hNVir0Im31sNws/a3Wnlaox5JX9ZMl4rtcCWkJh UKpHuoSWT/thgKAagSTVcWBcpBlIm1RXW9Qzc= 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=COVUHSxTCMj2isyY9J+v1mwEZIAcu4F6fY+gjyNQtIA=; b=LAtXFmrnNHDGq0cXKrjOUi8dzo3dAvAJzsqUFN+nsnva5XLfIvvuJsBo/qz13G9A1r 6bLcUX9gkF2LZWciF/k6R7DOzvzq0BgxSTImGa3qj5MMq+FljwyN81cCmWWvtclFz0Ao rbmJPb+uCMfKXntlYl8BhlnqcVRevPld6C+Q+N/WVD+SpcxrEq9zq6Kg4USOfYAVkIj0 HocMlRp5HlKT8pAvLofXReqziyi0wAJrsk7Uio8qTT9VjdpMFreBir1OPq0BRykTlw4q ZPpBtggMGf39Af1c055C7FwrwCjOTEMTmaW+bj4J5+UloUl/iQVBEyljhbrbkQuGjDf1 KLJA== X-Gm-Message-State: AOAM533zsSkXBbjKlvCFqZIGWQWhStZAVh0uHgzDHeMNSd/Jw6rzmiU4 WTcjboJu0Kt/ID85wCF3qe6myXCVy0U= X-Received: by 2002:ab0:6642:: with SMTP id b2mr6137692uaq.92.1590763811490; Fri, 29 May 2020 07:50:11 -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 c65sm1196998vkh.32.2020.05.29.07.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 07:50:10 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH 0/3] Load default system configuration from file. Date: Fri, 29 May 2020 14:50:04 +0000 Message-Id: <20200529145007.198906-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. 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