From patchwork Tue Oct 27 11:40:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 7496361 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 544789F36A for ; Tue, 27 Oct 2015 11:40:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E12520595 for ; Tue, 27 Oct 2015 11:40:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8915820592 for ; Tue, 27 Oct 2015 11:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754087AbbJ0Lkx (ORCPT ); Tue, 27 Oct 2015 07:40:53 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:33155 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753543AbbJ0Lkw (ORCPT ); Tue, 27 Oct 2015 07:40:52 -0400 Received: by pabla5 with SMTP id la5so27614071pab.0 for ; Tue, 27 Oct 2015 04:40:52 -0700 (PDT) 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=ZKbjauEkVOif6yToGh3/eo+mQy7hMLS/BzMd8jPayUU=; b=jYN4JRzXwBnN1Fnk98JgKD8wZXZka3mDVYIlemJ/oEd5jBM5x9A6lWf/Npk+tkPhdu HIwug/e8MJS4Ck7fIKELe29FEGtwSKSyOApZTyfVwdEcvsOOFIqWlGP2dllw4d9ljtnP Pyahkt0f+/zoTP2TdqGoVJGGQ6zK5ue7+k2VnrxZQERXL+DbxKvxjOrrRZ1F3SznKmBg gHM9UExEsOulrbbwoJYv8/A+bQSabGaD+TUPhykzGU5E+TzrueS5uE8QSbunxcCzDH2T gLyrwKOAn/UXKNIFNNjbBI0pbcoF3OjbsbRimEstoS1S9nh/2epzogR94G0J94qXSXnh EnJQ== X-Received: by 10.69.2.164 with SMTP id bp4mr27692723pbd.109.1445946052136; Tue, 27 Oct 2015 04:40:52 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id si10sm39382512pab.15.2015.10.27.04.40.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Oct 2015 04:40:51 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@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 3/8] staging: wilc1000: rename pu8WepKey in host_int_add_wep_key_bss_sta Date: Tue, 27 Oct 2015 20:40:34 +0900 Message-Id: <1445946039-10390-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1445946039-10390-1-git-send-email-chaehyun.lim@gmail.com> References: <1445946039-10390-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 changes pu8WepKey to key that is second argument of host_int_add_wep_key_bss_sta to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 702b7c8..1cb2095 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3158,7 +3158,7 @@ int host_int_set_wep_default_key(struct host_if_drv *hif_drv, u8 index) } int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv, - const u8 *pu8WepKey, + const u8 *key, u8 u8WepKeylen, u8 u8Keyidx) { @@ -3178,7 +3178,7 @@ int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv, msg.body.key_info.action = ADDKEY; msg.drv = hif_drv; msg.body.key_info.attr.wep.key = kmalloc(u8WepKeylen, GFP_KERNEL); - memcpy(msg.body.key_info.attr.wep.key, pu8WepKey, u8WepKeylen); + memcpy(msg.body.key_info.attr.wep.key, key, u8WepKeylen); msg.body.key_info.attr.wep.key_len = (u8WepKeylen); msg.body.key_info.attr.wep.index = u8Keyidx; diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 3579aac..55a7274 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -405,7 +405,7 @@ int host_int_set_wep_default_key(struct host_if_drv *hif_drv, u8 index); * @date 8 March 2012 * @version 1.0 */ -int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv, const u8 *pu8WepKey, u8 u8WepKeylen, u8 u8Keyidx); +int host_int_add_wep_key_bss_sta(struct host_if_drv *hif_drv, const u8 *key, u8 u8WepKeylen, u8 u8Keyidx); /** * @brief host_int_add_wep_key_bss_ap * @details valid only in AP mode if External Supplicant support is enabled.