Browse Source

qcacld-3.0: only populate MLD vdev params for MLO STA/SAP

For ML STA + Legacy STA case, FW asserts due to legacy STA shares
the same MLD address with MLO STA.

Change-Id: Ibd8045007bd7c120dee7b1e8f7faccc0a80cea0b
CRs-Fixed: 3063367
Yu Wang 3 years ago
parent
commit
aaab5fca71
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/hdd/src/wlan_hdd_mlo.c

+ 5 - 0
core/hdd/src/wlan_hdd_mlo.c

@@ -269,6 +269,11 @@ hdd_populate_mld_vdev_params(struct hdd_adapter *adapter,
 	QDF_STATUS qdf_status;
 	uint8_t device_mode = adapter->device_mode;
 
+	if (device_mode != QDF_SAP_MODE &&
+	    !adapter->mlo_adapter_info.is_ml_adapter &&
+	    !adapter->mlo_adapter_info.is_link_adapter)
+		return;
+
 	mld_addr = wlan_hdd_get_mld_addr(adapter->hdd_ctx,
 					 adapter->device_mode);
 	if (mld_addr) {