Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp521167rdb; Mon, 15 Jan 2024 05:10:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+JXsx/X4bv+oiYFG9jn7asgcYZLY5XGpYT8wmmQVZ8+CmWgWeoGrt30BvpUixkmuEc5UE X-Received: by 2002:a05:620a:66d:b0:783:25ef:818e with SMTP id a13-20020a05620a066d00b0078325ef818emr6142226qkh.116.1705324211124; Mon, 15 Jan 2024 05:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705324211; cv=none; d=google.com; s=arc-20160816; b=Ho/xigF9q/kEs+jYneclq7v8O+5UwzzzhegNXpZMHaOCDYZiQzieoXmc7XVf7GYUG0 /MDjQwFDOh8yoT4qgfVCwl14g0LexltuPmH+TQ9GTaKh1/WNzz8oVT8BqEnW6wDlKmO5 l6Fu0EfkyN3B7Op5DPLsUe6hvte7m8mxcuen2rbcBXT+wQyFM8hqp4jXCnY7sayJUQDv kNm7dCzUJExr0/efouXg5yQAtmvRFaYDWNqQSdZSyq1InQre4qDWj/thHjvNaDBH4A0M rfRzby/8tt0kznoh6NjaZpu4EhyKNmKnv+crHK/pTneeF6uYTNPxyh58U3X/Cgyy2dsw keAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=xqciNHiwX5Xpe9HUhoDTBRkSyWdUM5unYCkQrW8mDZo=; fh=q3B1HoUwsBrElUTzYrJdxVMe+QG8ivhVvuiQqZqBW1A=; b=mf9TlHzkXaccgqSosFV/Fpkac3GwhsSoemHY0oe1PJQWitMjCE9usHhEjSDF8VkDYh +UtBf5N0gq3ggAreaYvSc/koHsyIYv5HKLcSjiy2y7KwCIk8Smk6m6W3BITGtkjp/f/W AcnW+KeIYH9LcVB5qZx1jZSel5FGMLvQEQSR8JUvskavICrmOyspsKmsDWAqyAiMbEVy biy9fJhhPNn8mxbp57z/JFPwZT76fa4cPSjbjz7lXanfJHkLU9U55ImWO0fGqq+/HRtK zWNjLpGycZHZr5Gv1TkmLN/QTOEjZ2pDEJQKwZV81BZqhNB9+ZerCg24BpzYjPp9HqEh qz3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T7BXAm1Z; spf=pass (google.com: domain of linux-wireless+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z26-20020a05620a08da00b007835b33c34csi2361473qkz.470.2024.01.15.05.10.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 05:10:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T7BXAm1Z; spf=pass (google.com: domain of linux-wireless+bounces-1923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1923-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CD80B1C213B6 for ; Mon, 15 Jan 2024 13:10:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0051171DC; Mon, 15 Jan 2024 13:09:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T7BXAm1Z" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19F60171CE; Mon, 15 Jan 2024 13:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-337abfd6151so354466f8f.1; Mon, 15 Jan 2024 05:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705324169; x=1705928969; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xqciNHiwX5Xpe9HUhoDTBRkSyWdUM5unYCkQrW8mDZo=; b=T7BXAm1ZKQM4MlPZ5I41/fslMSZjcmVPyKJrnpA4IZV4ieG3GWzR++3wQNm3/KxC++ XriUX68TqPhis+B/03djNGPtGeRA14O2AvAvsTumAbEskwjkhlMAzUJViKMaafTOpmq7 ua5v99bFtt7ZYqeAH4s5Yq+mNv4auTqL1BIcg0xsTfVTrEvb/tbn8J6Vdt+mS71bkUci ocEEwhW5CcANXn3UW5zMxzcGaok4VTfo+4TzkKP64MEOLVoiEakOOUugAo2F0++zIw/X t2xZucBmgAjCKUc9OOKCerArHlg8HqYDGWLtJfTKhQsCGJo8rlQkVLDnmhEF4qBr23Ij Q45w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705324169; x=1705928969; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=xqciNHiwX5Xpe9HUhoDTBRkSyWdUM5unYCkQrW8mDZo=; b=e+pg1Q6U96CFpcEkn58HZPqCkYm6ScRrpoyzaaXfoRdU/1k86pgK//CogaSTpueFCd r6ySxwBklM+gSzERMUvL/z4Uc8QoUqKSx2ge7Y2ZT2Qig+nG6bNS6x9kBsgx/2zd7W8E ZA7xs9hzxU9G1Q3lg3DIKliN33Gn42NOv4Xe6GuvSel25uvewGsF/kFyYYnDkZvDlw5R uJvm5GuREx6dZz1AuMFKaZkpmDCNaKMKpGRPKPz3pFpkOJvMmaEzmE10bEqm6Es1za90 ZjRjsjK442Jinps6b043FskR9z33rsgKlxuta1UW7xihkZ155b48zqNIUMB28yHjhG07 +UgQ== X-Gm-Message-State: AOJu0Yw0Oj8KdalRRQ0GuQ8Ykzd42SC/nfaufegSOJCdejsXOTspQ6PR pZRzbrbXgotZoot28C1qDiw= X-Received: by 2002:a5d:420a:0:b0:337:9015:ab4b with SMTP id n10-20020a5d420a000000b003379015ab4bmr3610104wrq.108.1705324169004; Mon, 15 Jan 2024 05:09:29 -0800 (PST) Received: from localhost (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id d16-20020adf9c90000000b003366c058509sm11850615wre.23.2024.01.15.05.09.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jan 2024 05:09:28 -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: Mon, 15 Jan 2024 14:09:28 +0100 Message-Id: Cc: , , Subject: Re: [PATCH] wifi: ath11k: fix layout of scan_flags in struct scan_req_params From: "Nicolas Escande" To: "Jeff Johnson" , "Kalle Valo" X-Mailer: aerc 0.15.2 References: <20231127180559.1696041-1-nico.escande@gmail.com> <20c7a367-2243-4e13-b023-9999dc6c6790@quicinc.com> In-Reply-To: On Thu Nov 30, 2023 at 9:24 AM CET, Nicolas Escande wrote: > 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_fl= ags ever > > > and only use the bitfield to set scan parameters or if we use WMI_SCA= N_XXX with > > > scan_req_params.scan_flags they need to match the corresponding bitfi= eld. > > > > IMO the correct thing to do is to remove the unions from that struct an= d > > 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 onl= y care > that this gets resolved. Hi Kalle/Jeff, Any new input on this so I can move forward on fixing this ? Otherwise I think I'll end up going on with Jeff's proposal of only using t= he bitfield for intra driver representation & then converting the bitfields to their corresponding WMI_SCAN_XXX when transmiting the req to the hw with wm= i.