From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3093BC433DF for ; Wed, 17 Jun 2020 04:00:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E9D02098B for ; Wed, 17 Jun 2020 04:00:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="l8NTvh6N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgFQEAg (ORCPT ); Wed, 17 Jun 2020 00:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgFQEAg (ORCPT ); Wed, 17 Jun 2020 00:00:36 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2152C061573 for ; Tue, 16 Jun 2020 21:00:35 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id y18so327211plr.4 for ; Tue, 16 Jun 2020 21:00:35 -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=SB6NyllJ5c5QB2g83Rjs0/yw2ziAGwA5U5ta98dnIWI=; b=l8NTvh6NB0BN6VPtWGd2MQ+oChxu/lYfMhCaPIFk3rpRmFXKlI/bxKFlggLgyXTa3x /ZPad1Y3c/G2emO3S+dkCprNZ+AuF9POHsuUGhGQKJL3ddt6bkjC5MTaU83zGeL5vSrX 3dmvSZ9XiCrlE3jjBwACVs/mrgnE7ha9wjMDE= 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=SB6NyllJ5c5QB2g83Rjs0/yw2ziAGwA5U5ta98dnIWI=; b=FUzSemSSGwuRGiskeHpo4rgLRgre5R8mIT7gAN69zpzFAJxzkuIWRtoWu2NsdwT0q/ Fd8ftL1j995bkUa4oqMxFpNT/d6Qocofm+R6xA+AH/6l0jz5IOODMF+5ZqttPF4oXg76 LHqp1HoDJmH8uGEs5tVCxymBZV8/HmAKMfJ5XAfI8tcFCDbFLTOGgZeT7HMvMU8OAB/G Rf549JQkPnyiwT1ShWvaYru00YikdG1+x/0EEHQiaOZsa9QGZ2XbvKBUMfC5Dsso8445 BCVVUzzaaODgc40vLaPyOEXZPSSYUJ1Vvt+0hSI2A+DrrX4zjIrTVi+CAy5GLOFoH8lK 0Lbg== X-Gm-Message-State: AOAM531G6G23tPUOIaiDRMzjKLP8LaY4DiD/607piV7PF87OngI7yuf8 4YbFotL7+Z+ftgsnztexQTh5FQ== X-Google-Smtp-Source: ABdhPJyTI/VLL17J/OWOTs8c/3WLZNCAlQ/tnQ6y8hYmbQqn2Rmvw+OvZRZajSEcKcD6/Ttyxi4QyA== X-Received: by 2002:a17:90a:4d4e:: with SMTP id l14mr5967423pjh.10.1592366435399; Tue, 16 Jun 2020 21:00:35 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id q1sm20013089pfk.132.2020.06.16.21.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 21:00:34 -0700 (PDT) From: Abhishek Pandit-Subedi To: marcel@holtmann.org, linux-bluetooth@vger.kernel.org Cc: alainm@chromium.org, chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jakub Kicinski Subject: [PATCH 0/4] Bluetooth: Implement get/set device flags and device flags changed Date: Tue, 16 Jun 2020 21:00:18 -0700 Message-Id: <20200617040022.174448-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.27.0.290.gba653c62da-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi linux-bluetooth, This series adds support for configuring the Remote Wakeup flag on devices by implementing Get Device Flags, Set Device Flags and Device Flags Changed. This was tested with some userspace changes to update the Remote Wakeup flag (these changes will be upstreamed as Bluez patches once they're cleaned up). I verified that Add Device generates the Device Flags changed on all mgmt interfaces and Set Device Flags skips the one that requested it. This was tested on a Chromebook running kernel 5.4. Abhishek Abhishek Pandit-Subedi (4): Bluetooth: Add bdaddr_list_with_flags for classic whitelist Bluetooth: Replace wakeable list with flag Bluetooth: Replace wakeable in hci_conn_params Bluetooth: Add get/set device flags mgmt op include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_core.h | 31 ++++++- include/net/bluetooth/mgmt.h | 28 +++++++ net/bluetooth/hci_core.c | 59 ++++++++++++- net/bluetooth/hci_event.c | 8 +- net/bluetooth/hci_request.c | 15 ++-- net/bluetooth/hci_sock.c | 1 + net/bluetooth/mgmt.c | 139 ++++++++++++++++++++++++++++++- 8 files changed, 266 insertions(+), 16 deletions(-) -- 2.27.0.290.gba653c62da-goog