diff --git a/core/hdd/src/wlan_hdd_hostapd_wext.c b/core/hdd/src/wlan_hdd_hostapd_wext.c index a71adb4474..f49a66a19d 100644 --- a/core/hdd/src/wlan_hdd_hostapd_wext.c +++ b/core/hdd/src/wlan_hdd_hostapd_wext.c @@ -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"); diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 8108d5ad99..61218eba28 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -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");