Browse Source

qcacld-3.0: fix the mismatch issue about the macro definition

The macro definition for struct mlo_adapter_info in wlan_hdd_main.h 
is #if (defined(WLAN_FEATURE_11BE_MLO) && defined(CFG80211_11BE_BASIC)),
but in wlan_hdd_main.c defined as #if (defined(WLAN_FEATURE_11BE_MLO). 
Actually, "defined(CFG80211_11BE_BASIC)" can't be satisfied here, so we 
change it in wlan_hdd_main.c to keep it consistent with the head file.

Change-Id: Ic8e49f541459c6712d15a1d55f361dd22042235a
CRs-Fixed: 3474597
Meng Yuan 1 year ago
parent
commit
fe7e0a4d53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -3267,7 +3267,7 @@ static bool hdd_max_sta_interface_up_count_reached(struct hdd_adapter *adapter)
 	return false;
 }
 
-#if defined(WLAN_FEATURE_11BE_MLO) && \
+#if (defined(WLAN_FEATURE_11BE_MLO) && defined(CFG80211_11BE_BASIC)) && \
 (defined(CFG80211_IFTYPE_MLO_LINK_SUPPORT) || \
 defined(CFG80211_SINGLE_NETDEV_MULTI_LINK_SUPPORT))
 static int hdd_start_link_adapter(struct hdd_adapter *sta_adapter)