From patchwork Tue Feb 20 14:57:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 10230185 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 01AFA602B1 for ; Tue, 20 Feb 2018 14:58:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D649D205F6 for ; Tue, 20 Feb 2018 14:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CADA921BED; Tue, 20 Feb 2018 14:58:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59536205F6 for ; Tue, 20 Feb 2018 14:58:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752146AbeBTO6R (ORCPT ); Tue, 20 Feb 2018 09:58:17 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:3080 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751763AbeBTO6Q (ORCPT ); Tue, 20 Feb 2018 09:58:16 -0500 X-IronPort-AV: E=Sophos;i="5.46,539,1511852400"; d="scan'208";a="9401449" Received: from exsmtp03.microchip.com (HELO email.microchip.com) ([198.175.253.49]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Feb 2018 07:58:17 -0700 Received: from ajaysk-VirtualBox.mchp-main.com (10.10.76.4) by chn-sv-exch03.mchp-main.com (10.10.76.49) with Microsoft SMTP Server id 14.3.352.0; Tue, 20 Feb 2018 07:58:15 -0700 From: Ajay Singh To: CC: , , , , , , , Ajay Singh Subject: [PATCH 02/12] staging: wilc1000: rename ptstrJoinBssParam to avoid camelCase Date: Tue, 20 Feb 2018 20:27:51 +0530 Message-ID: <1519138681-1982-3-git-send-email-ajay.kathat@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519138681-1982-1-git-send-email-ajay.kathat@microchip.com> References: <1519138681-1982-1-git-send-email-ajay.kathat@microchip.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix "Avoid camelCase" issue found by checkpatch.pl script. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/host_interface.c | 78 +++++++++++++++---------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index f3a56e5..0f1eb17 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -909,7 +909,7 @@ static s32 handle_connect(struct wilc_vif *vif, struct wid wid_list[8]; u32 wid_cnt = 0, dummyval = 0; u8 *cur_byte = NULL; - struct join_bss_param *ptstrJoinBssParam; + struct join_bss_param *bss_param; struct host_if_drv *hif_drv = vif->hif_drv; if (memcmp(pstrHostIFconnectAttr->bssid, wilc_connected_ssid, ETH_ALEN) == 0) { @@ -918,8 +918,8 @@ static s32 handle_connect(struct wilc_vif *vif, return result; } - ptstrJoinBssParam = pstrHostIFconnectAttr->params; - if (!ptstrJoinBssParam) { + bss_param = pstrHostIFconnectAttr->params; + if (!bss_param) { netdev_err(vif->ndev, "Required BSSID not found\n"); result = -ENOENT; goto ERRORHANDLER; @@ -1031,8 +1031,8 @@ static s32 handle_connect(struct wilc_vif *vif, netdev_err(vif->ndev, "Channel out of range\n"); *(cur_byte++) = 0xFF; } - *(cur_byte++) = (ptstrJoinBssParam->cap_info) & 0xFF; - *(cur_byte++) = ((ptstrJoinBssParam->cap_info) >> 8) & 0xFF; + *(cur_byte++) = (bss_param->cap_info) & 0xFF; + *(cur_byte++) = ((bss_param->cap_info) >> 8) & 0xFF; if (pstrHostIFconnectAttr->bssid) memcpy(cur_byte, pstrHostIFconnectAttr->bssid, 6); @@ -1042,57 +1042,57 @@ static s32 handle_connect(struct wilc_vif *vif, memcpy(cur_byte, pstrHostIFconnectAttr->bssid, 6); cur_byte += 6; - *(cur_byte++) = (ptstrJoinBssParam->beacon_period) & 0xFF; - *(cur_byte++) = ((ptstrJoinBssParam->beacon_period) >> 8) & 0xFF; - *(cur_byte++) = ptstrJoinBssParam->dtim_period; + *(cur_byte++) = (bss_param->beacon_period) & 0xFF; + *(cur_byte++) = ((bss_param->beacon_period) >> 8) & 0xFF; + *(cur_byte++) = bss_param->dtim_period; - memcpy(cur_byte, ptstrJoinBssParam->supp_rates, MAX_RATES_SUPPORTED + 1); + memcpy(cur_byte, bss_param->supp_rates, MAX_RATES_SUPPORTED + 1); cur_byte += (MAX_RATES_SUPPORTED + 1); - *(cur_byte++) = ptstrJoinBssParam->wmm_cap; - *(cur_byte++) = ptstrJoinBssParam->uapsd_cap; + *(cur_byte++) = bss_param->wmm_cap; + *(cur_byte++) = bss_param->uapsd_cap; - *(cur_byte++) = ptstrJoinBssParam->ht_capable; - hif_drv->usr_conn_req.ht_capable = ptstrJoinBssParam->ht_capable; + *(cur_byte++) = bss_param->ht_capable; + hif_drv->usr_conn_req.ht_capable = bss_param->ht_capable; - *(cur_byte++) = ptstrJoinBssParam->rsn_found; - *(cur_byte++) = ptstrJoinBssParam->rsn_grp_policy; - *(cur_byte++) = ptstrJoinBssParam->mode_802_11i; + *(cur_byte++) = bss_param->rsn_found; + *(cur_byte++) = bss_param->rsn_grp_policy; + *(cur_byte++) = bss_param->mode_802_11i; - memcpy(cur_byte, ptstrJoinBssParam->rsn_pcip_policy, sizeof(ptstrJoinBssParam->rsn_pcip_policy)); - cur_byte += sizeof(ptstrJoinBssParam->rsn_pcip_policy); + memcpy(cur_byte, bss_param->rsn_pcip_policy, sizeof(bss_param->rsn_pcip_policy)); + cur_byte += sizeof(bss_param->rsn_pcip_policy); - memcpy(cur_byte, ptstrJoinBssParam->rsn_auth_policy, sizeof(ptstrJoinBssParam->rsn_auth_policy)); - cur_byte += sizeof(ptstrJoinBssParam->rsn_auth_policy); + memcpy(cur_byte, bss_param->rsn_auth_policy, sizeof(bss_param->rsn_auth_policy)); + cur_byte += sizeof(bss_param->rsn_auth_policy); - memcpy(cur_byte, ptstrJoinBssParam->rsn_cap, sizeof(ptstrJoinBssParam->rsn_cap)); - cur_byte += sizeof(ptstrJoinBssParam->rsn_cap); + memcpy(cur_byte, bss_param->rsn_cap, sizeof(bss_param->rsn_cap)); + cur_byte += sizeof(bss_param->rsn_cap); *(cur_byte++) = REAL_JOIN_REQ; - *(cur_byte++) = ptstrJoinBssParam->noa_enabled; + *(cur_byte++) = bss_param->noa_enabled; - if (ptstrJoinBssParam->noa_enabled) { - *(cur_byte++) = (ptstrJoinBssParam->tsf) & 0xFF; - *(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 8) & 0xFF; - *(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 16) & 0xFF; - *(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 24) & 0xFF; + if (bss_param->noa_enabled) { + *(cur_byte++) = (bss_param->tsf) & 0xFF; + *(cur_byte++) = ((bss_param->tsf) >> 8) & 0xFF; + *(cur_byte++) = ((bss_param->tsf) >> 16) & 0xFF; + *(cur_byte++) = ((bss_param->tsf) >> 24) & 0xFF; - *(cur_byte++) = ptstrJoinBssParam->opp_enabled; - *(cur_byte++) = ptstrJoinBssParam->idx; + *(cur_byte++) = bss_param->opp_enabled; + *(cur_byte++) = bss_param->idx; - if (ptstrJoinBssParam->opp_enabled) - *(cur_byte++) = ptstrJoinBssParam->ct_window; + if (bss_param->opp_enabled) + *(cur_byte++) = bss_param->ct_window; - *(cur_byte++) = ptstrJoinBssParam->cnt; + *(cur_byte++) = bss_param->cnt; - memcpy(cur_byte, ptstrJoinBssParam->duration, sizeof(ptstrJoinBssParam->duration)); - cur_byte += sizeof(ptstrJoinBssParam->duration); + memcpy(cur_byte, bss_param->duration, sizeof(bss_param->duration)); + cur_byte += sizeof(bss_param->duration); - memcpy(cur_byte, ptstrJoinBssParam->interval, sizeof(ptstrJoinBssParam->interval)); - cur_byte += sizeof(ptstrJoinBssParam->interval); + memcpy(cur_byte, bss_param->interval, sizeof(bss_param->interval)); + cur_byte += sizeof(bss_param->interval); - memcpy(cur_byte, ptstrJoinBssParam->start_time, sizeof(ptstrJoinBssParam->start_time)); - cur_byte += sizeof(ptstrJoinBssParam->start_time); + memcpy(cur_byte, bss_param->start_time, sizeof(bss_param->start_time)); + cur_byte += sizeof(bss_param->start_time); } cur_byte = wid_list[wid_cnt].val;