Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5361620imm; Tue, 21 Aug 2018 10:23:15 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzQDjMG+yI0UHmETXjgWIQrttZ88EfhOXO8nvd+vU2O0MA9ix1/Az6FiMLJ0JMjBLfaOxkU X-Received: by 2002:a62:4308:: with SMTP id q8-v6mr54161056pfa.86.1534872195546; Tue, 21 Aug 2018 10:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534872195; cv=none; d=google.com; s=arc-20160816; b=X4Ehu+0pWNYNMMK78ITZMFiKCazb/i3Lz14rN3XVW/jEPFZe4So4iixlPFKvTIyGAH a7diJZzklq6IGKr1KMdOBg7GkS840MeQulK9bpUZAvOahY8KZ2TQeL7TtQYrf45fWupk ohVmO5/J3EhHC3ytDF/3USTETKbUiU5fHmPpzu+ulIw0KEZd9uAwAtUokvDJkMOzMSzW alE7To64DAiEzFJmp/PGM8KwoGPU7osQW/64vuRI7Ym/zwg34Yqjbc0f788od7URDHHj K3aDihIhPUNQIuwM4rhp+P2v0Ml3ovFu7nXIumZHe62E458Nhly7xd57qpRPWIQrtoLG S2ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=LidCv53AIP8clD6UJBXbfi59ivURG2LEZHmOreronVc=; b=btD+UOLdZFyo5BEwJF2pvYY1V4q0q+pnV21fgm6Y+ZA2Yuoul5PTop1re07JotOqcb joPuOUY/aMElzTXvrp2txwkbiNqbydeTBYMnEVzLn0SpgUUfUo16gfeqcMtXlvEwYJoJ c0qTQ5GX3/O9RyTT61WzmqkZi2mEdXQ8I5AQBiaY5y1ulCBnJf7WEeaHfRL5a+VFr/P3 lYSajKJWzKrGEflQZixdDGe19YCn4s+pog56s/95WlvAjT58bBFabt2Uf/axWxfXyKQj VN0OGbh0Np3McYSYOW2ZQXV37IKKT1buU3sudvbpczjbeME2GuFY7UxhvDpjfawgCks4 8b3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZTdEH4Nr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si13028135pld.79.2018.08.21.10.23.00; Tue, 21 Aug 2018 10:23:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZTdEH4Nr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727760AbeHUUl1 (ORCPT + 99 others); Tue, 21 Aug 2018 16:41:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35888 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbeHUUgs (ORCPT ); Tue, 21 Aug 2018 16:36:48 -0400 Received: by mail-wm0-f66.google.com with SMTP id w24-v6so3538388wmc.1 for ; Tue, 21 Aug 2018 10:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LidCv53AIP8clD6UJBXbfi59ivURG2LEZHmOreronVc=; b=ZTdEH4Nr21zQyoJlZpNJa5Irb0c91Cb0fNhgqKTtsPymwGIZD0JwdrsNoqzrFBK/xc VjRqTb7Pq7mJ/czxSf+B2MeXEl4JueCrDGXN2GgM/ceM2zeeabdK5hEAvuiE+6xnNwI1 42InFiNQyyHkKpVFCEIT3juQI6Kv4MO8fwhGSE3VDbrb5bZOXKOdEI39JEnPwl8wXvSO 45ZMFAjqGUx3SMvLEueQUs1awPZYVOkPccF26clBBqEgjnX8Hwe09Hmd3ctI2sX2m2RR W1RkxqQTWKaC5PdG1023RV1xuEcpZhOs0Cb/Qbft3jH1ly/cjFruKvDW8IDYlm0XYNvR JVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LidCv53AIP8clD6UJBXbfi59ivURG2LEZHmOreronVc=; b=ZDeNVWe4GG/Z51OVn9kjfJxqkNIhgkRDHjDFnLx8D48OuOdKJ/nF/jP0mr3ybjf+CP tWGywLPKRIIGuoJ+C2k0jb7kqhA7b5LwLYVKCo8BiHVWGgV5J5+6nSMEbv/KmGyZbT8Y qqFZ30T9sQJ6WE0QRDm/ZxMMXWOWH8pCVshDsY0dSbQpYtIMU6WzpZDJOCEM4q437i3S bddU5iexHMd1tlzcIWfUvlgxGMfIUeSmFOPe6KEFMIsfqqt5nSrasN5SFCPZ0hFmbA0+ wkglg3B2HzD7LZ75+p6KgMKffgt2NbaquEd/hUbpNJ6MOvrqiBk/YtfgKbmJg6wMkhM7 d+cg== X-Gm-Message-State: APzg51AkHvNtxEE/tCFcr1ragUQWWLb5x6OQhXN+iwjvR+qbHPAMc0sA 8812/kYOEFS91SlpHNgnMI3cM+39ZeI= X-Received: by 2002:a1c:c019:: with SMTP id q25-v6mr175858wmf.148.1534871746845; Tue, 21 Aug 2018 10:15:46 -0700 (PDT) Received: from localhost.localdomain (host86-148-21-150.range86-148.btcentralplus.com. [86.148.21.150]) by smtp.gmail.com with ESMTPSA id 88-v6sm7564292wrf.95.2018.08.21.10.15.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 10:15:46 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, John Whitmore Subject: [PATCH 04/17] staging:rtl8192u: Rename member variables - Style Date: Tue, 21 Aug 2018 18:15:24 +0100 Message-Id: <20180821171537.9330-5-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180821171537.9330-1-johnfwhitmore@gmail.com> References: <20180821171537.9330-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename the member variables FragNum and SeqNum. This change clears a checkpatch issue with CamelCase naming. This is a coding style change and should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_BA.h | 4 ++-- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c index cc4049de975d..a61e3805437d 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c @@ -342,7 +342,7 @@ static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee, } else if (!pTxTs->using_ba) { - if (SN_LESS(pTxTs->tx_admitted_ba_record.BaStartSeqCtrl.field.SeqNum, (pTxTs->tx_cur_seq + 1) % 4096)) + if (SN_LESS(pTxTs->tx_admitted_ba_record.BaStartSeqCtrl.field.seq_num, (pTxTs->tx_cur_seq + 1) % 4096)) pTxTs->using_ba = true; else goto FORCED_AGG_SETTING; diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_BA.h b/drivers/staging/rtl8192u/ieee80211/rtl819x_BA.h index ec9bbddca3de..6bbabd9e6562 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_BA.h +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_BA.h @@ -25,8 +25,8 @@ struct ieee80211_ADDBA_Req{ union sequence_control { u16 short_data; struct { - u16 FragNum:4; - u16 SeqNum:12; + u16 frag_num:4; + u16 seq_num:12; } field; }; diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c index 6a95b47aa595..643fd891f476 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c @@ -630,7 +630,7 @@ TsInitAddBA( // BufferSize: This need to be set according to A-MPDU vector pBA->BaParamSet.field.BufferSize = 32; // BufferSize: This need to be set according to A-MPDU vector pBA->BaTimeoutValue = 0; // Timeout value: Set 0 to disable Timer - pBA->BaStartSeqCtrl.field.SeqNum = (pTS->tx_cur_seq + 3) % 4096; // Block Ack will start after 3 packets later. + pBA->BaStartSeqCtrl.field.seq_num = (pTS->tx_cur_seq + 3) % 4096; // Block Ack will start after 3 packets later. ActivateBAEntry(ieee, pBA, BA_SETUP_TIMEOUT); -- 2.18.0