From 7d419fa2a914b15ffa925df033c650b5cda57ea6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 31 Mar 2019 14:38:50 -0700 Subject: [PATCH] qcacld-3.0: Rename HDD identifier numInterfaces The Linux Coding Style frowns upon mixed-case names so rename HDD identifier numInterfaces to be compliant. Change-Id: Ie2cb20a4446b02ef1c4724f4cdecc90c6aba7b82 CRs-Fixed: 2427183 --- core/hdd/src/wlan_hdd_oemdata.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/hdd/src/wlan_hdd_oemdata.c b/core/hdd/src/wlan_hdd_oemdata.c index 5105999dfe..b65fb7ec20 100644 --- a/core/hdd/src/wlan_hdd_oemdata.c +++ b/core/hdd/src/wlan_hdd_oemdata.c @@ -182,7 +182,7 @@ static void send_oem_reg_rsp_nlink_msg(void) struct nlmsghdr *nlh; tAniMsgHdr *ani_hdr; uint8_t *buf; - uint8_t *numInterfaces; + uint8_t *num_interfaces; uint8_t *device_mode; uint8_t *vdevId; struct hdd_adapter *adapter; @@ -212,8 +212,8 @@ static void send_oem_reg_rsp_nlink_msg(void) * - one byte for vdev id */ buf = (char *)((char *)ani_hdr + sizeof(tAniMsgHdr)); - numInterfaces = buf++; - *numInterfaces = 0; + num_interfaces = buf++; + *num_interfaces = 0; /* Iterate through each adapter and fill device mode and vdev id */ hdd_for_each_adapter(p_hdd_ctx, adapter) { @@ -221,14 +221,14 @@ static void send_oem_reg_rsp_nlink_msg(void) vdevId = buf++; *device_mode = adapter->device_mode; *vdevId = adapter->vdev_id; - (*numInterfaces)++; - hdd_debug("numInterfaces: %d, device_mode: %d, vdevId: %d", - *numInterfaces, *device_mode, + (*num_interfaces)++; + hdd_debug("num_interfaces: %d, device_mode: %d, vdevId: %d", + *num_interfaces, *device_mode, *vdevId); } ani_hdr->length = - sizeof(uint8_t) + (*numInterfaces) * 2 * sizeof(uint8_t); + sizeof(uint8_t) + (*num_interfaces) * 2 * sizeof(uint8_t); nlh->nlmsg_len = NLMSG_LENGTH((sizeof(tAniMsgHdr) + ani_hdr->length)); skb_put(skb, NLMSG_SPACE((sizeof(tAniMsgHdr) + ani_hdr->length)));