Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp99777pxv; Wed, 7 Jul 2021 21:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEnVO4/KGVVWuLBsOPb2SqCw3zcJwr4010A1oU49We6PhIIrgv1ETSWLqZpK5fdNuJPWnl X-Received: by 2002:a17:907:720e:: with SMTP id dr14mr28572082ejc.350.1625718607999; Wed, 07 Jul 2021 21:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625718607; cv=none; d=google.com; s=arc-20160816; b=dNuuQAghXxWz/+iVv2bxzAza8fQlEjLQh1+7cR37B58wcNDFR70knGaZjE4ESKdOcz J5Lfkkd9rdSivh9dcGuiJbNLnqHo9AudbASPqimz7e1TjhtKDm8cbBkja8AjswsaWi9L Q5cUe0gtke2UPPngcO2KkhJi3WLaQ29IFcp7istASHtCeXk0LohZp8bR4g9zSk2vd0GK Ne+0inUxDQZIEzCH0gCGpCo75BeNgP0tMQXqgoDwhyCGXGoPfCxXlgD1dNRi7/iBEOW7 lYD/urztAeD1zVR+gEkzw1Ea5phR6ZZyd3qVlCOUD2jLTIafO/xUUUp3OET9WIJJgzWN OjJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=a7eLYEFIYDcupkqPPoQFOvF2PlewOHLsEeq6prgO8Dc=; b=dPsvinlx3bC20tMBUEr0PElVwn/65zW1pApnWmwhRpfc1pdKeusq3BzQGHYlQ0zwkP Aw99DDKlYdjvQ1aHjt7Sy471f8aUOTpASg3WT25iGAR4LPvNoHrhX5mnbsqsfbco69O1 Nj53uHBFrol0nrNJ5OxZkigLd+UxTxqnQTvjllL/3N6TcqUwE/sP/TF3gRVLfBSVjD1W kCY3XotARnhKnf9jKvVGBV1jbqQpxcBsbS6t/se9K8F7481yA9/sm12rb3rcKZx6M1V5 DM33yVdoBWvfMbmZGh9UYVrh7gO2Ccz0zPePSjrA+nJay9dhwOPVgD5/+PKSenRkHIMT c2Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si1577032ejg.596.2021.07.07.21.29.35; Wed, 07 Jul 2021 21:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbhGHEcF (ORCPT + 99 others); Thu, 8 Jul 2021 00:32:05 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42118 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229554AbhGHEcE (ORCPT ); Thu, 8 Jul 2021 00:32:04 -0400 X-UUID: 38969052e99e4c708f91889f424589a7-20210708 X-UUID: 38969052e99e4c708f91889f424589a7-20210708 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1190033055; Thu, 08 Jul 2021 12:29:19 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Jul 2021 12:29:12 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 8 Jul 2021 12:29:12 +0800 From: To: , CC: , , , , , , , , , , , , , , , Subject: [PATCH 2/2] mt76: connac: fix mt76_connac_gtk_rekey_tlv usage Date: Thu, 8 Jul 2021 12:29:06 +0800 Message-ID: <1625718546-14969-2-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1625718546-14969-1-git-send-email-sean.wang@mediatek.com> References: <1625718546-14969-1-git-send-email-sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Leon Yen The mistaken structure is introduced since we added the GTK rekey offload to mt7663. The patch fixes mt76_connac_gtk_rekey_tlv structure according to the MT7663 and MT7921 firmware we have submitted into linux-firmware.git. Fixes: b47e21e75c80 ("mt76: mt7615: add gtk rekey offload support") Signed-off-by: Sean Wang Signed-off-by: Leon Yen --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h index 1c73beb22677..4bcd728ff97c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h @@ -844,14 +844,14 @@ struct mt76_connac_gtk_rekey_tlv { * 2: rekey update */ u8 keyid; - u8 pad[2]; + u8 option; /* 1: rekey data update without enabling offload */ + u8 pad[1]; __le32 proto; /* WPA-RSN-WAPI-OPSN */ __le32 pairwise_cipher; __le32 group_cipher; __le32 key_mgmt; /* NONE-PSK-IEEE802.1X */ __le32 mgmt_group_cipher; - u8 option; /* 1: rekey data update without enabling offload */ - u8 reserverd[3]; + u8 reserverd[4]; } __packed; #define MT76_CONNAC_WOW_MASK_MAX_LEN 16 -- 2.25.1