Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1859935pxb; Thu, 16 Sep 2021 18:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/wv+xn/z48eZ4H1k7EfhgjZYw8ZUvRDwJrdctP3+wFqTUVl5DvtF6sdjXah6Ixk9srEWj X-Received: by 2002:a05:6e02:1b87:: with SMTP id h7mr982728ili.93.1631841026558; Thu, 16 Sep 2021 18:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631841026; cv=none; d=google.com; s=arc-20160816; b=r9BAzw2OBGaeCcCg2BNoxqISOk8fPVIoVtSImJ4hINCGNJYTEDQB7HO8veaZ6+UEua ADkJownnff9lsp3yAXqCSft+kTYnX25BVT03QNiHuLdwcnkDq2ZtTXtjVsKh3Gw3sHtj 4CW3Qhh0HIARQUGEYfBVTGFzsJubqDSAM3QkFgUfwfraocF1t9HV+2meeVG8jUUJ89h1 WV55IlaGx+V+kZP6e95pP2hBncMc7CKaZmwX64VGy3v36fAgoCYfy3cBZB+aJuNMyJkL nXerbPdcaauO0ZEj2EPVJ6UXnt8MgdIJ6YX8SIT42Re2edvrzcGE0XduiyE6WqndBwtj mqGg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9YSI+jJUcrg4lt/PK63E5A43MPx6K/XhNRXiSDIybDo=; b=EIRbVYiYHT4AmFhUhcEFVS6D0Afu5Xel5oGDlsPlGnc+G7p4SJk8NYgMY7ojebrNOr 8NKk4FL2VxsUJHbhKpq5v8SuYYafE8YqFgHttobfXrCa8d/7SgogKi51TYy1i2dSeOVf 9aMB3PvYKbap/ZoYoUE+4bXHDFlJDNHOX68Lt3Vn1hZYz0oI4UE0AowGW+Gf0Iv9FPVU Vu48k8uWDtqCszBrALsva5eaVOuMCTp6uRVG2GLf2WPMXcDhlBQQWbVjNcgA0MZeY2eI hn9JrAhOT4d/x0B4JD+FgKl3ftLxj8by7i1KPn8tuE6dh021gj7qazdOvrm8P1rWZU2Z rKhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iDE6dtRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si3874774ile.137.2021.09.16.18.10.15; Thu, 16 Sep 2021 18:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iDE6dtRk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350457AbhIPRJx (ORCPT + 99 others); Thu, 16 Sep 2021 13:09:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344481AbhIPQ6d (ORCPT ); Thu, 16 Sep 2021 12:58:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 052546120D; Thu, 16 Sep 2021 16:31:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809913; bh=X+FLbjA7aUy6pDS2PfreaYIzs44DNysFpu7NLz6bn04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iDE6dtRkgtHvPp01YUFnGLRNvK2rQuJLa3eliG0tNr51Ai5bj7OoSkYGEIVMzgdFJ s1klcWhSwseJAqoEza5tAT+OxaW8z55cwJ7bDFeLMXgInF1OK56xHEo/6M74cWafcX Q5AS99nP1U8E4eSdzbOFRqr83aDGsAJj/2bo72WU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilan Peer , Luca Coelho , Sasha Levin Subject: [PATCH 5.13 330/380] iwlwifi: mvm: Fix umac scan request probe parameters Date: Thu, 16 Sep 2021 18:01:27 +0200 Message-Id: <20210916155815.271597725@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilan Peer [ Upstream commit 35fc5feca7b24b97e828e6e6a4243b4b9b0131f8 ] Both 'iwl_scan_probe_params_v3' and 'iwl_scan_probe_params_v4' wrongly addressed the 'bssid_array' field which should supposed to be any array of BSSIDs each of size ETH_ALEN and not the opposite. Fix it. Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210802215208.04146f24794f.I90726440ddff75013e9fecbe9fa1a05c69e3f17b@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/fw/api/scan.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h b/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h index b2605aefc290..8b200379f7c2 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/api/scan.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* - * Copyright (C) 2012-2014, 2018-2020 Intel Corporation + * Copyright (C) 2012-2014, 2018-2021 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2016-2017 Intel Deutschland GmbH */ @@ -874,7 +874,7 @@ struct iwl_scan_probe_params_v3 { u8 reserved; struct iwl_ssid_ie direct_scan[PROBE_OPTION_MAX]; __le32 short_ssid[SCAN_SHORT_SSID_MAX_SIZE]; - u8 bssid_array[ETH_ALEN][SCAN_BSSID_MAX_SIZE]; + u8 bssid_array[SCAN_BSSID_MAX_SIZE][ETH_ALEN]; } __packed; /* SCAN_PROBE_PARAMS_API_S_VER_3 */ /** @@ -894,7 +894,7 @@ struct iwl_scan_probe_params_v4 { __le16 reserved; struct iwl_ssid_ie direct_scan[PROBE_OPTION_MAX]; __le32 short_ssid[SCAN_SHORT_SSID_MAX_SIZE]; - u8 bssid_array[ETH_ALEN][SCAN_BSSID_MAX_SIZE]; + u8 bssid_array[SCAN_BSSID_MAX_SIZE][ETH_ALEN]; } __packed; /* SCAN_PROBE_PARAMS_API_S_VER_4 */ #define SCAN_MAX_NUM_CHANS_V3 67 -- 2.30.2