lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210922141617.189660-1-ramonreisfontes@gmail.com>
Date:   Wed, 22 Sep 2021 11:16:17 -0300
From:   Ramon Fontes <ramonreisfontes@...il.com>
To:     linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
        linux-wireless@...r.kernel.org
Cc:     johannes@...solutions.net, kvalo@...eaurora.org,
        davem@...emloft.net, Ramon Fontes <ramonreisfontes@...il.com>
Subject: [PATCH] mac80211_hwsim: fix incorrect type in initializer

This issue was raised by patchwork at:
https://patchwork.kernel.org/project/linux-wireless/patch/20210906175350.13461-1-ramonreisfontes@gmail.com/

Signed-off-by: Ramon Fontes <ramonreisfontes@...il.com>
---
 drivers/net/wireless/mac80211_hwsim.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index d36770db1..e31770439 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2997,8 +2997,8 @@ static const struct ieee80211_sband_iftype_data he_capa_6ghz[] = {
 			.capa = IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START |
 			        IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP |
 			        IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN |
-			        IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
-			        IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS,
+			        cpu_to_le16(IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
+			        IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS),
 		},
 		.he_cap = {
 			.has_he = true,
@@ -3055,8 +3055,8 @@ static const struct ieee80211_sband_iftype_data he_capa_6ghz[] = {
 			.capa = IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START |
 			        IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP |
 			        IEEE80211_HE_6GHZ_CAP_MAX_MPDU_LEN |
-			        IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
-			        IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS,
+			        cpu_to_le16(IEEE80211_HE_6GHZ_CAP_TX_ANTPAT_CONS |
+			        IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS),
 		},
 		.he_cap = {
 			.has_he = true,
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ