[PATCH] mac80211_hwsim: fix incorrect type in initializer

Subsystems: networking drivers (wireless), the rest

STALE1783d

2 messages, 2 authors, 2021-09-22 · open the first message on its own page

[PATCH] mac80211_hwsim: fix incorrect type in initializer

From: Ramon Fontes <hidden>
Date: 2021-09-22 14:16:33

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 <redacted>
---
 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

Re: [PATCH] mac80211_hwsim: fix incorrect type in initializer

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-09-22 14:18:34

On Wed, 2021-09-22 at 11:16 -0300, Ramon Fontes wrote:
This issue was raised by patchwork at:
https://patchwork.kernel.org/project/linux-wireless/patch/20210906175350.13461-1-ramonreisfontes@gmail.com/
That wasn't patchwork that was the robot, but ... I don't think I've
even applied that patch, so pleaes resend it with the correction
included.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help