Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3593827pxb; Mon, 24 Jan 2022 13:04:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3+f22SYP3cwQer5WvneivMUv9XhmblQB8j4V1SqtMLy0pA4sZ2KQlOw3zChy2mJrmvJn7 X-Received: by 2002:a63:6906:: with SMTP id e6mr12977613pgc.170.1643058272352; Mon, 24 Jan 2022 13:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058272; cv=none; d=google.com; s=arc-20160816; b=VGzh34Y0KKKGgW4PBicfyob/Zvhad0U2+JterQ35FS415fxiiK8dyp0Vo9V5t/E91M J1xyj9DN+EdSb9mVdSQGq/aJs0LCFdw1sV+hk/Di9hwiVSh1A3AKY2ZmS7faY6Z53w9e SdWvCh7DAqP8hnCsaqp5Jy2ELZLNCtN91X/BRL+cxAUZmoiXqchmO0zqrddj+A04ZGU/ 3yOywfo5iqwNf299nfR9YfyVk9HynzSH+Whlc7H39Pv6N4aQ3VHjkKhqwTlu9p0109Ee ho0D/Cd+grvYyTnL3eizyj2e1wyn8xi/5i1vapXHKaVFHIjV3z/8vwn7P769wnzo7IaB USRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nZiHAvqxL4M3acfF6sNdjK7p7W4PwPA0ntDD0P+ueQA=; b=jgMauJ4+fbTO+LNb58cOVr7pQ4HsJlC8N520Abbs0xgdYPKtWOtgoM10V8oxvgwMP6 tYDbWF3XrnqURw5BKZFn0aNMvfGJ2zlptguxUEkaDRLbXfSHMyz0TXnDzHq+9B3YT2BP WscioAC5irxGhlFPuc3+iHih/T8IzfJzQbccA6FT/gOtn7/i7MPAja+PMPxJy6X3dz0r czBETj+tZsjRA/Fvr3D+O2W4lGOLOTulhNrFOXYJoX84mULUvfMM2YDeCahjtYuVZW8E Nd1FNZW3e21lKeA9Q8uTd+0GTDB7IwsbwW072yJdJ8KChjkQuMcxV1l15rNFCONmUTMQ fp4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b7V7z1V6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si5353567pfj.231.2022.01.24.13.04.19; Mon, 24 Jan 2022 13:04:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=b7V7z1V6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383970AbiAXU2E (ORCPT + 99 others); Mon, 24 Jan 2022 15:28:04 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:33432 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378024AbiAXUGJ (ORCPT ); Mon, 24 Jan 2022 15:06:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AEC6961028; Mon, 24 Jan 2022 20:06:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88970C340E5; Mon, 24 Jan 2022 20:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643054768; bh=r4idlkki+evNSY8a6mjHl74JdrHllU0Bosbsl+OfL1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7V7z1V6IpWIK/7zywNgHbvpmGxrH1DrLPHJfCBcnK3kjUpWxGoP/zSWGC/oALYqF nLJc8nl1ykk6tvNLjtRIEmrD9mKkyu5jf94DsaV2jLmO+lvhBIWv9MJJL1ElzHzJOS ZWwsNVJgRlDWXBIp/BBMWcYF/vc35C6hKFxdb1so= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luiz Augusto von Dentz , Marcel Holtmann Subject: [PATCH 5.10 495/563] Bluetooth: hci_sync: Fix not setting adv set duration Date: Mon, 24 Jan 2022 19:44:20 +0100 Message-Id: <20220124184041.571791904@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luiz Augusto von Dentz commit f16a491c65d9eb19398b25aefc10c2d3313d17b3 upstream. 10bbffa3e88e attempted to fix the use of rotation duration as advertising duration but it didn't change the if condition which still uses the duration instead of the timeout. Fixes: 10bbffa3e88e ("Bluetooth: Fix using advertising instance duration as timeout") Signed-off-by: Luiz Augusto von Dentz Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- net/bluetooth/hci_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -2118,7 +2118,7 @@ int __hci_req_enable_ext_advertising(str /* Set duration per instance since controller is responsible for * scheduling it. */ - if (adv_instance && adv_instance->duration) { + if (adv_instance && adv_instance->timeout) { u16 duration = adv_instance->timeout * MSEC_PER_SEC; /* Time = N * 10 ms */