ソースを参照

qcacld-3.0: Fix csr_retrieve_rsn_ie() context param

Currently csr_retrieve_rsn_ie() 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: Ie410ef70ed38c569f1203f59a4fc8ce4ee30400d
CRs-Fixed: 2255547
Jeff Johnson 6 年 前
コミット
c8f9b6789b
2 ファイル変更6 行追加7 行削除
  1. 5 5
      core/sme/inc/csr_support.h
  2. 1 2
      core/sme/src/csr/csr_util.c

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

@@ -266,12 +266,12 @@ bool csr_is_profile_rsn(struct csr_roam_profile *pProfile);
 /*
  * If a RSNIE exists in the profile, just use it. Or
  * else construct one from the BSS Caller allocated memory for pWpaIe and
- * guarrantee it can contain a max length WPA IE
+ * guarantee it can contain a max length WPA IE
  */
-uint8_t csr_retrieve_rsn_ie(tHalHandle hHal, uint32_t sessionId,
-		struct csr_roam_profile *pProfile,
-		tSirBssDescription *pSirBssDesc,
-		tDot11fBeaconIEs *pIes, tCsrRSNIe *pRsnIe);
+uint8_t csr_retrieve_rsn_ie(tpAniSirGlobal pMac, uint32_t sessionId,
+			    struct csr_roam_profile *pProfile,
+			    tSirBssDescription *pSirBssDesc,
+			    tDot11fBeaconIEs *pIes, tCsrRSNIe *pRsnIe);
 #ifdef FEATURE_WLAN_WAPI
 /*
  * If a WAPI IE exists in the profile, just use it.

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

@@ -4662,12 +4662,11 @@ uint8_t csr_retrieve_wpa_ie(tpAniSirGlobal pMac,
  * one from the BSS Caller allocated memory for pWpaIe and guarrantee
  * it can contain a max length WPA IE
  */
-uint8_t csr_retrieve_rsn_ie(tHalHandle hHal, uint32_t sessionId,
+uint8_t csr_retrieve_rsn_ie(tpAniSirGlobal pMac, uint32_t sessionId,
 			    struct csr_roam_profile *pProfile,
 			    tSirBssDescription *pSirBssDesc,
 			    tDot11fBeaconIEs *pIes, tCsrRSNIe *pRsnIe)
 {
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
 	uint8_t cbRsnIe = 0;
 
 	do {