qcacld-3.0: Rename HDD identifier pLinkSpeed
The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename HDD identifier pLinkSpeed to be compliant. Change-Id: I04db9da2cba615d9a216a9eab40d1a07c73c33fb CRs-Fixed: 2417587
Esse commit está contido em:
@@ -2434,7 +2434,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
|
||||
{
|
||||
struct hdd_adapter *adapter = (netdev_priv(dev));
|
||||
struct hdd_context *hdd_ctx;
|
||||
char *pLinkSpeed = (char *)extra;
|
||||
char *out_link_speed = (char *)extra;
|
||||
uint32_t link_speed = 0;
|
||||
int len = sizeof(uint32_t) + 1;
|
||||
struct qdf_mac_addr mac_address;
|
||||
@@ -2507,7 +2507,7 @@ int __iw_get_softap_linkspeed(struct net_device *dev,
|
||||
/* linkspeed in units of 500 kbps */
|
||||
link_speed = link_speed / 500;
|
||||
wrqu->data.length = len;
|
||||
rc = snprintf(pLinkSpeed, len, "%u", link_speed);
|
||||
rc = snprintf(out_link_speed, len, "%u", link_speed);
|
||||
if ((rc < 0) || (rc >= len)) {
|
||||
/* encoding or length error? */
|
||||
hdd_err("Unable to encode link speed");
|
||||
|
@@ -3707,7 +3707,7 @@ static int __iw_get_linkspeed(struct net_device *dev,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
||||
char *pLinkSpeed = (char *)extra;
|
||||
char *out_link_speed = (char *)extra;
|
||||
int len = sizeof(uint32_t) + 1;
|
||||
uint32_t link_speed = 0;
|
||||
struct hdd_context *hdd_ctx;
|
||||
@@ -3731,7 +3731,7 @@ static int __iw_get_linkspeed(struct net_device *dev,
|
||||
|
||||
wrqu->data.length = len;
|
||||
/* return the linkspeed as a string */
|
||||
rc = snprintf(pLinkSpeed, len, "%u", link_speed);
|
||||
rc = snprintf(out_link_speed, len, "%u", link_speed);
|
||||
if ((rc < 0) || (rc >= len)) {
|
||||
/* encoding or length error? */
|
||||
hdd_err("Unable to encode link speed");
|
||||
|
Referência em uma nova issue
Block a user