From patchwork Thu Feb 25 00:15:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8415271 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2B87B9F2F0 for ; Thu, 25 Feb 2016 00:16:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37C74202EB for ; Thu, 25 Feb 2016 00:16:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3618B202E6 for ; Thu, 25 Feb 2016 00:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756602AbcBYAQE (ORCPT ); Wed, 24 Feb 2016 19:16:04 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35016 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbcBYAQD (ORCPT ); Wed, 24 Feb 2016 19:16:03 -0500 Received: by mail-pa0-f50.google.com with SMTP id ho8so22086141pac.2 for ; Wed, 24 Feb 2016 16:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tJ4wkwexS2w3eSAiLacWxMtdL8sMK1FsO2q9/w0L5+A=; b=KRjXTdXFolkXAqmY1kkWAUE4pjQs44RkNeSp88nFaDoUrcv1Uffg7Py3b4LyN3/87g KCY51I5BxWZR3vzRkCWj74VogUCIf7RjJCWb14FBXrEl8wuRdk34kx83/GSTyiEO+Run yaUhn2WH0hbGpqk03teHRSSepQtoXwJhEED8grTwz9Qq/k/yNfceqkGZHsK90xqvAcnq 3l7jd6yitNm1Ai4U1ehiUiXzXSIZOKfTs2WnBLlQHIGy0mFuXRTRME+rNK7Mmdfr21tD EKIXVjV8qg+dgHmY/4yuB7bQwZfoDvJw1EkSjctpwob7zp/thxfTtlGMMHmVbdGqO7Yp mjpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tJ4wkwexS2w3eSAiLacWxMtdL8sMK1FsO2q9/w0L5+A=; b=RR4cR1ddpXeoqYLSM7o4t5lro4tFbm+0AhJ7KrmtuiMnsNn51JKcYd0aBPv43xxhgd O/MyKA+/cWjvv7uMU2jDSQO2l6zE3x+f0Lenu93qgci5U3nHrEzNP6+0YabH7YL88qi7 Ozs5Yjs8tIAFl4Ave4yhcT9n4ZX2I4swnsHWiWr8CXO2yP4nVnycU+bOQWXBSY6myFHK J6fJsCdLwr/dZVVKXs9TYXvDsdbXwIfGgpJCBnf9ojwR0+Od4ZbML+laJIg1mC1Snuge fE3m3ICsRTg9qkqpLRvggf601o0XClGt8aPiQpRMTY37Cx4Zyc7PfSV+fih1J74d5O4a awHw== X-Gm-Message-State: AG10YORTF4yqE+NbQA851qxrII4jpd7Jlgifwe0lyr+U1hBfIWBuxYCtzJJQfRACtXN6Og== X-Received: by 10.67.7.1 with SMTP id cy1mr59474374pad.123.1456359362849; Wed, 24 Feb 2016 16:16:02 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id h66sm7476150pfd.91.2016.02.24.16.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 16:16:02 -0800 (PST) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 2/9] staging: wilc1000: rename au8bssid in struct connect_info Date: Thu, 25 Feb 2016 09:15:43 +0900 Message-Id: <1456359350-17118-2-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456359350-17118-1-git-send-email-chaehyun.lim@gmail.com> References: <1456359350-17118-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch renames au8bssid to bssid to remove au8 prefix in struct connect_info. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h index 0f39bc8..a32f466 100644 --- a/drivers/staging/wilc1000/coreconfigurator.h +++ b/drivers/staging/wilc1000/coreconfigurator.h @@ -106,7 +106,7 @@ struct connect_resp_info { }; struct connect_info { - u8 au8bssid[6]; + u8 bssid[6]; u8 *pu8ReqIEs; size_t ReqIEsLen; u8 *pu8RespIEs; diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index b093304..4a1bad8 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -1155,7 +1155,7 @@ ERRORHANDLER: if (pstrHostIFconnectAttr->result) { if (pstrHostIFconnectAttr->bssid) - memcpy(strConnectInfo.au8bssid, pstrHostIFconnectAttr->bssid, 6); + memcpy(strConnectInfo.bssid, pstrHostIFconnectAttr->bssid, 6); if (pstrHostIFconnectAttr->ies) { strConnectInfo.ReqIEsLen = pstrHostIFconnectAttr->ies_len; @@ -1260,7 +1260,7 @@ static s32 Handle_ConnectTimeout(struct wilc_vif *vif) if (hif_drv->usr_conn_req.conn_result) { if (hif_drv->usr_conn_req.bssid) { - memcpy(strConnectInfo.au8bssid, + memcpy(strConnectInfo.bssid, hif_drv->usr_conn_req.bssid, 6); } @@ -1492,7 +1492,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif, } if (hif_drv->usr_conn_req.bssid) { - memcpy(strConnectInfo.au8bssid, hif_drv->usr_conn_req.bssid, 6); + memcpy(strConnectInfo.bssid, hif_drv->usr_conn_req.bssid, 6); if ((u8MacStatus == MAC_CONNECTED) && (strConnectInfo.u16ConnectStatus == SUCCESSFUL_STATUSCODE)) { diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 52553a5..1605199 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -521,12 +521,12 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent, bool bNeedScanRefresh = false; u32 i; - memcpy(priv->au8AssociatedBss, pstrConnectInfo->au8bssid, ETH_ALEN); + memcpy(priv->au8AssociatedBss, pstrConnectInfo->bssid, ETH_ALEN); for (i = 0; i < last_scanned_cnt; i++) { if (memcmp(last_scanned_shadow[i].bssid, - pstrConnectInfo->au8bssid, + pstrConnectInfo->bssid, ETH_ALEN) == 0) { unsigned long now = jiffies; @@ -543,7 +543,7 @@ static void CfgConnectResult(enum conn_event enuConnDisconnEvent, refresh_scan(priv, 1, true); } - cfg80211_connect_result(dev, pstrConnectInfo->au8bssid, + cfg80211_connect_result(dev, pstrConnectInfo->bssid, pstrConnectInfo->pu8ReqIEs, pstrConnectInfo->ReqIEsLen, pstrConnectInfo->pu8RespIEs, pstrConnectInfo->u16RespIEsLen, u16ConnectStatus, GFP_KERNEL);