Преглед изворни кода

qcacld-3.0: Remove unused csr_is_ssid_in_list() param

The hHal parameter to csr_is_ssid_in_list() is unused, so remove it.

Change-Id: I8b08acb52e719f393543da593ddc421965c8b6c0
CRs-Fixed: 2255483
Jeff Johnson пре 6 година
родитељ
комит
b9307a930e
3 измењених фајлова са 6 додато и 8 уклоњено
  1. 1 2
      core/sme/inc/csr_support.h
  2. 4 4
      core/sme/src/csr/csr_api_roam.c
  3. 1 2
      core/sme/src/csr/csr_util.c

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

@@ -256,8 +256,7 @@ bool csr_is_ssid_equal(tHalHandle hHal, tSirBssDescription *pSirBssDesc1,
 		tSirBssDescription *pSirBssDesc2,
 		tDot11fBeaconIEs *pIes2);
 /* Null ssid means match */
-bool csr_is_ssid_in_list(tHalHandle hHal, tSirMacSSid *pSsid,
-		tCsrSSIDs *pSsidList);
+bool csr_is_ssid_in_list(tSirMacSSid *pSsid, tCsrSSIDs *pSsidList);
 bool csr_is_profile_wpa(struct csr_roam_profile *pProfile);
 bool csr_is_profile_rsn(struct csr_roam_profile *pProfile);
 /*

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

@@ -8784,8 +8784,9 @@ QDF_STATUS csr_roam_connect(tpAniSirGlobal pMac, uint32_t sessionId,
 	csr_roam_remove_duplicate_command(pMac, sessionId, NULL, eCsrHddIssued);
 	/* Check whether ssid changes */
 	if (csr_is_conn_state_connected(pMac, sessionId) &&
-			pProfile->SSIDs.numOfSSIDs && !csr_is_ssid_in_list(pMac,
-			&pSession->connectedProfile.SSID, &pProfile->SSIDs))
+	    pProfile->SSIDs.numOfSSIDs &&
+	    !csr_is_ssid_in_list(&pSession->connectedProfile.SSID,
+				 &pProfile->SSIDs))
 		csr_roam_issue_disassociate_cmd(pMac, sessionId,
 					eCSR_DISCONNECT_REASON_UNSPECIFIED);
 	/*
@@ -8991,8 +8992,7 @@ csr_roam_reassoc(tpAniSirGlobal mac_ctx, uint32_t session_id,
 	if (csr_is_conn_state_connected(mac_ctx, session_id)) {
 		if (profile) {
 			if (profile->SSIDs.numOfSSIDs &&
-			    csr_is_ssid_in_list(mac_ctx,
-						&session->connectedProfile.SSID,
+			    csr_is_ssid_in_list(&session->connectedProfile.SSID,
 						&profile->SSIDs)) {
 				fCallCallback = false;
 			} else {

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

@@ -5307,8 +5307,7 @@ bool csr_is_ssid_match(tpAniSirGlobal pMac, uint8_t *ssid1, uint8_t ssid1Len,
 }
 
 /* Null ssid means match */
-bool csr_is_ssid_in_list(tHalHandle hHal, tSirMacSSid *pSsid,
-			 tCsrSSIDs *pSsidList)
+bool csr_is_ssid_in_list(tSirMacSSid *pSsid, tCsrSSIDs *pSsidList)
 {
 	bool fMatch = false;
 	uint32_t i;