Просмотр исходного кода

qcacld-3.0: Replace tSirMacAddr with cdf_mac_addr in sAniGetTsmStatsReq

Replace tSirMacAddr with cdf_mac_addr in sAniGetTsmStatsReq.

Change-Id: I1f98fdfdaddf79af848c927d1443dcf6e52bcb54
CRs-Fixed: 898864
Srinivas Girigowda 9 лет назад
Родитель
Сommit
4962a56771
2 измененных файлов с 4 добавлено и 2 удалено
  1. 3 1
      core/mac/inc/sir_api.h
  2. 1 1
      core/sme/src/csr/csr_api_roam.c

+ 3 - 1
core/mac/inc/sir_api.h

@@ -1679,17 +1679,19 @@ typedef struct sAniTrafStrmMetrics {
 	uint8_t RoamingCount;
 	uint16_t RoamingDly;
 } tAniTrafStrmMetrics, *tpAniTrafStrmMetrics;
+
 typedef struct sAniGetTsmStatsReq {
 	/* Common for all types are requests */
 	uint16_t msgType;       /* message type is same as the request type */
 	uint16_t msgLen;        /* length of the entire request */
 	uint8_t staId;
 	uint8_t tid;            /* traffic id */
-	tSirMacAddr bssId;
+	struct cdf_mac_addr bssId;
 	void *tsmStatsCallback;
 	void *pDevContext;      /* device context */
 	void *p_cds_context;    /* cds context */
 } tAniGetTsmStatsReq, *tpAniGetTsmStatsReq;
+
 typedef struct sAniGetTsmStatsRsp {
 	/* Common for all types are responses */
 	uint16_t msgType;       /*

+ 1 - 1
core/sme/src/csr/csr_api_roam.c

@@ -16043,7 +16043,7 @@ CDF_STATUS csr_get_tsm_stats(tpAniSirGlobal pMac,
 	pMsg->msgLen = (uint16_t) sizeof(tAniGetTsmStatsReq);
 	pMsg->staId = staId;
 	pMsg->tid = tid;
-	cdf_mem_copy(pMsg->bssId, bssId.bytes, sizeof(tSirMacAddr));
+	cdf_copy_macaddr(&pMsg->bssId, &bssId);
 	pMsg->tsmStatsCallback = callback;
 	pMsg->pDevContext = pContext;
 	pMsg->p_cds_context = p_cds_context;