소스 검색

qcacld-3.0: Rename pMac in csr_save_tx_power_to_cfg()

Change Ib55b211e4fdab427aff8c04c8ac99e1af56c6edc ("qcacld-3.0: Rename
pMac in csr_api_scan.c ") previously renamed all instances of pMac in
csr_api_scan.c to align with the Linux coding style.

Subsequently change Iac183da52495aca07c6270edeb9f383ab49c1ff5
("qcacld-3.0: Add CFG items of power") reintroduced pMac in function
csr_save_tx_power_to_cfg(), so once again rename it in that function.

Change-Id: I5272cf71c422618ae0e3c042a99f7728192321f2
CRs-Fixed: 2420015
Jeff Johnson 6 년 전
부모
커밋
61b5089770
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      core/sme/src/csr/csr_api_scan.c

+ 8 - 8
core/sme/src/csr/csr_api_scan.c

@@ -1512,7 +1512,7 @@ static void csr_set_cfg_valid_channel_list(struct mac_context *mac,
 /*
  * The Tx power limits are saved in the cfg for future usage.
  */
-static void csr_save_tx_power_to_cfg(struct mac_context *pMac,
+static void csr_save_tx_power_to_cfg(struct mac_context *mac,
 				     tDblLinkList *pList,
 				     enum band_info band)
 {
@@ -1570,7 +1570,7 @@ static void csr_save_tx_power_to_cfg(struct mac_context *pMac,
 				ch_pwr_set->numChannels = 1;
 				ch_pwr_set->maxTxPower =
 					QDF_MIN(ch_set->txPower,
-					pMac->mlme_cfg->power.max_tx_power);
+					mac->mlme_cfg->power.max_tx_power);
 				sme_debug(
 					"Setting Max Transmit Power %d",
 					ch_pwr_set->maxTxPower);
@@ -1592,24 +1592,24 @@ static void csr_save_tx_power_to_cfg(struct mac_context *pMac,
 				ch_pwr_set->firstChanNum);
 			ch_pwr_set->numChannels = ch_set->numChannels;
 			ch_pwr_set->maxTxPower = QDF_MIN(ch_set->txPower,
-					pMac->mlme_cfg->power.max_tx_power);
+					mac->mlme_cfg->power.max_tx_power);
 			sme_debug(
 				"Setting Max Tx Power %d, nTxPower %d",
 				ch_pwr_set->maxTxPower,
-				pMac->mlme_cfg->power.max_tx_power);
+				mac->mlme_cfg->power.max_tx_power);
 			cbLen += sizeof(tSirMacChanInfo);
 			ch_pwr_set++;
 		}
 		pEntry = csr_ll_next(pList, pEntry, LL_ACCESS_LOCK);
 	}
 	if (band == BAND_2G)
-		qdf_mem_copy(pMac->mlme_cfg->power.max_tx_power_24.data,
+		qdf_mem_copy(mac->mlme_cfg->power.max_tx_power_24.data,
 			     (uint8_t *)p_buf,
-			     pMac->mlme_cfg->power.max_tx_power_24.len);
+			     mac->mlme_cfg->power.max_tx_power_24.len);
 	if (band == BAND_5G)
-		qdf_mem_copy(pMac->mlme_cfg->power.max_tx_power_5.data,
+		qdf_mem_copy(mac->mlme_cfg->power.max_tx_power_5.data,
 			     (uint8_t *)p_buf,
-			     pMac->mlme_cfg->power.max_tx_power_5.len);
+			     mac->mlme_cfg->power.max_tx_power_5.len);
 	qdf_mem_free(p_buf);
 }