Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1964000pxb; Thu, 16 Sep 2021 21:45:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznixXMZnqpCI869uRVSrb374k+eOK6ieoSGgFyYgAH4gHhOzM0WAhd8jw5eynrUd+942JC X-Received: by 2002:a17:906:d52:: with SMTP id r18mr10003360ejh.47.1631853916206; Thu, 16 Sep 2021 21:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631853916; cv=none; d=google.com; s=arc-20160816; b=hg/e75ncIYuGSjFbhn/bDJMTy8DnWGwvjMtxL7GqgpYUSed1shsZ+19FZ1hT5ufpUk MCI5TxQd2hUIEVujiEy4+zJzpllJVikV9XWVCrx+/gJzshsl/2FOH8HZGlbCRjsaXfLR lPuw2RAG20/5YHIkrln1sRN7c5bI8zlC8E4k8jEyN/yZ50Vf3OOnwe0ORihRIQcd+OyG 1cBi8uLobVv0UF3/0p+XqyfAB64ECn0yHBNO81PxyEm3kU4fXS/WCIDUQiQaPnNU7WvY KT9nx9PwbLZhBd2ev+hyvJvZA215b1/8NmDlLF2e2IREUQRq0QiWFXOzN3txaRY9eTfD BrPg== 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=k8qdkbwcc7UxwK2F/QlaYo7FdbAxcQq33s7dUcsq8BKDPztmg3ansGLbDhnakuKLta FhynJ9Ngw+RS4zmBkxhNN5KKJEQDsyVj8L5ggq7TJMsO8V/OAlh/+zUqfTGYisGHUgop fD183bVDrkXaNtRfxNZXn7g6QAEhFvdJrio8jMJ7GPAcOGky2nZBmBBhkGwKEd1HoIxm wigUYKpndCZLhrXUvCo/qC5617+CaceH3Om5RM/GqnGYNair1Nsdm55p/oGKwGKvWwf9 eBUtZnLqDrn1oM7DPA5mBtqzw8Dsg+Bwhu9mog+Ar9nRg9kYVFrHu9Qo6+dtcWua8Vih 3F4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cr3tpFcV; 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 jg17si6183885ejc.92.2021.09.16.21.44.52; Thu, 16 Sep 2021 21:45:16 -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=cr3tpFcV; 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 S1356411AbhIPRuA (ORCPT + 99 others); Thu, 16 Sep 2021 13:50:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:55272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355406AbhIPRl1 (ORCPT ); Thu, 16 Sep 2021 13:41:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C347661A88; Thu, 16 Sep 2021 16:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631811181; bh=X+FLbjA7aUy6pDS2PfreaYIzs44DNysFpu7NLz6bn04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cr3tpFcVGIjEprXLIxctCzCaxFI/Q4iLWNWq4ltGQ/UePshfwg8L8Kl5oUWmHcTD9 9640h8MttN6ddpd5jYJ9bech8IYDuZ4NzWcmQ2t95lVIPTRPk0OruC8T5BjkUI1mOq dbeCsEXIkajeToU7mEcCMxUwpNipAQvOu93msPlc= 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.14 370/432] iwlwifi: mvm: Fix umac scan request probe parameters Date: Thu, 16 Sep 2021 18:01:59 +0200 Message-Id: <20210916155823.345828857@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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