Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp147372rdb; Thu, 30 Nov 2023 00:24:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5Ye2nr48cNMVIf32iJMP6K6/rdB9njc/ruMMONTNdC8tkWUMbzYtc1nn6siw62lAiWJX5 X-Received: by 2002:a17:903:246:b0:1c5:d063:b70e with SMTP id j6-20020a170903024600b001c5d063b70emr21130930plh.53.1701332678406; Thu, 30 Nov 2023 00:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701332678; cv=none; d=google.com; s=arc-20160816; b=AMcPBgW+wGKJ6RssPlFBviLmq6LB7nTQMY1RU1r4gxPPTXrEJeLWbQAdNyjtiIFW63 Z9z2rfxTQJPrZJaLWVQssYhuhm3ZRqJPGxOC7qXwi1ILlWtpk2NcIxRmZPg5CRXGyuTa WpGaysECr398uGmB88o8ajmPk+vCkJheakOrGa7GPKZR4o/o1NLBVd7pOwnTzVdRvUh2 9KV8tgQrwWp55KDmeCCgkkr51z4jYtUcSB6L8WN8YQ2IdiGsJJFtL0vCM4sQq3TAB1wp 2XXPYb3Gf4bFxBFZQEYl37x07Ahy47qldbwnihsNwMMVgd9defUJTYwlGLb2yH9Z6A7L pySw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=3TQqYuMpS0IutFQA0jTxrDWzedXIaMHOHDdeUN7WQuw=; fh=0aUtSBnPV5QwcYjvXxgIH3yGl0iZnQuB60lxZG9YF3U=; b=uRTDNtC3wroJyV7eTQn2np4r1l63dGyeE9u+d87wPpaZau8xfdnkSOgRHxnMW0c9yD Aq374ikWNdtpaoggFyPz2s5WWMzdlhOemao9RHtq9eDcetE+wCPArj+LQBW37dkdCfwe /bYWrAnvEY80TI8rFwdihFslzQ8QIEDCk2HCvByR4j51UK1oQnMsu38cJHLEpFasI8pY RTgceHdISRDb+9AXUJAJB0sVqNOV/JS7z6cBER4l81sAi1P0k+rADTS+8k8MCEkgd/wi o+VNnSNPBXnkmszaMfdLeldQtBWirKfZsnp0eSFCB7/uylXdomFkuhAmqs+zspvrQshv 1zbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HCXXc4U4; spf=pass (google.com: domain of linux-wireless+bounces-235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jd6-20020a170903260600b001cf9d8ae8f0si684571plb.166.2023.11.30.00.24.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 00:24:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HCXXc4U4; spf=pass (google.com: domain of linux-wireless+bounces-235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 367E3B20F64 for ; Thu, 30 Nov 2023 08:24:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 793FC2208F; Thu, 30 Nov 2023 08:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HCXXc4U4" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF68B1708; Thu, 30 Nov 2023 00:24:28 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40b4e35ecf1so5369395e9.1; Thu, 30 Nov 2023 00:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701332667; x=1701937467; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3TQqYuMpS0IutFQA0jTxrDWzedXIaMHOHDdeUN7WQuw=; b=HCXXc4U4qeU5NoMLfrkZLt1igmtQJGFlm7+aosTsiMp7Yj9VOosR/urhQ4VzoIisP5 jyilxQ1GMBUGx7VXc53QcSgQy2Fo639vDS0rB2U7vR/vLRncRAfQsBnA9hUMbnEeNQ8G RTVAPkVRYVgGKi5uoXdVVS+k1L3jCEBxkUQBREbLDNzmpfEa6U7nIoF7fF1mvrMkWl2b RZ6oP2KX956eym6uYlYeDUOEtAIgt+bPc3uDnWGPaeysAEgj+X5D9NBbsg+GBOpHE+Xx cH2rCxdpATqQ7PaZuHRo44PnJ9CEw64WFyGJMyGtzINuTt/b0l2NDiTYr2IVUQsKIvm+ sEDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701332667; x=1701937467; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3TQqYuMpS0IutFQA0jTxrDWzedXIaMHOHDdeUN7WQuw=; b=ikKa+nZ8xhFfB/IURMRape1sSRUUJWNK5DUI3kibSVNPZ1tx9hbox9S+x1xwN/c7en 66SbKgRHhCtqJQJeZWydDD5ZwfjgVYJlaMOG/wTV7jqA/2Q1DaWR8hEs3cb0GNZFstJG eQOK+XyhLr6/5lZH0gkC8GeDB3qO/JxpOgYFhgUhKT51B2knY1c19pJvFYtyH79rirhh eZq8990YNwgskCexIX/Ap9SI1KIQnQktPNTHvXQNBYgRRs4D3HZPCiBLwGo9LgQnD5la nh6JyjmAdKAPucMNjoYw0Bxyz7zRir9LXwA1B9sd9wUv/sE2bM3z5cLLG8ZFGoJpFLoh Etdg== X-Gm-Message-State: AOJu0Yz5TbmtRJi2lkelob5nJeFs9YLNpFW85sUDtCYPLKifsdnYc5ZC b7mbuY3dHv/24D/1YiZzN1I= X-Received: by 2002:a05:600c:3b20:b0:40b:3e23:f0a0 with SMTP id m32-20020a05600c3b2000b0040b3e23f0a0mr11358637wms.4.1701332667016; Thu, 30 Nov 2023 00:24:27 -0800 (PST) Received: from localhost (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id p23-20020a05600c1d9700b0040b3645a7c2sm4839247wms.40.2023.11.30.00.24.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Nov 2023 00:24:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 30 Nov 2023 09:24:26 +0100 Message-Id: Subject: Re: [PATCH] wifi: ath11k: fix layout of scan_flags in struct scan_req_params From: "Nicolas Escande" To: "Jeff Johnson" , "Kalle Valo" Cc: , , X-Mailer: aerc 0.15.2 References: <20231127180559.1696041-1-nico.escande@gmail.com> <20c7a367-2243-4e13-b023-9999dc6c6790@quicinc.com> In-Reply-To: <20c7a367-2243-4e13-b023-9999dc6c6790@quicinc.com> On Tue Nov 28, 2023 at 1:57 AM CET, Jeff Johnson wrote: > On 11/27/2023 2:54 PM, Nicolas Escande wrote: [...] > > So either we should not use WMI_SCAN_XXX with scan_req_params.scan_flag= s ever > > and only use the bitfield to set scan parameters or if we use WMI_SCAN_= XXX with > > scan_req_params.scan_flags they need to match the corresponding bitfiel= d. > > IMO the correct thing to do is to remove the unions from that struct and > only leave behind the bitfields and not use the WMI_SCAN_XXX masks > except when filling the firmware structure. > > But don't spin an update to your patches until Kalle has a chance to > give his opinion. I'm new to maintaining these drivers and Kalle may > have a different opinion on this. > > /jeff No problem, I'll wait for Kalle's input on this before doing anything. As soon as we decide which way is the right way, I'll work on this. I only = care that this gets resolved.