[PATCH 3/4] wifi: mac80211_hwsim: add sufficient parantheses to complex macro

Amol Dhamale
2025-10-21T20:51:54Z

ERROR: Macros with complex values should be enclosed in parentheses

Signed-off-by: Amol Dhamale <amoldhamale1105@gmail.com>
---
drivers/net/wireless/virtual/mac80211_hwsim.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c
index 51c0582e3b77..e62d4a98671f 100644
--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
+++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
@@ -5357,10 +5357,10 @@ static const u8 iftypes_ext_capa_ap[] = {
};

#define MAC80211_HWSIM_MLD_CAPA_OPS \
- FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \
- IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME) | \
- FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS, \
- IEEE80211_MLD_MAX_NUM_LINKS - 1)
+ ((FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \
+ IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME)) | \
+ (FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS, \
+ IEEE80211_MLD_MAX_NUM_LINKS - 1)))

static const struct wiphy_iftype_ext_capab mac80211_hwsim_iftypes_ext_capa[] = {
{
--
2.43.0