Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2180657rdh; Tue, 26 Sep 2023 15:26:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpU+FdVszA0ZCBPtyiAOxh6PXmIBfh0erKHOdnVLCohm5tvhZgG87vxD8rQxLO/fVXyabm X-Received: by 2002:a81:840a:0:b0:584:4bbb:963b with SMTP id u10-20020a81840a000000b005844bbb963bmr366020ywf.15.1695767165679; Tue, 26 Sep 2023 15:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695767165; cv=none; d=google.com; s=arc-20160816; b=vIq5h0ssFrCuewMN2ph4I/uzxU9FeeGfvhXVcX9xUGRjyg53GmSb6etqr3i+esH5p/ Eg0j1tUlLA5Hfz2yJvgJxmUDBZhk+FFX4a82QHtAGV0SFZzIOJUXw0hm9X/eIttyI18A Q1v36X8Kfaqi5wo9F73pfejtV0jZWcxP2T16P14OALM9Ef40SOsGgP3aY7WOfQFRAPvw lknS8j+qvYvzxKP+fRXaNEOBjl1R8WDLFzi5+KRnGFPb1azGwZXvvzovNAvDCtb/Tlan XaCapfoaOTpvB9al2mOClGdajSnqUChqKj4jqziqJhHFc5Bv+Hf4hBvh6eCeHSyEwQjy UUMw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VXIVj2c1BFet253o1NdNhcB4rkLPYJjf9VcaM8is4Oo=; fh=dNsaXUdsIB9hNcfHohj+etTXJ0oA3ADysVTjMerLmXI=; b=TMRGvAfoch4yCyz2qKBg5Zrd9fM0gi+38V85o04tkhkzGz0VGuU8zb9tKynnlRq5fB Vzv4RvTTtIzUYcoC8HKyzEStET6DBhrZq1CSOD5h59myQZJGYdLOk7wDMJGU5pfcdPiX /TADHlD1O/hCzRzHzs8cMS67/fGbbtA2KesLK4DOlVG4U0QRfsGF98uu21koz0SjhWXh nytT+cL0EDjmZv5BTp15tN8HqN3IpLz4ecraAqY4Dl4DxRoOJa5A/XNThp/C5qYmFasH E5gfq1lK+K69BcYe7Fu0hW8iTG45m6B3pPAm/1YcbpOS/EgXoCKEC7vNN5wEvakB5igQ qhWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RfLMFhR4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s85-20020a632c58000000b00578bf534637si12864174pgs.201.2023.09.26.15.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 15:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RfLMFhR4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CDAB48086918; Tue, 26 Sep 2023 06:56:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234882AbjIZN4N (ORCPT + 56 others); Tue, 26 Sep 2023 09:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234828AbjIZN4M (ORCPT ); Tue, 26 Sep 2023 09:56:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB2710C for ; Tue, 26 Sep 2023 06:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695736566; x=1727272566; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EKQ4N692XSeeoJRWAobK6SZsuAuCevmA7AKCJL1ZDHw=; b=RfLMFhR4EaTjdqcJssGjIOfFt2IE8y7HJrg+lNL9uiKkniLG5Be/f4cD t88iayrDiH1ckIho8r9xlh020HjbvGnT4Ly+PbrZ8PgJKnfGxhCEyW+TL a7biEo6E/dSlG8iYyokKt3I+b1rORwZP8d4y2UvUaAEFbkisKtD3wG9I0 J/wBjcTFq49WHsxKf2nTD3bdy6Gn67wM3UQrE4kC5WFvoir2lCLkfXLLK LYrpWnQx7NiDcIXBgiSg/QesMcuQQwujOv/7hjSAgch+MJdCAPD/+ZwAB TFy81asW5jQ+e+ljNWw236sbmfMBMJtxDNjpy56+jsG7KbSFhIII+QFvm Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="378846633" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="378846633" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 06:56:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="819032893" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="819032893" Received: from nbenitzh-mobl2.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.251.178.250]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 06:56:04 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , =?UTF-8?q?Antoine=20Beaupr=C3=A9?= , Gregory Greenman Subject: [PATCH] wifi: iwlwifi: mvm: Fix incorrect usage of scan API Date: Tue, 26 Sep 2023 16:55:50 +0300 Message-Id: <20230926165546.086e635fbbe6.Ia660f35ca0b1079f2c2ea92fd8d14d8101a89d03@changeid> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:56:14 -0700 (PDT) From: Ilan Peer The support for using link ID in the scan request API was only added in version 16. However, the code wrongly enabled this API usage also for older versions. Fix it. Reported-by: Antoine Beaupré Fixes: e98b23d0d7b8 ("wifi: iwlwifi: mvm: Add support for SCAN API version 16") Signed-off-by: Ilan Peer Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c index c1d9ce753468..3cbe2c0b8d6b 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -2342,7 +2342,7 @@ iwl_mvm_scan_umac_fill_general_p_v12(struct iwl_mvm *mvm, if (gen_flags & IWL_UMAC_SCAN_GEN_FLAGS_V2_FRAGMENTED_LMAC2) gp->num_of_fragments[SCAN_HB_LMAC_IDX] = IWL_SCAN_NUM_OF_FRAGS; - if (version < 12) { + if (version < 16) { gp->scan_start_mac_or_link_id = scan_vif->id; } else { struct iwl_mvm_vif_link_info *link_info; -- 2.38.1