Prechádzať zdrojové kódy

qcacld-3.0: Rename HDD variable targetRate

The Linux Coding Style frowns upon mixed-case names so rename HDD
local variable targetRate to be compliant.

Change-Id: Ifa8a5dbece67267bd6012e19fd8f3e58c9ffd551
CRs-Fixed: 2408520
Jeff Johnson 6 rokov pred
rodič
commit
b3f8043918

+ 3 - 3
core/hdd/src/wlan_hdd_ioctl.c

@@ -2724,7 +2724,7 @@ static int hdd_parse_get_cckm_ie(uint8_t *command, uint8_t **cckm_ie,
 }
 }
 #endif /* FEATURE_WLAN_ESE */
 #endif /* FEATURE_WLAN_ESE */
 
 
-int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int targetRate)
+int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int target_rate)
 {
 {
 	tSirRateUpdateInd rateUpdate = {0};
 	tSirRateUpdateInd rateUpdate = {0};
 	QDF_STATUS status;
 	QDF_STATUS status;
@@ -2753,9 +2753,9 @@ int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int targetRate)
 	rateUpdate.nss = (bval == 0) ? 0 : 1;
 	rateUpdate.nss = (bval == 0) ? 0 : 1;
 
 
 	rateUpdate.dev_mode = adapter->device_mode;
 	rateUpdate.dev_mode = adapter->device_mode;
-	rateUpdate.mcastDataRate24GHz = targetRate;
+	rateUpdate.mcastDataRate24GHz = target_rate;
 	rateUpdate.mcastDataRate24GHzTxFlag = 1;
 	rateUpdate.mcastDataRate24GHzTxFlag = 1;
-	rateUpdate.mcastDataRate5GHz = targetRate;
+	rateUpdate.mcastDataRate5GHz = target_rate;
 	rateUpdate.bcastDataRate = -1;
 	rateUpdate.bcastDataRate = -1;
 	qdf_copy_macaddr(&rateUpdate.bssid, &adapter->mac_addr);
 	qdf_copy_macaddr(&rateUpdate.bssid, &adapter->mac_addr);
 	hdd_debug("MC Target rate %d, mac = %pM, dev_mode %s(%d)",
 	hdd_debug("MC Target rate %d, mac = %pM, dev_mode %s(%d)",

+ 2 - 2
core/hdd/src/wlan_hdd_ioctl.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2012-2014, 2017-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2014, 2017-2019 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -26,7 +26,7 @@
 extern struct sock *cesium_nl_srv_sock;
 extern struct sock *cesium_nl_srv_sock;
 
 
 int hdd_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
 int hdd_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
-int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int targetRate);
+int wlan_hdd_set_mc_rate(struct hdd_adapter *adapter, int target_rate);
 
 
 /**
 /**
  * hdd_update_smps_antenna_mode() - set smps and antenna mode
  * hdd_update_smps_antenna_mode() - set smps and antenna mode