Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp582315rdf; Tue, 21 Nov 2023 10:15:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEIKXsuq950p3D8qaG3vLUVsbNy/e1EEFgu/ZjS/WpCkUAwON6FLa8BnxmEqX/4VQ9syKq X-Received: by 2002:a17:90b:1984:b0:280:9074:eb36 with SMTP id mv4-20020a17090b198400b002809074eb36mr12321150pjb.14.1700590556710; Tue, 21 Nov 2023 10:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700590556; cv=none; d=google.com; s=arc-20160816; b=Ee2brtZxVw7Edb38VsP+8C2Y3ER+QM2h7mL75PzBz9OHoBtknxsmZ6diYgLE/2TU03 P8DKWRmMI/WvSZDFM5rJyYTjGdfDfFB10yoD9f+Cp7CHN3JCD3qjj4ifUrjG5iuJMP0m XcI1G8gYsEp1VWEsEnreqmmFhelkaerytXMeJv43E+w2gMRt7/GP3+f7aSm1CIiEY571 NCBpFC4yuuzXFacykzw+qQPB1WBiYIb2cC4bTyVkHbfSjvLl3jybjmOm7KdxJy0jp0ym VuOLVYDgoe0NrE+nWoOkKupm3K3EfZtLK/+u9GbDjEX5uIIqMO/D9b/ug4XDB7ArIwqc vhlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=yt9x+GFYOOcz+oCAtF66VyzySg0BOpnmmsYizNQZV7o=; fh=N6kOWzzoyFx46KhufQEFsHexRnrKpkm1lLeFNNXuCFg=; b=kfseuW4YsubxDSmwZtnhwbu0Fi6JDWCTxYDAzEK/qmQlDYIKHwleP9Mxk8Jp+5R1js kbQ5ceg3sc8T/Jfz0T5Qm3Lvh1IvCSm71k3toVEYhPQTui0H/upeP5EqKUASGT+//zTk RGo9UcGJr8DSzrlbRqz0zopPD+9XRMnoMewOBAN49cnhlLtirzpEJxAKS9xjlQCqTetm xeGtFU5HPjYHpkp7W11/8NbiDg1rJY3StOQQ8frMbpiMpssPiqZHeL3eZOhi4bi1MgZC gaQF0Pl5eeZ63Z3WMwcjqICkvJbXb1X1SO2sKa4ceaPKxeRGkeRarl0G21W1SjkuoNP1 NSKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b=Tx6OyUJ6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=JdTrRogR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id pf2-20020a17090b1d8200b00282ecadd91csi14072696pjb.15.2023.11.21.10.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:15:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b=Tx6OyUJ6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=JdTrRogR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 08218805ECED; Tue, 21 Nov 2023 10:15:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234384AbjKUSPI (ORCPT + 99 others); Tue, 21 Nov 2023 13:15:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234438AbjKUSPE (ORCPT ); Tue, 21 Nov 2023 13:15:04 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A07D54 for ; Tue, 21 Nov 2023 10:15:00 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id ADA2E3201926; Tue, 21 Nov 2023 13:14:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 21 Nov 2023 13:15:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1700590499; x= 1700676899; bh=yt9x+GFYOOcz+oCAtF66VyzySg0BOpnmmsYizNQZV7o=; b=T x6OyUJ6siGMgLCOSlmMPRlcgewz5t6hllwuUkz31sW6YbxKQnQcLEXxU2OTol58x ADSE55fjgZJSM1xaQk924oyU9AOCfKQnJP6uwV7GBIzXpB4+CMDSKGyzmeOOp8Yl jCTY9qJ3MC5IzcY0stT6Jcvm/JDK6nbt8zQWSFrr9kvrVZcvnMSTd6Kdf1ZAores sJvw3RZ5EFHOmWdYTiyefeEbbEarAvMsxnZx7Cf1WifUVRHD2hmIn89611Ju6OgP sQer1t6TIHUFvioXnUZQ5z4dMQE6BCsQJMtaq4bszIKCl6+058NsaVPobkqxNJk/ 1OfFy51seUH9vG4x55aQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1700590499; x= 1700676899; bh=yt9x+GFYOOcz+oCAtF66VyzySg0BOpnmmsYizNQZV7o=; b=J dTrRogRjZog6Npk/fbuHWmNvQ+yXoM/hVJddWN3g47j1QhftGeW1Q6Wpr4TPzYoI XCe+mPfRT/brI2EXx6HKoZfoYh3xxRTkphSmjrrobOiFUMtKweEnem+inJYR9D3G 3lH3wM0cI5Sid5O6XQnbhRVfusW5GRFUrQ5S6IAUEb81ltZyMx+xYuKZ38s/fTmy 1TItTanJjtNrRLXaKjUaxXXftZkZg3myiL33PN0tF2jlLd0jgHm2X6nZTUjodqWi XKy8iH35lMVlpIdo4ffznSCDIXqujYPZzYQLJgyXtBlhe7jjUCzJqUhQs+oOMlHZ Yxtzo87lvaM+prTx0mW3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegledguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Nov 2023 13:14:58 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH 3/5] staging: rtl8192e: renamed variable IsHTHalfNmodeAPs Date: Tue, 21 Nov 2023 13:14:33 -0500 Message-ID: <20231121181435.9337-4-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231121181435.9337-1-garyrookard@fastmail.org> References: <20231121181435.9337-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:15:20 -0800 (PST) Renamed from Pascal/CamelCase to Snake case the variable IsHTHalfNmodeAPs. ISHTHalfNmodeAPs -> is_ht_half_nmode_aps Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index fb8294f31a60..0993263c13d3 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -139,7 +139,7 @@ u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate) return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate & 0xf]; } -bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) +bool is_ht_half_nmode_aps(struct rtllib_device *ieee) { bool retValue = false; struct rtllib_network *net = &ieee->current_network; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 0226a69f40c3..6b549629087b 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1782,7 +1782,7 @@ extern u8 MCS_FILTER_ALL[]; extern u16 MCS_DATA_RATE[2][2][77]; u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame); void HTResetIOTSetting(struct rt_hi_throughput *ht_info); -bool IsHTHalfNmodeAPs(struct rtllib_device *ieee); +bool is_ht_half_nmode_aps(struct rtllib_device *ieee); u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate); int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb); int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb); diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 42d652fe8601..89bc38774fa7 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -1872,7 +1872,7 @@ static void rtllib_rx_auth_resp(struct rtllib_device *ieee, struct sk_buff *skb) ieee->softmac_stats.rx_auth_rs_ok++; if (!(ieee->ht_info->iot_action & HT_IOT_ACT_PURE_N_MODE)) { if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) { - if (IsHTHalfNmodeAPs(ieee)) { + if (is_ht_half_nmode_aps(ieee)) { bSupportNmode = true; bHalfSupportNmode = true; } else { -- 2.41.0