Răsfoiți Sursa

qcacld-3.0: Fix csr_get_rts_thresh() context param

Currently csr_get_rts_thresh() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I94d370739cd616b17eea922825417d5e9ab4bd3d
CRs-Fixed: 2255547
Jeff Johnson 6 ani în urmă
părinte
comite
9fbc233881
2 a modificat fișierele cu 3 adăugiri și 5 ștergeri
  1. 1 1
      core/sme/inc/csr_support.h
  2. 2 4
      core/sme/src/csr/csr_util.c

+ 1 - 1
core/sme/inc/csr_support.h

@@ -227,7 +227,7 @@ tSirResultCodes csr_get_disassoc_rsp_status_code(tSirSmeDisassocRsp *
 		pSmeDisassocRsp);
 tSirResultCodes csr_get_de_auth_rsp_status_code(tSirSmeDeauthRsp *pSmeRsp);
 uint32_t csr_get_frag_thresh(tpAniSirGlobal mac_ctx);
-uint32_t csr_get_rts_thresh(tHalHandle hHal);
+uint32_t csr_get_rts_thresh(tpAniSirGlobal mac_ctx);
 eCsrPhyMode csr_get_phy_mode_from_bssDesc(tSirBssDescription *pSirBssDesc);
 uint32_t csr_get11h_power_constraint(tHalHandle hHal,
 		tDot11fIEPowerConstraints *pPowerConstraint);

+ 2 - 4
core/sme/src/csr/csr_util.c

@@ -1703,11 +1703,9 @@ uint32_t csr_get_frag_thresh(tpAniSirGlobal mac_ctx)
 	return mac_ctx->roam.configParam.FragmentationThreshold;
 }
 
-uint32_t csr_get_rts_thresh(tHalHandle hHal)
+uint32_t csr_get_rts_thresh(tpAniSirGlobal mac_ctx)
 {
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-
-	return pMac->roam.configParam.RTSThreshold;
+	return mac_ctx->roam.configParam.RTSThreshold;
 }
 
 static eCsrPhyMode csr_translate_to_phy_mode_from_bss_desc(