From patchwork Sun Jul 2 12:15:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115086 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11549960vqr; Sun, 2 Jul 2023 06:05:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xvJWhykcgRLraHEkn6uLQl9JOY+msEm22IT+r/Cii2MITpcpssej+S/pYH5ttdUAPun+t X-Received: by 2002:a05:6870:d628:b0:1a0:85d3:3d70 with SMTP id a40-20020a056870d62800b001a085d33d70mr7673674oaq.28.1688303135035; Sun, 02 Jul 2023 06:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688303134; cv=none; d=google.com; s=arc-20160816; b=UA6r0acNKtMeiAz1Io3fyJTVjykOspgqdXgCwqvcHf110gU8VhAgNOwnMH8TqxYIv/ fsNA3v2Qq9Da21HpBFA9MsqGy/4XjuHCoWaE4nkew7XWp09WGqSys0ilFItMhnhSSO0G 5cX3wIvVrPPt6xZcdwpFV/O0XM2fcnvM69IUQlOT42wWj7MaonPIrdhoM6VQtFt8jEiF B14XdPMkG1ktokVVV78upZrGwiywErOLsdSpIIDyJNJQ3e1iBkKo0U2CEUSbQEiE8xRA XfyMoXGgZBtpPNO2YkloSV+vaVRW9s4M4XM6sAhfAjtZNJtNBOxa20/T78b7rDl/Fbd9 sStQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=ElAjWn5/waI295uWR/8nnc0O9gRymDhyBEZVAHptXK7LrKNbjWvvSLI6teeDdBKoKr i1QvFsueZ146ZTj84lp4kr/rVVnwCK7/u7Vp1Cxku0oLedQue7OcKzuCSVIN9Jy61KDr XXrKCb+OpCp3Zoql5SJoD5CvzRhAOyyldreXqUG01a8QT1T+gvJmh/ARytZ69HDKfVjg FV9IkVHqg7pp358H35jKzO7v5v9mUk1dMKqQN52qzSJ3tSvhoeFjAePi2EDd2bW3Ke9D Y+0M6ZwSy1I4AUZaQ9lcN0K9g9lFvj4XBLePnkavS4VhGywi63LySeKWt0/QXtUdZnBs 2W1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iyviPkCh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a63ef4b000000b00553d7157e83si16015657pgk.134.2023.07.02.06.05.16; Sun, 02 Jul 2023 06:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iyviPkCh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229821AbjGBMP1 (ORCPT + 99 others); Sun, 2 Jul 2023 08:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjGBMPZ (ORCPT ); Sun, 2 Jul 2023 08:15:25 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8C1E48 for ; Sun, 2 Jul 2023 05:15:25 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b80ddce748so17433975ad.3 for ; Sun, 02 Jul 2023 05:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300125; x=1690892125; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; b=iyviPkChWoFVJ5Q9yfgPuX+wGACeYXOZi7NWTe0N+dGDIm561PvInBcZ1S2r8lhNUE UBZn78lCPe2QaKRB4b5ECsX8ZvliF2d81bAGLpllw1YR3PYOfqzYn5z5SgYtP37k2aKL smrdUfQbiTf+/5t6mYCvMnY8iakmQcq45HNDeMhO/OlVbwjisv+cNo29UrKhJG1s9VTT I+l5d2aUOfzd+MWqi757W8t+pYO4KBfmO59/EnScP5r3EzV9B63jH8bt9rDefOnEXeam jijGpWPah4Z0+kxKRY3Pto1x3WOYgvda0CAqc9sYd4Y242zuiGrQ+VL4S0fnvvICQtKZ o1GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300125; x=1690892125; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; b=gPRKZbLZDH9vtxnRY6QhuDxsjCKT//up4SUYObF1GojJH53+4IbS0UMr6YyeYECcOg tS0wAPQ8lw2YUvwzAJUrrUEE1l5eRp3lL6K8lP9rHGN8xvxGrusGT3MmWQtI/elSKrSD CSRLqOlb9YBTs13qXlflc7J5vjtET51QOo3Or8fyPubPqEvK2+Ft2nfJBhTExPoaNfY7 2nWQM9xU3pSH3w+gB9GI1w7pRU8y+rZQHS69MtkSvSVsUEK38ZyLgozeml7exTf290XF 9RnmkDg5fj/mZYMjcq9BJ7C8KhkADTSWg+eAX4pM+llcXLnjGzM6rXcJDMK2wL8JLoM4 cleQ== X-Gm-Message-State: ABy/qLahsTajV7ovVx6TSLUQ0lRBdhqCfnY4xeR3dFl1+zOja/jHiqWM mNaczu4JY1poOUdJNtV0LO1KdgtmmYE= X-Received: by 2002:a17:90b:50d:b0:262:f798:b60d with SMTP id r13-20020a17090b050d00b00262f798b60dmr5959855pjz.6.1688300124661; Sun, 02 Jul 2023 05:15:24 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id t4-20020a63f344000000b0052c22778e64sm13031137pgj.66.2023.07.02.05.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:15:24 -0700 (PDT) Date: Sun, 2 Jul 2023 17:45:19 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH 1/4] staging: rtl8192e: Rename variable currentRATR Message-ID: <091a5abb231fb5c88d47f329ec3b5133b08d6b23.1688299890.git.yogi.kernel@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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_NONE,SPF_HELO_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770314148321341069?= X-GMAIL-MSGID: =?utf-8?q?1770314148321341069?= Rename variable currentRATR to current_ratr to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 37c275cac40b..14c78f740366 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -277,7 +277,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct r8192_priv *priv = rtllib_priv(dev); struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; - u32 currentRATR, targetRATR = 0; + u32 current_ratr, targetRATR = 0; u32 LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -363,8 +363,8 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) if (priv->rtllib->GetHalfNmodeSupportByAPsHandler(dev)) targetRATR &= 0xf00fffff; - currentRATR = rtl92e_readl(dev, RATR0); - if (targetRATR != currentRATR) { + current_ratr = rtl92e_readl(dev, RATR0); + if (targetRATR != current_ratr) { u32 ratr_value; ratr_value = targetRATR; From patchwork Sun Jul 2 12:15:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11568245vqr; Sun, 2 Jul 2023 06:42:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5z61PC0w6Rb/5iM4xFSqkxe8azfBXwzDf8q+KAQ5ki1uMfKQkbjMNXnqZvFsLQCjQwckL8 X-Received: by 2002:a05:6a21:6d88:b0:11d:322a:ce34 with SMTP id wl8-20020a056a216d8800b0011d322ace34mr7866492pzb.31.1688305335829; Sun, 02 Jul 2023 06:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688305335; cv=none; d=google.com; s=arc-20160816; b=OChld73JIbyxHAg+GjYj5OAJhDcFT6SCYLwCFFtGuIpjyNrYRvCpGLRunLaFKQd1y+ mhSg7/faRSxjx/H/4aI9UmDVC3rKK6XfJJz6Ira/2PT6HXSZ4hHNu2tbQsrzDzsCMc2A 2807kzTmbcXehXWqlTickug6Z5sOVPsZocyk+H1pxUebWZz1RBLc1EmbRH+fYrfxG6Rc kMl7iD2aaRDsn82zN4RwXcaW/u2/FTG/Vx1ZHXklR380XshVlNasYAnuCidUl4I/PpHn pnJ5HR2flaYc70DEkYb8QU8M4hlguuSVg8ZpQEohOQ53Ddako629ScBOtC/RKObrzm+v oq4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ahNrA+kvPkt2jIv1WX2dJh9T0CTy/Hn3rwyQ5h/Idfs=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=VKJiz5dyhAfolHBNC19fwBBZAUx4N1AZcO3Rs2fKTa+erx47/74tDKACK6T1VLxkRR fs1aR9laDfCLIGknX3qxDJkkr5GoI+lq9gkm6p3HLE2Tbv80noZBK7L7cMUMwcNFLNom 7RsOMXSUsbkRIjG46c0S7+aGBmElD85rzHdrrEgl7yCRdi5IRH0E2wxjLPEnPh1f+Qx4 /FeetNHihc6ep4hW8Rr+CBCSJ3gEtNbWcuXFw3Utn3eITZGCZI+QocEQpImxDyDt2QWm xgtrZUfwDdUsFSvYOQi0JdV0+GLpOLzrLKnCOQ1rhQhx+6xkXmH4r0e+J07yUCvtu2D8 b1rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AlxV7Pr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a056a000cd000b00666878f8de7si14868896pfv.397.2023.07.02.06.42.00; Sun, 02 Jul 2023 06:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=AlxV7Pr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229825AbjGBMPy (ORCPT + 99 others); Sun, 2 Jul 2023 08:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGBMPx (ORCPT ); Sun, 2 Jul 2023 08:15:53 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1CC120 for ; Sun, 2 Jul 2023 05:15:53 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b82bf265b2so15624935ad.0 for ; Sun, 02 Jul 2023 05:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300152; x=1690892152; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ahNrA+kvPkt2jIv1WX2dJh9T0CTy/Hn3rwyQ5h/Idfs=; b=AlxV7Pr7eN7wuspl+PZcT1VxCqiyN0Yg1pDvW0lZJqo3S5/r1vX75iVS1psMMjBH0i IV20fVRGlLjs5CwK+9KqPM3dm8rwfUUME08+qFYdCZBvDl91rwHsnMyEjHQPJqlEdAHl QOWC5IwpeA4O+bJRVdsF9xAG1oy7IfTYBmQC41SeaTaPgK/uK7D4kvgJPeFKTaeauqIa LUcB1t52g7xgeaMGCOvKegIu44Tvh4W+dz0HWsmUof7vG9a0CwxMrUjrViQkFkcDhWDZ F++XClhrCQBjH2arYd9xCnOV+hlsWwH5gJRVMqp/JidblIIbDfL8fOOFuaPbdn4tPisH X+uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300152; x=1690892152; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ahNrA+kvPkt2jIv1WX2dJh9T0CTy/Hn3rwyQ5h/Idfs=; b=k4AvTco6jm9/Br6rSL/xn4a+dyo9KeqalH4HS4D0Ro54NdoqB6cbECdArqBFVxqKfo MXvLjYCQEbp/hj7z3HT+wtOlLCV+phevuB6MnIatFlFZYUqL4qH2IKj0iI+p8QUk2wsy LYelTr4kdveKOXu1cRo46275QBTitYqIWEEbalwaa53ttZ6OhohF6rx/TbB538ZNT7Hk 6P5H+3Lm3GTYi5tQC2rS+EMcmL9Lf8i53iIAH7ORVLMtDw4wZ/sWCDzdOUp+2J4pNlNM xprW9m3HWSkULKmFt094XqNGNIC8j4jUJi1bghkfyxiFUJsdH+m3aWZLcXH0ZVgkPyXX OUtA== X-Gm-Message-State: ABy/qLahHByKV3ajSOLQ00DqCTxSkwX95vQuv8uYoeMcUEw2P+tm7AD7 C43Xuv2TlfyFN7EhCEWFn/g= X-Received: by 2002:a17:903:230f:b0:1b8:8679:ab9f with SMTP id d15-20020a170903230f00b001b88679ab9fmr2978629plh.49.1688300152521; Sun, 02 Jul 2023 05:15:52 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id h10-20020a170902748a00b001a98f844e60sm7218474pll.263.2023.07.02.05.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:15:52 -0700 (PDT) Date: Sun, 2 Jul 2023 17:45:47 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH 2/4] staging: rtl8192e: Rename variable targetRATR Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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_NONE,SPF_HELO_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770316456308582456?= X-GMAIL-MSGID: =?utf-8?q?1770316456308582456?= Rename variable targetRATR to target_ratr to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 14c78f740366..a535a63ce9f7 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -277,7 +277,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct r8192_priv *priv = rtllib_priv(dev); struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; - u32 current_ratr, targetRATR = 0; + u32 current_ratr, target_ratr = 0; u32 LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -335,14 +335,14 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) if (priv->undecorated_smoothed_pwdb >= (long)HighRSSIThreshForRA) { pra->ratr_state = DM_RATR_STA_HIGH; - targetRATR = pra->upper_rssi_threshold_ratr; + target_ratr = pra->upper_rssi_threshold_ratr; } else if (priv->undecorated_smoothed_pwdb >= (long)LowRSSIThreshForRA) { pra->ratr_state = DM_RATR_STA_MIDDLE; - targetRATR = pra->middle_rssi_threshold_ratr; + target_ratr = pra->middle_rssi_threshold_ratr; } else { pra->ratr_state = DM_RATR_STA_LOW; - targetRATR = pra->low_rssi_threshold_ratr; + target_ratr = pra->low_rssi_threshold_ratr; } if (pra->ping_rssi_enable) { @@ -352,7 +352,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) (long)pra->ping_rssi_thresh_for_ra) || ping_rssi_state) { pra->ratr_state = DM_RATR_STA_LOW; - targetRATR = pra->ping_rssi_ratr; + target_ratr = pra->ping_rssi_ratr; ping_rssi_state = 1; } } else { @@ -361,18 +361,18 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) } if (priv->rtllib->GetHalfNmodeSupportByAPsHandler(dev)) - targetRATR &= 0xf00fffff; + target_ratr &= 0xf00fffff; current_ratr = rtl92e_readl(dev, RATR0); - if (targetRATR != current_ratr) { + if (target_ratr != current_ratr) { u32 ratr_value; - ratr_value = targetRATR; + ratr_value = target_ratr; ratr_value &= ~(RATE_ALL_OFDM_2SS); rtl92e_writel(dev, RATR0, ratr_value); rtl92e_writeb(dev, UFWP, 1); - pra->last_ratr = targetRATR; + pra->last_ratr = target_ratr; } } else { From patchwork Sun Jul 2 12:16:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115087 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11550951vqr; Sun, 2 Jul 2023 06:06:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXtlJL5Y++TnyZRdcjMdYLonRPmue1FsLm1UFSj9bQLsOBsA12Phd1mXOlLuwruzshCCT6 X-Received: by 2002:a17:902:da92:b0:1b6:9551:e2b8 with SMTP id j18-20020a170902da9200b001b69551e2b8mr9336709plx.34.1688303213249; Sun, 02 Jul 2023 06:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688303213; cv=none; d=google.com; s=arc-20160816; b=StkInglEzNd/qpRxvXvGVnm4ATtcyt/EcyQSV9ZtHjaKmDfyYPF4d4EGcYjgUHvkdn FNZjtjWlOjpWYWBQo/yjJSEe8Mz/W/Pxy0G0DeVgCnsKoaGBwUAmHi1lrqNzMFRYfdDK 8cCq4z14kRlQzX/WJIU/VFdSYW9C5Ssiqmvp5Ut3IBhygErsOyaJJVyc+jhgnTKCeeuH 6hLbLXndN/Ctzpe8pkx7j7tDr0VQlx+/pzP8Yc/F6Zza08wwnJ2Z0tglwC7g44RKHYm0 g7t3X1YeurYZpBlrAPv80sKbrAWi/Ul6nYIfJ3RKGTEEc+aWie/homBxl98Yg67lE/9S YqwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LI5xtyL2k2cBitbepn6US1F6e5Ej9j9z5n1WZ2zQtfs=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=e9LV6q+DbA3kfOIxpul6++gN0P+br6V1sh8RxVkip1XD3YBOqf9vT7UQArZLC0r5Qs ufKw/U1P5rqt2t9etb1Z+LBOKAEVvGtIZE8MRXHQCNvy/GKG8VCCH6de11X3eFM/vd7Y uJwCRpzaflc/nRJQIOMeyHVqAspE6RCx4LJCNoy367VfAUiYfjppuwqwJ5vYBJNtssXC Js/BfKJqL7s1do4qyZFkHvs6qfkAHGG+jUy6AV1h0V+KPtIFNlTeLAn0nRRl26FV+EqN irevnihhtGSKa3XjYlhuAUtiQctBg91LCNAYDLYMZOjFUVjAjjBtuaTHdI55FEvHlQmw pZnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cAi0Aiva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a1709029a4400b001b809828a8fsi12339539plv.366.2023.07.02.06.06.37; Sun, 02 Jul 2023 06:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cAi0Aiva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229852AbjGBMQR (ORCPT + 99 others); Sun, 2 Jul 2023 08:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGBMQR (ORCPT ); Sun, 2 Jul 2023 08:16:17 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B99DE48 for ; Sun, 2 Jul 2023 05:16:16 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b80f2e6c17so28670775ad.0 for ; Sun, 02 Jul 2023 05:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300176; x=1690892176; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LI5xtyL2k2cBitbepn6US1F6e5Ej9j9z5n1WZ2zQtfs=; b=cAi0AivaoyBUmInw7KpCb/jsQAYZS+Rq+v2vjn8Jtq2wlacDU2vUHAwaSlPNyzDod4 UTJWJy7s0Xa3OhUh5xMPWzhh27yf4/vp2lzAe6JJz5Q8+POegERnqiY1hd5jXN8UwV1i pUwapcc6ttM7NjnGdnIzxJQzZlKH13KBiK1+nh4/YEZ37jtPS8baOjBViZJ0Jud3bQ3V HZdMrSYkfhePqAAurgUQTa9HtJHBhULxOUSQnS/xfPh6Hdwg1xuCo+N1ao7XCq5Ucncm LcZR7JRR5cFbQY1XTqHX5UhosyhAMeFEWBTd2YF6fWZY40ZEjQyXR5SThR44aFi1QaQx 0C6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300176; x=1690892176; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LI5xtyL2k2cBitbepn6US1F6e5Ej9j9z5n1WZ2zQtfs=; b=OnTgKMNBSpjHB4Yn8qpBfQLhB9DnrL2lurhOzT76msAvl5gfuHyPtzK41W9jA4iyqZ 8pMpUnjFfwfLoMQ4283Kd4PdHhUbZ4CRfhcuFwNjbpkvJkaRAoTslqozwQxttxv5tiQQ 8Ac6J/MHLS0Fxgra8FTinssftdfD3o8BDlB73VNXfkuM0iT2/tgMmui0LbW3SgCFOqOv 2GIKAro5Je//tEH2/CF33Pmfs5e2DVgkofmMgXmcwEsEyEOiR1ANM0Kn2LugXf2XG32Z 69slCRfBRGXrhnFtHlNqus6drVorFtdvJIPDrUz7/q5sse+dmTuEHQJpNxh2qhyJYZXO fLpg== X-Gm-Message-State: ABy/qLaa2eWcO7RnEDYk5e2P3S7pgYa+vw0FA3yKDol5D0nVuUDNVZeg irjclBmM/L55bCLkJLTmhO0= X-Received: by 2002:a17:902:e9d1:b0:1b5:361:cefe with SMTP id 17-20020a170902e9d100b001b50361cefemr7811279plk.52.1688300175778; Sun, 02 Jul 2023 05:16:15 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id w5-20020a1709027b8500b001ab2592ed33sm13580074pll.171.2023.07.02.05.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:16:15 -0700 (PDT) Date: Sun, 2 Jul 2023 17:46:10 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH 3/4] staging: rtl8192e: Rename variable LowRSSIThreshForRA Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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_NONE,SPF_HELO_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770314230124254884?= X-GMAIL-MSGID: =?utf-8?q?1770314230124254884?= Rename variable LowRSSIThreshForRA to low_rssi_thresh_for_ra to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index a535a63ce9f7..d266d2d047ca 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -278,7 +278,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; u32 current_ratr, target_ratr = 0; - u32 LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0; + u32 low_rssi_thresh_for_ra = 0, HighRSSIThreshForRA = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -320,15 +320,15 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) if (pra->ratr_state == DM_RATR_STA_HIGH) { HighRSSIThreshForRA = pra->high2low_rssi_thresh_for_ra; - LowRSSIThreshForRA = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? + low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } else if (pra->ratr_state == DM_RATR_STA_LOW) { HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; - LowRSSIThreshForRA = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? + low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low2high_rssi_thresh_for_ra40M) : (pra->low2high_rssi_thresh_for_ra20M); } else { HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; - LowRSSIThreshForRA = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? + low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } @@ -337,7 +337,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) pra->ratr_state = DM_RATR_STA_HIGH; target_ratr = pra->upper_rssi_threshold_ratr; } else if (priv->undecorated_smoothed_pwdb >= - (long)LowRSSIThreshForRA) { + (long)low_rssi_thresh_for_ra) { pra->ratr_state = DM_RATR_STA_MIDDLE; target_ratr = pra->middle_rssi_threshold_ratr; } else { From patchwork Sun Jul 2 12:16:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11566744vqr; Sun, 2 Jul 2023 06:38:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlET7uEwY4J7mev7l79X91bX26wxf64McqbW8DudZ/4lw7xDOy5fyL8A+NK88XU+40G0Is52 X-Received: by 2002:a17:902:e5c1:b0:1b8:3dec:48de with SMTP id u1-20020a170902e5c100b001b83dec48demr6752990plf.47.1688305111289; Sun, 02 Jul 2023 06:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688305111; cv=none; d=google.com; s=arc-20160816; b=lPIurUQdYLfkUzzNvQbR5y6rPtRsbzvwmog9CitKvyDzkL8DitQCbAyF9oQZJc9TNY YEK3j2OaeJNfEI4rTRDzhNn06nR7bLSgkYj5XDXonkvhmOymOLxQC7dpfcwS29Yu0DLU RT1arDiLfVMU2nS90y2cge8tmXb3PBf/T2LQ3j8MMSg1c9w9RT5DgULeSjJIAhPHt2Ca UFBfUIsEv6m7UP00vVxBgh4WGRfsFbqLNXKrjiqVKFKpLCEvMn+DPix19tOi4prl+Asb MmCw5URwEG8L12ocVyxuxc/uMjBb0VYiEXLxDNLMmGtlxpJvUIxP9fknRlMHPL5fVJkX Z5Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=H5QomowvGLfbuTY0U8g955u/PkWHESz0hw5Of/KSrJT5xxsmCqyKGxDweZ717MHtu1 VpX+W5fVLvc+Mi5lYdQoDABvIPo1feFtlJjm6ea086mCAk7EyC9xikH4O+DIpTOBYHGe 09Pos+e4JzYhO9ZZAiUripfTfKwq0p3at3lBVrZB88BLONASN0HcG8pf+irqr3ZOUUuy II1KSOZ3jywOcs4EtsUfHqER11TR5fCGACXyFP19a/Sh5YuHE5OoUB5pnpDB6AZG5fem uwNXYfye+7NJeOPQRa7Lyr/AVPVr/OF6ZgC+SZgZT2uD8x9/tWU+Wdfml3js0j0mNOja mC9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="V1hzgS4/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx14-20020a170902f94e00b001b8971cb759si97288plb.525.2023.07.02.06.38.05; Sun, 02 Jul 2023 06:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="V1hzgS4/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229876AbjGBMQx (ORCPT + 99 others); Sun, 2 Jul 2023 08:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjGBMQw (ORCPT ); Sun, 2 Jul 2023 08:16:52 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF13E6E for ; Sun, 2 Jul 2023 05:16:51 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-55ac628e3cfso1817107a12.3 for ; Sun, 02 Jul 2023 05:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300211; x=1690892211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; b=V1hzgS4/XWWDCxQpuSOHCIQ+CVOJQjNF8gAU38/f6S2UUXXiozgcfZLiPK8GHvtsPs ksVjJc9vdWqGQjoCxM7nRGCotaLa/qiP/1GEflpj1iDj0Mn9R5U01GTD4acDea6N3zka Ir8xSk6NAg+hsDBK2zeo15Z+MfwCOt0FC3VXVcTGEmBx2Y+VD6o9FEOXEdhdxtLWwuQZ kx1CnZBbmCOMwSQ5hDKARD/lkGOYvixxfSVaTsCzEILyVmTg4zI3zzRLfNCQwU/4kuuI DGhHZyhRcYplupxTSQYUzP3DPlkQcsGi66K9eH4E+pye3qOn2XBB6Mj7VfeJ5wdOpIdw krqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300211; x=1690892211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; b=Pn9RYDBWELvvOelCTjr+k+L07N20PHL+1JhvGpXnSw/UyDmaLzPzfszWdK5m/pBAAJ XySGOGO5X/WSxwDbUpYX6Cdja1Dn/cjdKGOpLS/Sw01IqD4lhAgd4Y3GVAmGPmLWUKXa 8uEBqpWMNvsBBDoUyYJgM1s34z1kCuSBHp82rNCdxP6j5Y7v00maMf6ZIU4yilkGvuY9 Xp9tyvXZG2N+oVbv9NmLUpOYDBGgpF5pefByvOMcrFwvijB5JmURwbsnCOsgUZqxd4l4 GRazykww6e8GeUsxPlmVuAtwOWjdqWddhRVUBTQs1T73uhSFv+0CFuurruZEun4lSBXA 8bUw== X-Gm-Message-State: ABy/qLa3+BMNsN5MzxJ/weMsapIkShihIn91FNtZyisRDraUYN12bJ60 0XAe4syNfOueTeo9fhidyc0= X-Received: by 2002:a05:6a20:3257:b0:12c:1193:a563 with SMTP id hm23-20020a056a20325700b0012c1193a563mr5580459pzc.58.1688300210710; Sun, 02 Jul 2023 05:16:50 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id t18-20020aa79392000000b0063d24fcc2b7sm6636965pfe.1.2023.07.02.05.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:16:50 -0700 (PDT) Date: Sun, 2 Jul 2023 17:46:45 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH 4/4] staging: rtl8192e: Rename variable HighRSSIThreshForRA Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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_NONE,SPF_HELO_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770316220372477614?= X-GMAIL-MSGID: =?utf-8?q?1770316220372477614?= Rename variable HighRSSIThreshForRA to high_rssi_thresh_for_ra to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index d266d2d047ca..dbf765d601b3 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -278,7 +278,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; u32 current_ratr, target_ratr = 0; - u32 low_rssi_thresh_for_ra = 0, HighRSSIThreshForRA = 0; + u32 low_rssi_thresh_for_ra = 0, high_rssi_thresh_for_ra = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -319,21 +319,21 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) ((bshort_gi_enabled) ? BIT31 : 0); if (pra->ratr_state == DM_RATR_STA_HIGH) { - HighRSSIThreshForRA = pra->high2low_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high2low_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } else if (pra->ratr_state == DM_RATR_STA_LOW) { - HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low2high_rssi_thresh_for_ra40M) : (pra->low2high_rssi_thresh_for_ra20M); } else { - HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } if (priv->undecorated_smoothed_pwdb >= - (long)HighRSSIThreshForRA) { + (long)high_rssi_thresh_for_ra) { pra->ratr_state = DM_RATR_STA_HIGH; target_ratr = pra->upper_rssi_threshold_ratr; } else if (priv->undecorated_smoothed_pwdb >=