Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp553rdb; Fri, 5 Jan 2024 00:04:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmSd8UafMKY804sW3iWK3gKo4mTn1IOAWqfPgRhXo+/VHew9byfEhbLOpRyJheCAE2Pulr X-Received: by 2002:a05:6214:29ed:b0:67f:4881:1ad0 with SMTP id jv13-20020a05621429ed00b0067f48811ad0mr2352803qvb.34.1704441840794; Fri, 05 Jan 2024 00:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704441840; cv=none; d=google.com; s=arc-20160816; b=FVFeEOmcJfWIhz4Z/X8cdKWgHi2Cl7lqpcsQHsAn4anEw2y3gXDeEsK2vg62vCcblU GKTaW/GpGEpXg/wCZ5ooqCCP20LrBEAOplFRrer/fJ9SsEaoVXtB9Uv4NAI6iqXd06Hg lVh7pYqr4mTFHwl/BrNzgdp6i7sRsmRGzVQHCGOQ3wo+UOS+pIr8ViUxQIInnLOhr8+j wilb6LdQt0596PjadUU7fVYM44LnULOmOSQZXiJ9SOUUtH5/AfiJ55VKZS4yncQrT8OJ yroxKUh2XJhqUyyFqIZBSxObYj0J58hb00UW2vZ6Qfj/kRcS4M46gIBIzwSMjN6NPV4V 08zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=V9ImrQyDtLsbGmlbhMoBVYGxqEh3bY3oKpG/yxD81nI=; fh=M0IqNjRmjab2LDtytJ/KFJ/EVx4+t61hU8oCSrH1B/g=; b=tnTW6TBHnlNh1ueYt/Bz5ZKsurmNG1I/Yo5aYAkuySMVGMscKyy42nYhuqyTTmJSdC kRqX/HTaLnYPNgQ9NxS7sk5mDMzWFCn4m3VbJ/cWso4OUvd+eeg6jKGx8Y01X0uEEwmr BuRKeG3DeoL3TD7S5WZNVIiYfpTVc+wksrgBg27wQFbSa/vBStkPbvWtyPr195tHULF3 A7LMoaaghMyZm37sKxGXlQ5N7DnYCfsA/mC1SqZQ4i7CH8q/0OmMTfy2uWI9lDS2tSaL dfwGWq9BY+KTc4RrmLpFw8BT1F1MDqjECRS9PIHjfh8sCZnjdmywWubZUi0v6OoGMNWz q1Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-907-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a11-20020a0ca98b000000b006804ee661b3si1259723qvb.125.2024.01.05.00.04.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 00:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-907-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-907-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F9FA1C2297E for ; Fri, 5 Jan 2024 08:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11E8920314; Fri, 5 Jan 2024 08:03:53 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1557A200AE; Fri, 5 Jan 2024 08:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.224] (unknown [95.90.233.223]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 6568A61E5FE01; Fri, 5 Jan 2024 09:03:13 +0100 (CET) Message-ID: <1a3a481b-db1f-4325-8ca7-03f2bc44b2a2@molgen.mpg.de> Date: Fri, 5 Jan 2024 09:03:12 +0100 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Bluetooth: mgmt: Fix wrong param be used Content-Language: en-US To: Clancy Shang Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, zhongjun.yu@quectel.com, Clancy Shang References: <20240105031111.132851-1-clancy_shang@163.com> From: Paul Menzel In-Reply-To: <20240105031111.132851-1-clancy_shang@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Clancy, Thank you for your patch. Am 05.01.24 um 04:11 schrieb clancy_shang@163.com: > From: Clancy Shang > > bluez lib could not receive MGMT_EV_DEVICE_FLAGS_CHANGED notifications > after sending MGMT_OP_SET_DEVICE_FLAGS Please add a dot/period at the end of sentences. Please extend the commit message to describe your fix, and why it fixes the problem. > Signed-off-by: Clancy Shang > --- > net/bluetooth/mgmt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c > index 9dd815b6603f..c74abdf3618f 100644 > --- a/net/bluetooth/mgmt.c > +++ b/net/bluetooth/mgmt.c > @@ -5177,7 +5177,7 @@ static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data, > > done: > if (status == MGMT_STATUS_SUCCESS) > - device_flags_changed(sk, hdev, &cp->addr.bdaddr, cp->addr.type, > + device_flags_changed(NULL, hdev, &cp->addr.bdaddr, cp->addr.type, > supported_flags, current_flags); > > return mgmt_cmd_complete(sk, hdev->id, MGMT_OP_SET_DEVICE_FLAGS, status, Kind regards, Paul