Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3277801rdh; Mon, 27 Nov 2023 10:05:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEStnQzQdHDAtYEJGDMqWfrFqqmKNP52hcG1ocrNXBxAoRb29EwRhtWQThH4RoQL3JuG1pL X-Received: by 2002:a17:90b:17c5:b0:285:9f17:2613 with SMTP id me5-20020a17090b17c500b002859f172613mr11299778pjb.27.1701108308790; Mon, 27 Nov 2023 10:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701108308; cv=none; d=google.com; s=arc-20160816; b=gwyqiz5+d9ONBJloSaYVmaz22vGkHPMFo1WTGPiSbNg3jphB0/3SBeFgD6ioAp1lRm I7e2x25LzvN7oJmdEwDhqiyQOidz39Q0lI1f80sXyL/1M/GAyP4f3SqI6rlhYEMPs7ee Au/aYugwnwnhRyuTmuiQfIrJFyerjRPoXb4BxbJMn/WLzkfEIGDFCln1/VZtDzWqbG27 st4ujhiw4073VNu0xflgrz27Y9C1f5WLrJ5fWPSLPRhvCJ3v/4iBg2BCF6Q1og+D/klY EdqHU1zRokOd3jLIIpKi1I/CQ2StvTRnZ7V80d5x4tXhcckMvimNlVZRjL3eJDw7aA1D O/dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1934cSuFEZa/QpxYtbFsxsS+BH3mxuJt8bzAlPuOtYQ=; fh=kjySNt3n/X0z43JEENZfqDEEXdkQgZK5og8/hvcWL2Y=; b=qeyQs0g+Xy9kErLoZ6I+B01FnicXsfcErJHLtizMHM+k/nq3XI7+QuG35qTPW8Da2+ jdy7NcWfDxNf7wawMltlXrbFFpnyG4zKVNX5LAUK456isgrkIGs1xUQEmsR1GR/QH0fA JhcUbj3S8HY5T/ZTHz1GBx1XimVOouCFCx5L1xXwgiJ85YkGK/Cj2veJxuLISwHSbOGx odfjWaHX1GK+7OWcBCRosOVK0ImDFJzs0Foq43bLqCXRR4FbltZIBTpZGXTfOQjzBvHp KXmInFHWFbj950Bw99hHeF17ApZYqkG5vlhBH4p7VxBrTXk9Jz9Gu//V6YYYa/U1TM/Y DN0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KHW0q2IX; spf=pass (google.com: domain of linux-wireless+bounces-120-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fv15-20020a17090b0e8f00b0027ffcd44adasi10140169pjb.133.2023.11.27.10.05.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 10:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-120-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KHW0q2IX; spf=pass (google.com: domain of linux-wireless+bounces-120-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-120-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 466B528182E for ; Mon, 27 Nov 2023 18:05:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58D973BB34; Mon, 27 Nov 2023 18:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KHW0q2IX" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFC39191; Mon, 27 Nov 2023 10:05:03 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40b40423df8so14757895e9.0; Mon, 27 Nov 2023 10:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701108302; x=1701713102; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1934cSuFEZa/QpxYtbFsxsS+BH3mxuJt8bzAlPuOtYQ=; b=KHW0q2IX1EXM1WAGXUxB4FkXqAoY3C/cBZmSZGmFt98KA5hFH/UmzKEYV1E7O5O2lV 7zyGWA4gO/YnwOyx/93EHlThZFglERFoOrdFOYblHEdquHQ9SVq20gRpXzqIjECHbykU xGnsXZDPhP560FIRxkw83LC3krL5rhf7/yHZZdbBXbW+P4mJG6diq5f8YE1Ds8X+BfCl ujA8FHj2eYq0Bke3vFb7sDgxM3Qz1vvrnEO8e6sQZMheWLeK6Cg9YQRoMWNrAondMg7Z RGieMWaUVJs/DADgtqYuEpOf7SLQKpt1o2xdG2En71ydOi5zzrvEtzCDU3IQYP/QVu18 30/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701108302; x=1701713102; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1934cSuFEZa/QpxYtbFsxsS+BH3mxuJt8bzAlPuOtYQ=; b=E+tn9IlxuYGE8ae0mnRDepNfOP3iYtyluyfo91hiecsIItsTNqrPyT7BYV81GGWFD1 SoJ9kpw58ac3iHvNXRwBedDs1t/qRCSlho1G89aBtyohjvBAgG6kbLaUkp4Tj7ifrEeE JlFzvg8vMg0LFvWRxAd+23NBroqLRj2J6F4Uuv3kzxQJql1QuziH/XklZd25EJt/mCzM eyGql0nyT6GCp737U4sVjtNyzRRN92ceh1ITYmSUn3UpVXoNyc//N75nCwDNgENxn5W1 vMAHGpQyG3ngWZQz7NoRCHd83mbeEWWWE2Nr98a1110AGf/wXjFrHuZ/pfVtoQvToYyM aEQw== X-Gm-Message-State: AOJu0Yzp1TB04hYl8RvtGaty43iS7kzC003m+usyucuYs0RW+VzuKITo ajSkptVXwtuccZac/sNHeTE= X-Received: by 2002:a5d:5442:0:b0:332:f01b:32f3 with SMTP id w2-20020a5d5442000000b00332f01b32f3mr6179969wrv.68.1701108301847; Mon, 27 Nov 2023 10:05:01 -0800 (PST) Received: from syracuse.iliad.local (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id v19-20020adfd053000000b0032f9688ea48sm12469369wrh.10.2023.11.27.10.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 10:05:01 -0800 (PST) From: Nicolas Escande To: Kalle Valo , Jeff Johnson Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Escande Subject: [PATCH] wifi: ath12k: fix layout of scan_flags in struct ath12k_wmi_scan_req_arg Date: Mon, 27 Nov 2023 19:04:25 +0100 Message-ID: <20231127180425.1695427-1-nico.escande@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is a layout mismatch between the bitfield representing scan_flags in struct ath12k_wmi_scan_req_arg & the bits as defined in the WMI_SCAN_XXX macros. Fix it by making the biefield match de #define values. I especialy checked by adding WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS to scan_flags and the firmware started to unconditionnaly send probe request on DFS channels during scan. Tested-on: QCN9274 hw2.0 PCI CI_WLAN.WBE.1.2.1-00148.1-QCAHKSWPL_SILICONZ-7 Signed-off-by: Nicolas Escande --- drivers/net/wireless/ath/ath12k/wmi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h index 629373d67421..2b5b46f8898e 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.h +++ b/drivers/net/wireless/ath/ath12k/wmi.h @@ -3307,17 +3307,17 @@ struct ath12k_wmi_scan_req_arg { scan_f_filter_prb_req:1, scan_f_bypass_dfs_chn:1, scan_f_continue_on_err:1, + scan_f_promisc_mode:1, + scan_f_force_active_dfs_chn:1, + scan_f_add_tpc_ie_in_probe:1, + scan_f_add_ds_ie_in_probe:1, + scan_f_add_spoofed_mac_in_probe:1, scan_f_offchan_mgmt_tx:1, scan_f_offchan_data_tx:1, - scan_f_promisc_mode:1, scan_f_capture_phy_err:1, scan_f_strict_passive_pch:1, scan_f_half_rate:1, scan_f_quarter_rate:1, - scan_f_force_active_dfs_chn:1, - scan_f_add_tpc_ie_in_probe:1, - scan_f_add_ds_ie_in_probe:1, - scan_f_add_spoofed_mac_in_probe:1, scan_f_add_rand_seq_in_probe:1, scan_f_en_ie_whitelist_in_probe:1, scan_f_forced:1, -- 2.43.0