Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3279214rdh; Mon, 27 Nov 2023 10:06:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHC/U99UbmRniXkoGT+SQ4YWERrjtEem//L3YbELMzzkI34IHtTl2LkvxRaa8klwZ9hZooY X-Received: by 2002:a05:6a00:3a09:b0:6be:acc:8973 with SMTP id fj9-20020a056a003a0900b006be0acc8973mr11619142pfb.20.1701108399849; Mon, 27 Nov 2023 10:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701108399; cv=none; d=google.com; s=arc-20160816; b=popsc2gIlERz0TWgvvNq1YDHon81eAH+ss9gsXPbFWrc5c43FWThtC3g+qycqJy8rU L550SP/8d/EsT2YQhVr5iEd2rJrHnd1wZqHd/O5jrQB219Z7MOrJvlHQIT+awzbOKrtr kmbs8mcYuhyFzm4QhdxkaslgvTjxTua6YPOEFVOgA8P+UN0jxdW9bjFIMTdUs4S0/1Tc HW2yLOAH786YnNXaGfIIASyTJ6U5CUptGpSpMDIiKt89z2WPBtgEfEgDdDo7wqtX0ofa Xg9qaPCjHf7pfP1BkBoHiGorjCdeFNH0q5eW7TfuVZsVKhEAKNtH+83+r23SerAxTCQb O1EQ== 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=DT40gvGBf/eM8IJ2UaCbuM7rGTg9Ams4wqAFywuOGQg=; fh=KcrLVL8DnBPn290vtIn67ePY9GCItU1edyXEGyrgnN8=; b=sG1qSFDqPZ3Iz5UuLUebWwkMCvolo4to8GB/C3+H64qQMb8cmD6HoKmckIaosMOwth MGISs9X1Fzzh573cqhugp926Pq/fVrBC0qZivortLwXUrlQG0yk5LhOUWQs6W/L7OunA rlERpgZbF/FTTQ5BtSUSviLH+1zxskaTc4Yp8BleV7CEi2xUaoU3lXf+MAVj85akOh2C bTK5VwvCR+LaEs3naLk1uT7cdfVf5Y4ICrfHjk9bBhg79Vsw0Z/jxaIH3FmhjbeCOlFS E+e2fDkFokYykd8FSDePERk6GbQUzMcZf3/1ZclAWE80gH/11fWjpcO9WQbgSx2ZDerD lpHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U83Cp9QA; spf=pass (google.com: domain of linux-wireless+bounces-121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-121-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. [147.75.48.161]) by mx.google.com with ESMTPS id k38-20020a63ff26000000b005b92fb731a9si10087403pgi.834.2023.11.27.10.06.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 10:06:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U83Cp9QA; spf=pass (google.com: domain of linux-wireless+bounces-121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-121-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 B024EB20E54 for ; Mon, 27 Nov 2023 18:06:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D27D43716A; Mon, 27 Nov 2023 18:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="U83Cp9QA" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF535191; Mon, 27 Nov 2023 10:06:29 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50babce6ff6so2677408e87.3; Mon, 27 Nov 2023 10:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701108388; x=1701713188; 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=DT40gvGBf/eM8IJ2UaCbuM7rGTg9Ams4wqAFywuOGQg=; b=U83Cp9QAYPsR8y8BFvWQAlWLGyNJkNBENO7EgVym2VdArBgtz9N0iB+UwZqk0QoOAc wTrvILcqAZU3aqNSA02Vcg9mZ9P6tgIodK32BPZ8IvH60wcEF4GKG579JoAPgGSAWmHd Np/+lbGQDWJAZEVNcl2jHtAkqkvD17YdgynPzFUrUTsfnduDY5H303jSYysE2mUshT07 bspI23rdp1mn16lDAqP9MFNOwBOIkwEA55pkU2yIeTVtjAj+/Sq4emWAOTpPLQHw3ngp TLPZNZ3gmg+UBncjo1XSjuykRuuFqwAU0NXkCbIJ5RE7A0YnKPojangVj+3AEsY4JEyH gtSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701108388; x=1701713188; 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=DT40gvGBf/eM8IJ2UaCbuM7rGTg9Ams4wqAFywuOGQg=; b=lv/pMsHHj9IUF8O1gNl5xy+0BK2bLKxxOS4WPz6hI9TVPX0yOMnX63C4MhPodKepB2 w+amJ35hFs1Obva/wOmtA9nHrqbDb75P2PGkhGmj5GYLgo7crDMU6JasYDruhLbkgo+l zymMp5K5xnuE/jAUI0Y3dvYajsjhzlJG2/tt1BPui6t7kvL4UMR2jilof4dqXNKh3GMp 5S1+wiqM4SmCewRlU51/7OhA6/O44mBfsQR2WJHJhXmsKURVtycqPV8KrHF2/lJDZ4Dz nshSbvbVrnasBDmI4xc+gpXQFwG0vlUFE9OVmlcnwaWRqVqn8YWmKql7VNThYdcR+7WX l9/g== X-Gm-Message-State: AOJu0YxqcQjUpC+X90CdGsXC954SsbM7dgRj8UvqgD+R/JKPuulpA1Mo RcxYTHdyeJRyYvBIYd50r6Y= X-Received: by 2002:a05:6512:684:b0:508:1edf:92f with SMTP id t4-20020a056512068400b005081edf092fmr11089362lfe.40.1701108387855; Mon, 27 Nov 2023 10:06:27 -0800 (PST) Received: from syracuse.iliad.local (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id a2-20020adff7c2000000b003258934a4bcsm9795304wrq.42.2023.11.27.10.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 10:06:27 -0800 (PST) From: Nicolas Escande To: Kalle Valo , Jeff Johnson Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Nicolas Escande Subject: [PATCH] wifi: ath11k: fix layout of scan_flags in struct scan_req_params Date: Mon, 27 Nov 2023 19:05:59 +0100 Message-ID: <20231127180559.1696041-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 The is a layout mismatch between the bitfield representing scan_flags in struct scan_req_params & the bits as defined in the WMI_SCAN_XXX macros. Lets fix it by making the struct match the #defines. I tried to correct it by making the struct match the #define and it worked for WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS / scan_f_force_active_dfs_chn so I'm assuming this is the right thing to do. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Nicolas Escande --- drivers/net/wireless/ath/ath11k/wmi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index 100bb816b592..0b4e6c2f7860 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -3348,17 +3348,17 @@ struct scan_req_params { 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