Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp305976rdb; Tue, 16 Jan 2024 00:10:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFw36NVxmY9jS8gymQadlklNAvgokwrK2sHQg32KWwO5TV7trMnoTz2Z583EDT/lqG43kh X-Received: by 2002:a05:6a00:1c8a:b0:6d9:9239:2bbc with SMTP id y10-20020a056a001c8a00b006d992392bbcmr9590838pfw.55.1705392635210; Tue, 16 Jan 2024 00:10:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705392635; cv=none; d=google.com; s=arc-20160816; b=q8ci/gkM85FjUFpJUSgs1ZYMrhvXcRr7Vbeaaz9+QMMA5oVowQUfFk+4NBBTvVB8NC MhRSpxhzrgrcL2AJj2XvzlJSo7OheJgovhyNbpWX2hqsN9xBSgL6QMdTgEj1YJ+c4JWb mqmq4Fc4JuEY7xOClLVAIpvT8jqgT/lig1yN1XjZq2hCKpJMU1xSJMkPxWRk4UpK0gi1 L5PGy2D47VhparmoHQ7P5PEM+gtIQo7FYma5QNeoOXDqpyxr255EZGP0leCqj6KZMevV djep0r4quliguR/pPDPPoLH/kYeywtmqKMIUiHVAyIEXNmztBLaUuN8HT6roxe2q1tzt +qMQ== 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; bh=5IWsaz2V3erZ7AX69q0DluDVjTGH05bBageIfGmddok=; fh=OVxh8nViFWTZqSloH3WBCtDei5kG8LquIN4j94zrvAA=; b=U2CMwXf5WEUDny8iMwfiVAHGHbxfzXmJXNEvZRcKJoHxn7xkR/nmzuyYgaO8xpAWoD f8lSw6i4AXUsnvC9FwZvIb85ZUZk8E2AVrBcDnj4IaRtvH9xrnMK92RiEsXDSiJ7BssX xR+eOtgjz3M4s1gz+96HkZkxvsZ1w1wgI2JrmJERUwvgKhlxfTep10Bcmi4hyTV4Z7uT esi/jRV9gZKUcYZLc1u295ZNYqDMwW2FrfUInxJkby/+xiXuVdigCp55wt4Yb/V5EHPC EcmSA9SP7EExi9AgEXw+QwpWKebAwU9uDduM0r2RHD9AxcXTYmAv4Br275lPhSuo0bfa M1xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1965-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u5-20020a656705000000b005ce071556e6si10592824pgf.874.2024.01.16.00.10.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 00:10:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1965-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DFF3D281161 for ; Tue, 16 Jan 2024 08:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFEFA11C83; Tue, 16 Jan 2024 08:10:27 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C96D711C84 for ; Tue, 16 Jan 2024 08:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 40G8A7Fa8147637, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 40G8A7Fa8147637 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 16:10:07 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.32; Tue, 16 Jan 2024 16:10:07 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 16 Jan 2024 16:10:06 +0800 From: Ping-Ke Shih To: , CC: , , Subject: [PATCH 1/2] wifi: rtl8xxxu: convert EN_DESC_ID of TX descriptor to le32 type Date: Tue, 16 Jan 2024 16:09:44 +0800 Message-ID: <20240116080945.20172-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Fields of TX descriptor are little-endian order, so correct EN_DESC_ID field to le32 type. Fixes: b837f78fbffa ("wifi: rtl8xxxu: add hw crypto support for AP mode") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202401161318.YtXoCkjU-lkp@intel.com/ Cc: Martin Kaistra Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 521faa48803c..98700f3ad6f9 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5619,7 +5619,7 @@ static void rtl8xxxu_tx(struct ieee80211_hw *hw, break; } if (bmc && rtlvif->hw_key_idx != 0xff) { - tx_desc->txdw1 |= TXDESC_EN_DESC_ID; + tx_desc->txdw1 |= cpu_to_le32(TXDESC_EN_DESC_ID); macid = rtlvif->hw_key_idx; } } -- 2.25.1