Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1823809pxb; Sat, 16 Oct 2021 21:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzfwc8avIDqnbUi8g3Ry856D+/a5lX4PBGw533yZXsD/h/0303rLD42tkDVBq+S2+sc3G5 X-Received: by 2002:a17:90a:7d0a:: with SMTP id g10mr39153948pjl.73.1634445438870; Sat, 16 Oct 2021 21:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634445438; cv=none; d=google.com; s=arc-20160816; b=SrlD6HyW5vOfFRKKGqLDTFjaF/8cckdRWBG55FbpKrfWlKi3kia+i0CjDUPfh+ngH8 AC9kcPCFRctGzkcyk0X3ZRm2IJEJ2Slvj3MrEkU/pZtL4NaL1TWj7wmCE3W8BHTFnGDa LA7o2jw4jlRladgrJae+nRHs1jF5Z6M4GrI5vB4nb6ZTD/977rs0rZF/EkuCKERIkdDF 17a9ZqGFW3r9Lh7GzGIWT5lOeJDojsyS016J5zH/T8P6QyQFdIznrYIvhygMQk6sHkz7 dzuvbgRmQoKpoMBCccokVcfEEGFvGyIhF/5PHbgjZWgnYFwEO8plY28h6UzmHrlJlK7t eQCg== 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 :dkim-signature; bh=FZ3AjY9NzrSEpOSGYQgp06cuEE/nwnpuRkFbzAwkn88=; b=yMHZhiSnG2v4wjfEd851VJqd/CzXO117Ft97Ix0n2hDv2KQAAZtibJyzsIIITMB26w Yj4b41eVsNon3W622aNoSveNFmpgWclR86sb5aXfFs98bVGlXWozfdwoPC1ZM1lrwQUM zcHwOlYw3g1q26D/oAWLHF4JijNckSt+iM1LUw/g5d6JwiQrWu5KHe8O2mRSEYxBRcrf me2OlEmlikKL69tUjOOzErD0JDjANmVo/Hj8lvN/1l7Vu0zt1Z4mreL1ZETqs7nyNJ/V cpxIVWTjJWJRtG3Hq2iT97WovXe7poL0tw0RLLhxUiGUIE5iavQPTxKGytwJYmf5OoHo k6ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gZi5vv7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g187si13835543pgc.615.2021.10.16.21.36.53; Sat, 16 Oct 2021 21:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gZi5vv7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241387AbhJOQhZ (ORCPT + 99 others); Fri, 15 Oct 2021 12:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241260AbhJOQhY (ORCPT ); Fri, 15 Oct 2021 12:37:24 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2C3C061570 for ; Fri, 15 Oct 2021 09:35:17 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id e3so27242827wrc.11 for ; Fri, 15 Oct 2021 09:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FZ3AjY9NzrSEpOSGYQgp06cuEE/nwnpuRkFbzAwkn88=; b=gZi5vv7ziBin0FEsKqnoGFrOItzJ0j2yyyub2k0kANtCVNEOuE1J8tr7OdVFUzXn8K c5w3SNljcTmhp94pl4Uvmj42sxGiXXm4ApClZKylJXymqgcgJBAsLcjexaRnIzqKOmgB 7fT+fMy4sUJN/B43n9RM8v5PuGH/nEH3ZSUT5zmSGSyIpymWXdUTN0VTGAFdt/aymW/S zKvamMozAc33lRGOHdIdehvRpJXXMbmkrxPzQdbOz2gSaWaA9jbZhAhwtYEpyGAI+F/0 TvN8UnBzOepoVmwOHVZ+wiWcY/LdPGR+PWpeJlCYeJI/ngYgqvbfONy6KcOjpFTzJVdE W7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FZ3AjY9NzrSEpOSGYQgp06cuEE/nwnpuRkFbzAwkn88=; b=F5WkpC7LaeHHiAiWWyFu+ufnU+gyhLudFDfE8Fs1ZGRbRon0DOWg7jmtGR+cHLpI+C VCJC5fyGqibKgVf/zbeiGXAFkJ3zHxh1x3LQh2vcuyFlaX/UtJy0gNEWja0e42ULFOUW p1d5t8TD6aVD/LzdPUf9kUWSOqs16EWE189k/OQonUoSRJEKjbQYVOIoUJFz6wOEGvVn kV2X25fm1IX6aoFcOKzHyDXs53uOMxmDjj0UiaxlFBGk4VKl9/vgtA/cdQugTGqA70ch JBTDDD7g79WhqC+Y4w1YKcuiLUlVw5lezEI8YSAQyeEAetGZCvmmmDF66UN+JBEnQSvP uTcQ== X-Gm-Message-State: AOAM531yCo51AY3NjguXSgW49+rbusBnTR2sYv6H+oGm+wsFim2330eu zKIzhb4iXnbI7ghrSTOAExeLBZvU3tY= X-Received: by 2002:adf:fa8f:: with SMTP id h15mr15680108wrr.323.1634315716091; Fri, 15 Oct 2021 09:35:16 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:3b88::ad78]) by smtp.gmail.com with ESMTPSA id c17sm5489593wrq.4.2021.10.15.09.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 09:35:15 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 1/7] staging: r8188eu: remove empty functions from odm.c Date: Fri, 15 Oct 2021 18:35:01 +0200 Message-Id: <20211015163507.9091-2-straube.linux@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211015163507.9091-1-straube.linux@gmail.com> References: <20211015163507.9091-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove empty functions from odm.c. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/hal/odm.c | 32 ------------------- drivers/staging/r8188eu/hal/odm_HWConfig.c | 7 +--- drivers/staging/r8188eu/include/odm.h | 7 ---- drivers/staging/r8188eu/include/odm_precomp.h | 2 -- 4 files changed, 1 insertion(+), 47 deletions(-) diff --git a/drivers/staging/r8188eu/hal/odm.c b/drivers/staging/r8188eu/hal/odm.c index 2178ffe41bb3..627213392795 100644 --- a/drivers/staging/r8188eu/hal/odm.c +++ b/drivers/staging/r8188eu/hal/odm.c @@ -196,13 +196,9 @@ void ODM_DMWatchdog(struct odm_dm_struct *pDM_Odm) (pDM_Odm->AntDivType == CGCS_RX_HW_ANTDIV) || (pDM_Odm->AntDivType == CG_TRX_SMART_ANTDIV)) odm_HwAntDiv(pDM_Odm); - else if (pDM_Odm->AntDivType == CGCS_RX_SW_ANTDIV) - odm_SwAntDivChkAntSwitch(pDM_Odm, SWAW_STEP_PEAK); ODM_TXPowerTrackingCheck(pDM_Odm); odm_EdcaTurboCheck(pDM_Odm); - - odm_dtc(pDM_Odm); } /* Init /.. Fixed HW value. Only init time. */ @@ -1023,29 +1019,6 @@ void ODM_TXPowerTrackingCheck(struct odm_dm_struct *pDM_Odm) /* We select left antenna as default antenna in initial process, modify it as needed */ /* */ -/* 3============================================================ */ -/* 3 SW Antenna Diversity */ -/* 3============================================================ */ -void ODM_SwAntDivChkPerPktRssi(struct odm_dm_struct *pDM_Odm, u8 StationID, struct odm_phy_status_info *pPhyInfo) -{ -} - -void odm_SwAntDivChkAntSwitch(struct odm_dm_struct *pDM_Odm, u8 Step) -{ -} - -void ODM_SwAntDivRestAfterLink(struct odm_dm_struct *pDM_Odm) -{ -} - -void odm_SwAntDivChkAntSwitchCallback(struct timer_list *t) -{ -} - -/* 3============================================================ */ -/* 3 SW Antenna Diversity */ -/* 3============================================================ */ - void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm) { if (!(pDM_Odm->SupportAbility & ODM_BB_ANT_DIV)) @@ -1228,8 +1201,3 @@ void ODM_SingleDualAntennaDefaultSetting(struct odm_dm_struct *pDM_Odm) pDM_SWAT_Table->ANTA_ON = true; pDM_SWAT_Table->ANTB_ON = true; } - -/* Justin: According to the current RRSI to adjust Response Frame TX power, 2012/11/05 */ -void odm_dtc(struct odm_dm_struct *pDM_Odm) -{ -} diff --git a/drivers/staging/r8188eu/hal/odm_HWConfig.c b/drivers/staging/r8188eu/hal/odm_HWConfig.c index b76aa93573dc..3d639b2720b2 100644 --- a/drivers/staging/r8188eu/hal/odm_HWConfig.c +++ b/drivers/staging/r8188eu/hal/odm_HWConfig.c @@ -376,13 +376,8 @@ static void ODM_PhyStatusQuery_92CSeries(struct odm_dm_struct *dm_odm, { odm_RxPhyStatus92CSeries_Parsing(dm_odm, pPhyInfo, pPhyStatus, pPktinfo, adapt); - if (dm_odm->RSSI_test) { - /* Select the packets to do RSSI checking for antenna switching. */ - if (pPktinfo->bPacketToSelf || pPktinfo->bPacketBeacon) - ODM_SwAntDivChkPerPktRssi(dm_odm, pPktinfo->StationID, pPhyInfo); - } else { + if (!dm_odm->RSSI_test) odm_Process_RSSIForDM(dm_odm, pPhyInfo, pPktinfo); - } } void ODM_PhyStatusQuery(struct odm_dm_struct *dm_odm, diff --git a/drivers/staging/r8188eu/include/odm.h b/drivers/staging/r8188eu/include/odm.h index 187f872d09b5..435626f05fd2 100644 --- a/drivers/staging/r8188eu/include/odm.h +++ b/drivers/staging/r8188eu/include/odm.h @@ -875,16 +875,11 @@ void ODM_SetAntenna(struct odm_dm_struct *pDM_Odm, u8 Antenna); void ODM_RF_Saving(struct odm_dm_struct *pDM_Odm, u8 bForceInNormal); -void ODM_SwAntDivRestAfterLink(struct odm_dm_struct *pDM_Odm); - void ODM_TXPowerTrackingCheck(struct odm_dm_struct *pDM_Odm); bool ODM_RAStateCheck(struct odm_dm_struct *pDM_Odm, s32 RSSI, bool bForceUpdate, u8 *pRATRState); -void ODM_SwAntDivChkPerPktRssi(struct odm_dm_struct *pDM_Odm, u8 StationID, - struct odm_phy_status_info *pPhyInfo); - u32 ConvertTo_dB(u32 Value); u32 GetPSDData(struct odm_dm_struct *pDM_Odm, unsigned int point, @@ -914,6 +909,4 @@ void ODM_AntselStatistics_88C(struct odm_dm_struct *pDM_Odm, u8 MacId, void ODM_SingleDualAntennaDefaultSetting(struct odm_dm_struct *pDM_Odm); -void odm_dtc(struct odm_dm_struct *pDM_Odm); - #endif diff --git a/drivers/staging/r8188eu/include/odm_precomp.h b/drivers/staging/r8188eu/include/odm_precomp.h index 892a2501f05a..22299f167af8 100644 --- a/drivers/staging/r8188eu/include/odm_precomp.h +++ b/drivers/staging/r8188eu/include/odm_precomp.h @@ -43,13 +43,11 @@ void odm_CommonInfoSelfUpdate(struct odm_dm_struct *pDM_Odm); void odm_FalseAlarmCounterStatistics(struct odm_dm_struct *pDM_Odm); void odm_DIG(struct odm_dm_struct *pDM_Odm); void odm_CCKPacketDetectionThresh(struct odm_dm_struct *pDM_Odm); -void odm_SwAntDivChkAntSwitch(struct odm_dm_struct *pDM_Odm, u8 Step); void odm_EdcaTurboCheck(struct odm_dm_struct *pDM_Odm); void odm_CommonInfoSelfInit(struct odm_dm_struct *pDM_Odm); void odm_RSSIMonitorCheck(struct odm_dm_struct *pDM_Odm); void odm_RefreshRateAdaptiveMask(struct odm_dm_struct *pDM_Odm); void odm_TXPowerTrackingThermalMeterInit(struct odm_dm_struct *pDM_Odm); -void odm_SwAntDivChkAntSwitchCallback(struct timer_list *t); void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm); void odm_HwAntDiv(struct odm_dm_struct *pDM_Odm); -- 2.33.0