Parcourir la source

qcacld-3.0: search with mld address also in wma_find_vdev_id_by_addr

Currently wma_find_vdev_id_by_addr searches for the mac address of the
vdev there are some function which pass the mld address to this
utility api which is currently returning error.

Search with mld address alo in wma_find_vdev_id_by_addr.

Change-Id: I34ef8486a406cbaadbe95e5cb493bc5b0c8d8b0c
CRs-Fixed: 3270810
Arun Kumar Khandavalli il y a 2 ans
Parent
commit
7f556d1502
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      core/wma/src/wma_dev_if.c

+ 7 - 0
core/wma/src/wma_dev_if.c

@@ -135,7 +135,14 @@ QDF_STATUS wma_find_vdev_id_by_addr(tp_wma_handle wma, uint8_t *addr,
 			*vdev_id = i;
 			return QDF_STATUS_SUCCESS;
 		}
+
+		if (qdf_is_macaddr_equal((struct qdf_mac_addr *)wlan_vdev_mlme_get_mldaddr(vdev),
+					 (struct qdf_mac_addr *)addr) == true) {
+				*vdev_id = i;
+				return QDF_STATUS_SUCCESS;
+		}
 	}
+
 	return QDF_STATUS_E_FAILURE;
 }