Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp187951ybt; Tue, 16 Jun 2020 21:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0YHoStFpWEr6DPaHO5z5TzUMPSDIoCWVz+7PkxoB1oAoRP8SOllUBXashGajCGLrtG8KK X-Received: by 2002:a17:906:4ec1:: with SMTP id i1mr5585732ejv.152.1592366500629; Tue, 16 Jun 2020 21:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592366500; cv=none; d=google.com; s=arc-20160816; b=joNOFLaeM+FjyB9Su+UEm2EzSlNykOJNRIa+RrMp46ixYO7yyqlPBEh6OnAQStUf9P eX7E2u/ftJ7Htcs/lRcAd8R3KCncsBE2d3sOCxQCIGPnqBSbVCoIFsDfNBIhiGBdUd5M uoKx9I/I9LSxb9MA0NBBvhxz1gcyIrqwJeyXIJhZai7U9iMRfuyhTGZXk+/uj6F6QEER tZKGrw5hR8yACMWfkrxskvOGlcPhfJUOMVYyn7+hWBXl6lfFGTR2j7Yg4Wm+ffzKCT8x ZBThVvdegXkzdkpVgeUnPhLKts2xLDbv3ckZv2uFyr1hvTpxrIxTv/qpz7EmImgWrNrz xdng== 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=SB6NyllJ5c5QB2g83Rjs0/yw2ziAGwA5U5ta98dnIWI=; b=mqFiSIi5Nm+kRAZM3Zxby704PGhbeUHx9CJbKwpDbwX+Jk/TwozJ5uWBgUAHU7E+9M asu+3umd1YTelAQrmlpaYbEcQPgUlEJlh3QV5IPWD3i4yhY2vBWqHp9t4c24XaEZdyYO vN7wQGwk3if6nT60mW0DAN6lJhvkKXSvk+HMLIKlxeEsG1Hk+4UYZizC+63rwhlngMc4 D6HQX0xO5Gpr8ui0AeZaXX3/Xb40bWs6xqDZNL37Z72QIoPvyhOFZK27YcH9eClS6I6g 2We6hcDcPQ3ZQoLFibHyNzfNSaxHxri6XcPQVxieSLJTWaKyuTKUVMGyB18iNXQ2SkhR BzIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=l8NTvh6N; 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 dt4si14706171ejc.34.2020.06.16.21.00.54; Tue, 16 Jun 2020 21:01:40 -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=l8NTvh6N; 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 S1726814AbgFQEAg (ORCPT + 99 others); Wed, 17 Jun 2020 00:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgFQEAg (ORCPT ); Wed, 17 Jun 2020 00:00:36 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFF45C06174E for ; Tue, 16 Jun 2020 21:00:35 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id 35so337378ple.0 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=VLXjWDLeJKNMXn4fkO1k5ef6lAURhOJqt9uthb1KQx1bIXw5uvZNAgVP2PY9UGC5FY uoVfKUBeuOWCVtiyzFjKxBHcGVwTvMdT3+eD6IeH7LHxC0Jp/MprVKk8/FdhxnqkDaiX Afyz9jjq3m0WHnnYDeOJ4kyw9EZ3kAuiI3E3bsz44wdSyD+l9OFQx5tQI94H5z0EnbjA kYrc5VSma1s/HCnY5bsVdVyOjO2agvzzo1nw8LqfkDG7CcJ6eR/7nw2QRBMld1GshKpo fdB1jSrBq5GFfSpnydlnxgE06Sesz6cDr70JzpERHnRyu3GX6BEVFJ2AtOkuMEa9mPLS 80Dg== X-Gm-Message-State: AOAM530ADjqZOwiPxVtjNZXX7KTuvZHfhPTJNuAyB6uUBDJ8Czs9WXuo eezcsWhaoGlYncq9oRvRtjSuEA== 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-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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