Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5446058rdb; Wed, 13 Dec 2023 08:52:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/AgZdDBq+iZUQWcZ7Ynpa08by1YK83QsUOp88LWmXkAWxFaR2Efbw2Tpfgu/MaQvwq/TI X-Received: by 2002:a05:6a20:158b:b0:190:3295:e1a2 with SMTP id h11-20020a056a20158b00b001903295e1a2mr11806740pzj.90.1702486337137; Wed, 13 Dec 2023 08:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702486337; cv=none; d=google.com; s=arc-20160816; b=xsL9mXKSv85AdgSBI78Ew4thTVV3Ta2z6RohaU3V8Glg0oJ+ZP6kTWdFBRTfxWgiVe 4fzssQVBlntOCmZ5fCnjuEU6aOxJ2RvfWk3GOcfN4RRty2GfTNUr6uWq4QqbH3jC+rtY QxOH4fXpgFIn4IoITPwm/H0c9AM4hD6hBUBWMDIxXS9OcOnhpPB2nQkBdezgdyebxXqq 5TW172HLz3ySm5yW65QHL96Sss/2IWpIZULdsGvZ5dx/LqFMdDO2Oo4BkRIOYeMig5vQ JHCvjTMNX1wuZ4v5h/+uGsx3ZBqSgBOH/2y6cJ8uICP2hb+09nLcA2x0DgfdVaQ8r2+3 NZEw== 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:to:from:date:dkim-signature; bh=eXXlT7BTSZdbME0dg+FI046fx4EL208vm6bp8OzrrlY=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=qa5WHelr/WYqW/hO6/ObisUMpNq/f4PQgBDl3qW33/HAaGBvFl02NQQrAZ8nxW6SUB j33TvmOTQPkDZH7xg0qMqKtA/b1rK+QR3+MwSAUBqPL0CPh95Bk+lwTAd7/npRVyJ0ch H7GPWFWuN2L3uVZmoUJdw5/LU5rrIi581r8txQzrCrBf+VkKV8UxhP5hUPXA2++se/wt I6pLj/CL+//FBaBqjN5EsptgraMZ53qYA1KddWqZWjEOyRQrGblVgqac7q80TjhNbZcu 3WZrpIMocq12KwCsJTc65nX4kiuVoiiEJ9WvNFtaUaBy/6s+JeIq1zL+0esPeijxATO/ /c3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hCeeZDLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o13-20020a65614d000000b00578db6172fdsi9643706pgv.325.2023.12.13.08.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hCeeZDLo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B825781AA51A; Wed, 13 Dec 2023 08:52:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378717AbjLMQvz (ORCPT + 99 others); Wed, 13 Dec 2023 11:51:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378953AbjLMQvw (ORCPT ); Wed, 13 Dec 2023 11:51:52 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 962F38E for ; Wed, 13 Dec 2023 08:51:58 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a1c6dad2dd0so223974166b.1 for ; Wed, 13 Dec 2023 08:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702486317; x=1703091117; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eXXlT7BTSZdbME0dg+FI046fx4EL208vm6bp8OzrrlY=; b=hCeeZDLoNdsrCJlJ1KhLdTBsh1JRB5SWGxtnEhqIhVm32BxXu3VAum+PQiSR6tevk7 a7nkU+xJETzbu5oP7MVXtA9FFML398l8NQ+PQ+qZ9PdBG0b5zDsIssMguM/EyGuy/SOG EiL0vQ66l/P5Pf9Tl2FFCUtASEVCdQR1KzwrGyaWIVnXgITQJeWEXyl+Vfffbu8/xkLg jCLDTNpvnEVCB5iYyyjfWoVPun5V2jX8jjPp0NEXAz2xkzCf+b9OqBSUqUZRgYqmyyCn Mrf9x4UMKAxzFa7xmZLfAekeWGoNhXVGEUfCPL9icZie7T+wvEjXyWAHbyBMDZb9qEeS Ff7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702486317; x=1703091117; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eXXlT7BTSZdbME0dg+FI046fx4EL208vm6bp8OzrrlY=; b=ivGJ3QfYgHvdMC2pB8+Z1q8i+XVIXJ7tMjaJoOJxLuaN7Hm5LqyPs3+aFdmcutNQr5 u0AcHRQUGxvCVPrhqpDPIiY46zQfYVLu2VY7nuQFvrEm1zO9OpcLJalhYQy5eAhDNjzA t/+1n0nLwqTuFz9Bpx2el+WYLHjgFygWXkG/Y3+iudRauWF/5SKR3yF8u3ZC12wU/hLz HxiGUHF0GRuqvnRCVXQ0mNjXw1dztgSSPHvVnIlkS6URkJE5p5IakQSsZBW6LQF9Hiou oJQMGrvrsgfwYQy8YT2/7RlwxgbbD3QEL+vs2hheEzKrOZ039Ya3pBt8SFy9Wn/5p/os IsVQ== X-Gm-Message-State: AOJu0YwtC8vTbT4FRHAw6TVARceQ/2E7mRnQ2Qtlu4EKCUbfapZfxEjU KMa9LNErdx4I0DAVWf1qHa2ckOpb3ZA= X-Received: by 2002:a17:907:a789:b0:9e6:c282:5bd5 with SMTP id vx9-20020a170907a78900b009e6c2825bd5mr8721352ejc.3.1702486317003; Wed, 13 Dec 2023 08:51:57 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id vu8-20020a170907a64800b00a1d5c52d628sm8044926ejc.3.2023.12.13.08.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:51:56 -0800 (PST) Date: Wed, 13 Dec 2023 17:51:54 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] staging: rtl8192e: Remove constant variable self_mimo_ps Message-ID: <9e1bec657ddb22eec54e441a4341ddbe4ed7568e.1702406712.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:52:14 -0800 (PST) Remove constant variable self_mimo_ps and replace it at the place of usage with the value. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - drivers/staging/rtl8192e/rtl819x_HTProc.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index ff0eb0d01022..eb2cfeab97d6 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -112,7 +112,6 @@ struct rt_hi_throughput { u8 forced_mpdu_density; u8 forced_short_gi; u8 current_op_mode; - u8 self_mimo_ps; u8 peer_mimo_ps; enum ht_extchnl_offset CurSTAExtChnlOffset; u8 cur_tx_bw40mhz; diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 379934a71f87..71d5b6f32869 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -77,9 +77,6 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->ampdu_factor = 2; ht_info->mpdu_density = 0; - ht_info->self_mimo_ps = 3; - if (ht_info->self_mimo_ps == 2) - ht_info->self_mimo_ps = 3; ieee->tx_dis_rate_fallback = 0; ieee->tx_use_drv_assinged_rate = 0; @@ -266,7 +263,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *posHTCap, else pCapELE->ChlWidth = 1; - pCapELE->MimoPwrSave = pHT->self_mimo_ps; + pCapELE->MimoPwrSave = 3; pCapELE->GreenField = 0; pCapELE->ShortGI20Mhz = 1; pCapELE->ShortGI40Mhz = 1; -- 2.43.0