Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4531562pxj; Tue, 22 Jun 2021 02:20:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHRM3hkxR1GGda6yIJqXz7bi6CFoVDd0mdBtB8TheMpzjZ+WzwCb11e47srVjgjZsTKtcb X-Received: by 2002:a92:c792:: with SMTP id c18mr1922853ilk.75.1624353631964; Tue, 22 Jun 2021 02:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624353631; cv=none; d=google.com; s=arc-20160816; b=dCVP8M1xBv10TYkHzLTPaNEg29ohKpxUw5/6UgHH7onJ2oWJEcuKtNGXZAszi8pDdA ZN3Ruv3SY9Gnr0pgM580YUJIXGrJR0Qc28NS3gk9czjShxmI40vicVofvj7I1caLXf96 5Lzp1H+2uMxlceCfPJLtgLyzD+oh/nI96lO2yeQvYkDJxJppFiYW5WgMgu22E9dkrU7z XAyLaP37VDo5QtOcztufPOYaIq2gIqFIiqeUS+rA++42LOd5WdM2vCogWGmgBP82Emc2 5KjaWdaMmaiEX+Eg0bFwSDUfwzAp9HzSJC7Bp0ec5yV3wyXFHcGXPqP6l2zvF6PGSw8d oekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Vaz1oKxn0xL1NGbMhTjeqWjSUbsvQprK96mQlfR8OLw=; b=DhjjLU283KhEMT263tfDscRIPc8fdUFObPeq619hY0YbLSfQsVq1boqFb6BjrnapFh Ww6sBrlq9SzIOx3A1XTZ/sdBYEaJNbcJ3X+NpvcicUGlz00naHK1BgYghmgfUTe85HaV IgDNu6nwCgBaoU5TMkTxgZpmZjNw8xSnpJLp7H1FRjyXupxgn00BihU4QhmY+Z4rAh8B flWXDSS99+btbMtJSFj6PnPPCMJ/1g8i1GX+ipR/uacRnENgzbCsqu2R8OxiXkxm3eIE YPrYZqlNsAf/6zCLPcRdRKsQFmbwgWC+Ow5QmQDP1wDQmQMLszye8HbKgLl3zIbdkmYI ednA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JSIBhXh4; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n128si1662390iod.90.2021.06.22.02.20.14; Tue, 22 Jun 2021 02:20:31 -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=@redhat.com header.s=mimecast20190719 header.b=JSIBhXh4; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbhFVJV5 (ORCPT + 99 others); Tue, 22 Jun 2021 05:21:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49603 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhFVJV4 (ORCPT ); Tue, 22 Jun 2021 05:21:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624353580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vaz1oKxn0xL1NGbMhTjeqWjSUbsvQprK96mQlfR8OLw=; b=JSIBhXh4ZeHgtH46VEyuuN6qr5GXz9Xd5UK0Q8fvK4Wj7uS5Oks4Mla6ldnx3uxBR+xHrb wsKLeao36T0tuXel6B5gl6Uy1aHQWXvUon0FmLh9ywoF3mXUdDiHTnhN3QThjjsdCANfoD 5yMS94N+EYqn5z6H4cJeRqY7Vn43H90= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-571-YEfX_I6KNDuwFrLvruDvsw-1; Tue, 22 Jun 2021 05:19:39 -0400 X-MC-Unique: YEfX_I6KNDuwFrLvruDvsw-1 Received: by mail-ej1-f69.google.com with SMTP id ci22-20020a170906c356b0290492ca430d87so2424789ejb.14 for ; Tue, 22 Jun 2021 02:19:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Vaz1oKxn0xL1NGbMhTjeqWjSUbsvQprK96mQlfR8OLw=; b=K7fRQtKo0HrLv2UYahYnlvGuMWDL8fBxbereGo9TmuTE0B+bA2PG9mmoIE+gzPOIdD k8AB2jiyOxxoU26gebREcMGTx/N5z9ofQty3YqYX/61507wbibxThzxcVnZSKNRXxSdn B9Aw4SlxjEn/p1l8ccefoioNq7J7wFQcno7abANFIAuNXPYqjjv/SUos1G+bjzsdNTyX 0pJq8xuMXQ09SBsDRSEbFDLysFef88tVOYZb9lM8UXyBs2A34DUhe/MEPXKNn8bYgmUk c+CbLC2oKQbZExLiDkwskHQ6uP5tNGaXSHREDYZdfz7aI58vt4x51lXMWFfNuLhkeOIt aBog== X-Gm-Message-State: AOAM532P13uc0OiddUDfFk1ZDVZulhkj1PrunJzCjrbLIczd647x9ZEH PJdou972qoK41W8ahRcVdxqfR9j9L2Vr8WeQrHHpL8Dxe1dZb2vW0OeHcD+Kaib0OW9U0V5jX6o U9+0O/jIoVre0BJ7qsF2rrdh55BJwfNSBEeULew3X/bsUnOOLKbQjjZG8Kzwu2H/oj3fFQawFGT Ur X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr3566215edc.154.1624353577766; Tue, 22 Jun 2021 02:19:37 -0700 (PDT) X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr3566197edc.154.1624353577605; Tue, 22 Jun 2021 02:19:37 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id jx9sm3484744ejc.110.2021.06.22.02.19.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 02:19:37 -0700 (PDT) Subject: Re: [PATCH 12/18] staging: rtl8723bs: remove VHT dead code To: Fabio Aiuto Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210622091602.GA1426@agape.jhs> From: Hans de Goede Message-ID: <4f128bd2-b84b-132e-c75f-0030701a8a9b@redhat.com> Date: Tue, 22 Jun 2021 11:19:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210622091602.GA1426@agape.jhs> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On 6/22/21 11:16 AM, Fabio Aiuto wrote: > Hello Hans, > > On Mon, Jun 21, 2021 at 11:45:39AM +0200, Hans de Goede wrote: >> Hi, >> >> On 6/19/21 12:47 PM, Fabio Aiuto wrote: >>> remove VHT dead code, as the device doesn't support >>> VHT (which is a 802.11ac capability). >>> >>> Signed-off-by: Fabio Aiuto >>> --- >>> drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 1 - >>> drivers/staging/rtl8723bs/hal/hal_com.c | 241 ----------- >>> .../staging/rtl8723bs/hal/hal_com_phycfg.c | 383 +----------------- >>> drivers/staging/rtl8723bs/include/hal_com.h | 62 +-- >>> .../rtl8723bs/include/hal_com_phycfg.h | 4 - >>> drivers/staging/rtl8723bs/include/ieee80211.h | 45 -- >>> .../staging/rtl8723bs/include/rtl8723b_xmit.h | 21 - >>> drivers/staging/rtl8723bs/include/rtw_ht.h | 4 - >>> 8 files changed, 9 insertions(+), 752 deletions(-) >>> >>> diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c >>> index 285acd3d843b..c128d462c6c7 100644 >>> --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c >>> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c >>> @@ -46,7 +46,6 @@ static struct action_handler OnAction_tbl[] = { >>> {RTW_WLAN_CATEGORY_UNPROTECTED_WNM, "ACTION_UNPROTECTED_WNM", &DoReserved}, >>> {RTW_WLAN_CATEGORY_SELF_PROTECTED, "ACTION_SELF_PROTECTED", &DoReserved}, >>> {RTW_WLAN_CATEGORY_WMM, "ACTION_WMM", &DoReserved}, >>> - {RTW_WLAN_CATEGORY_VHT, "ACTION_VHT", &DoReserved}, >>> {RTW_WLAN_CATEGORY_P2P, "ACTION_P2P", &DoReserved}, >>> }; >>> >>> diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c >>> index 7a88447f8294..eebd48438733 100644 >>> --- a/drivers/staging/rtl8723bs/hal/hal_com.c >>> +++ b/drivers/staging/rtl8723bs/hal/hal_com.c >>> @@ -295,126 +295,6 @@ u8 MRateToHwRate(u8 rate) >>> case MGN_MCS31: >>> ret = DESC_RATEMCS31; >>> break; >>> - case MGN_VHT1SS_MCS0: >>> - ret = DESC_RATEVHTSS1MCS0; >>> - break; >>> - case MGN_VHT1SS_MCS1: >>> - ret = DESC_RATEVHTSS1MCS1; >>> - break; >>> - case MGN_VHT1SS_MCS2: >>> - ret = DESC_RATEVHTSS1MCS2; >>> - break; >>> - case MGN_VHT1SS_MCS3: >>> - ret = DESC_RATEVHTSS1MCS3; >>> - break; >>> - case MGN_VHT1SS_MCS4: >>> - ret = DESC_RATEVHTSS1MCS4; >>> - break; >>> - case MGN_VHT1SS_MCS5: >>> - ret = DESC_RATEVHTSS1MCS5; >>> - break; >>> - case MGN_VHT1SS_MCS6: >>> - ret = DESC_RATEVHTSS1MCS6; >>> - break; >>> - case MGN_VHT1SS_MCS7: >>> - ret = DESC_RATEVHTSS1MCS7; >>> - break; >>> - case MGN_VHT1SS_MCS8: >>> - ret = DESC_RATEVHTSS1MCS8; >>> - break; >>> - case MGN_VHT1SS_MCS9: >>> - ret = DESC_RATEVHTSS1MCS9; >>> - break; >>> - case MGN_VHT2SS_MCS0: >>> - ret = DESC_RATEVHTSS2MCS0; >>> - break; >>> - case MGN_VHT2SS_MCS1: >>> - ret = DESC_RATEVHTSS2MCS1; >>> - break; >>> - case MGN_VHT2SS_MCS2: >>> - ret = DESC_RATEVHTSS2MCS2; >>> - break; >>> - case MGN_VHT2SS_MCS3: >>> - ret = DESC_RATEVHTSS2MCS3; >>> - break; >>> - case MGN_VHT2SS_MCS4: >>> - ret = DESC_RATEVHTSS2MCS4; >>> - break; >>> - case MGN_VHT2SS_MCS5: >>> - ret = DESC_RATEVHTSS2MCS5; >>> - break; >>> - case MGN_VHT2SS_MCS6: >>> - ret = DESC_RATEVHTSS2MCS6; >>> - break; >>> - case MGN_VHT2SS_MCS7: >>> - ret = DESC_RATEVHTSS2MCS7; >>> - break; >>> - case MGN_VHT2SS_MCS8: >>> - ret = DESC_RATEVHTSS2MCS8; >>> - break; >>> - case MGN_VHT2SS_MCS9: >>> - ret = DESC_RATEVHTSS2MCS9; >>> - break; >>> - case MGN_VHT3SS_MCS0: >>> - ret = DESC_RATEVHTSS3MCS0; >>> - break; >>> - case MGN_VHT3SS_MCS1: >>> - ret = DESC_RATEVHTSS3MCS1; >>> - break; >>> - case MGN_VHT3SS_MCS2: >>> - ret = DESC_RATEVHTSS3MCS2; >>> - break; >>> - case MGN_VHT3SS_MCS3: >>> - ret = DESC_RATEVHTSS3MCS3; >>> - break; >>> - case MGN_VHT3SS_MCS4: >>> - ret = DESC_RATEVHTSS3MCS4; >>> - break; >>> - case MGN_VHT3SS_MCS5: >>> - ret = DESC_RATEVHTSS3MCS5; >>> - break; >>> - case MGN_VHT3SS_MCS6: >>> - ret = DESC_RATEVHTSS3MCS6; >>> - break; >>> - case MGN_VHT3SS_MCS7: >>> - ret = DESC_RATEVHTSS3MCS7; >>> - break; >>> - case MGN_VHT3SS_MCS8: >>> - ret = DESC_RATEVHTSS3MCS8; >>> - break; >>> - case MGN_VHT3SS_MCS9: >>> - ret = DESC_RATEVHTSS3MCS9; >>> - break; >>> - case MGN_VHT4SS_MCS0: >>> - ret = DESC_RATEVHTSS4MCS0; >>> - break; >>> - case MGN_VHT4SS_MCS1: >>> - ret = DESC_RATEVHTSS4MCS1; >>> - break; >>> - case MGN_VHT4SS_MCS2: >>> - ret = DESC_RATEVHTSS4MCS2; >>> - break; >>> - case MGN_VHT4SS_MCS3: >>> - ret = DESC_RATEVHTSS4MCS3; >>> - break; >>> - case MGN_VHT4SS_MCS4: >>> - ret = DESC_RATEVHTSS4MCS4; >>> - break; >>> - case MGN_VHT4SS_MCS5: >>> - ret = DESC_RATEVHTSS4MCS5; >>> - break; >>> - case MGN_VHT4SS_MCS6: >>> - ret = DESC_RATEVHTSS4MCS6; >>> - break; >>> - case MGN_VHT4SS_MCS7: >>> - ret = DESC_RATEVHTSS4MCS7; >>> - break; >>> - case MGN_VHT4SS_MCS8: >>> - ret = DESC_RATEVHTSS4MCS8; >>> - break; >>> - case MGN_VHT4SS_MCS9: >>> - ret = DESC_RATEVHTSS4MCS9; >>> - break; >>> default: >>> break; >>> } >>> @@ -559,127 +439,6 @@ u8 HwRateToMRate(u8 rate) >>> case DESC_RATEMCS31: >>> ret_rate = MGN_MCS31; >>> break; >>> - case DESC_RATEVHTSS1MCS0: >>> - ret_rate = MGN_VHT1SS_MCS0; >>> - break; >>> - case DESC_RATEVHTSS1MCS1: >>> - ret_rate = MGN_VHT1SS_MCS1; >>> - break; >>> - case DESC_RATEVHTSS1MCS2: >>> - ret_rate = MGN_VHT1SS_MCS2; >>> - break; >>> - case DESC_RATEVHTSS1MCS3: >>> - ret_rate = MGN_VHT1SS_MCS3; >>> - break; >>> - case DESC_RATEVHTSS1MCS4: >>> - ret_rate = MGN_VHT1SS_MCS4; >>> - break; >>> - case DESC_RATEVHTSS1MCS5: >>> - ret_rate = MGN_VHT1SS_MCS5; >>> - break; >>> - case DESC_RATEVHTSS1MCS6: >>> - ret_rate = MGN_VHT1SS_MCS6; >>> - break; >>> - case DESC_RATEVHTSS1MCS7: >>> - ret_rate = MGN_VHT1SS_MCS7; >>> - break; >>> - case DESC_RATEVHTSS1MCS8: >>> - ret_rate = MGN_VHT1SS_MCS8; >>> - break; >>> - case DESC_RATEVHTSS1MCS9: >>> - ret_rate = MGN_VHT1SS_MCS9; >>> - break; >>> - case DESC_RATEVHTSS2MCS0: >>> - ret_rate = MGN_VHT2SS_MCS0; >>> - break; >>> - case DESC_RATEVHTSS2MCS1: >>> - ret_rate = MGN_VHT2SS_MCS1; >>> - break; >>> - case DESC_RATEVHTSS2MCS2: >>> - ret_rate = MGN_VHT2SS_MCS2; >>> - break; >>> - case DESC_RATEVHTSS2MCS3: >>> - ret_rate = MGN_VHT2SS_MCS3; >>> - break; >>> - case DESC_RATEVHTSS2MCS4: >>> - ret_rate = MGN_VHT2SS_MCS4; >>> - break; >>> - case DESC_RATEVHTSS2MCS5: >>> - ret_rate = MGN_VHT2SS_MCS5; >>> - break; >>> - case DESC_RATEVHTSS2MCS6: >>> - ret_rate = MGN_VHT2SS_MCS6; >>> - break; >>> - case DESC_RATEVHTSS2MCS7: >>> - ret_rate = MGN_VHT2SS_MCS7; >>> - break; >>> - case DESC_RATEVHTSS2MCS8: >>> - ret_rate = MGN_VHT2SS_MCS8; >>> - break; >>> - case DESC_RATEVHTSS2MCS9: >>> - ret_rate = MGN_VHT2SS_MCS9; >>> - break; >>> - case DESC_RATEVHTSS3MCS0: >>> - ret_rate = MGN_VHT3SS_MCS0; >>> - break; >>> - case DESC_RATEVHTSS3MCS1: >>> - ret_rate = MGN_VHT3SS_MCS1; >>> - break; >>> - case DESC_RATEVHTSS3MCS2: >>> - ret_rate = MGN_VHT3SS_MCS2; >>> - break; >>> - case DESC_RATEVHTSS3MCS3: >>> - ret_rate = MGN_VHT3SS_MCS3; >>> - break; >>> - case DESC_RATEVHTSS3MCS4: >>> - ret_rate = MGN_VHT3SS_MCS4; >>> - break; >>> - case DESC_RATEVHTSS3MCS5: >>> - ret_rate = MGN_VHT3SS_MCS5; >>> - break; >>> - case DESC_RATEVHTSS3MCS6: >>> - ret_rate = MGN_VHT3SS_MCS6; >>> - break; >>> - case DESC_RATEVHTSS3MCS7: >>> - ret_rate = MGN_VHT3SS_MCS7; >>> - break; >>> - case DESC_RATEVHTSS3MCS8: >>> - ret_rate = MGN_VHT3SS_MCS8; >>> - break; >>> - case DESC_RATEVHTSS3MCS9: >>> - ret_rate = MGN_VHT3SS_MCS9; >>> - break; >>> - case DESC_RATEVHTSS4MCS0: >>> - ret_rate = MGN_VHT4SS_MCS0; >>> - break; >>> - case DESC_RATEVHTSS4MCS1: >>> - ret_rate = MGN_VHT4SS_MCS1; >>> - break; >>> - case DESC_RATEVHTSS4MCS2: >>> - ret_rate = MGN_VHT4SS_MCS2; >>> - break; >>> - case DESC_RATEVHTSS4MCS3: >>> - ret_rate = MGN_VHT4SS_MCS3; >>> - break; >>> - case DESC_RATEVHTSS4MCS4: >>> - ret_rate = MGN_VHT4SS_MCS4; >>> - break; >>> - case DESC_RATEVHTSS4MCS5: >>> - ret_rate = MGN_VHT4SS_MCS5; >>> - break; >>> - case DESC_RATEVHTSS4MCS6: >>> - ret_rate = MGN_VHT4SS_MCS6; >>> - break; >>> - case DESC_RATEVHTSS4MCS7: >>> - ret_rate = MGN_VHT4SS_MCS7; >>> - break; >>> - case DESC_RATEVHTSS4MCS8: >>> - ret_rate = MGN_VHT4SS_MCS8; >>> - break; >>> - case DESC_RATEVHTSS4MCS9: >>> - ret_rate = MGN_VHT4SS_MCS9; >>> - break; >>> - >>> default: >>> break; >>> } >>> diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c >>> index 395eb3b5af71..bb7941aee0c4 100644 >>> --- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c >>> +++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c >>> @@ -39,18 +39,6 @@ u8 PHY_GetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath, >>> case HT_MCS24_MCS31: >>> value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][5]; >>> break; >>> - case VHT_1SSMCS0_1SSMCS9: >>> - value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][6]; >>> - break; >>> - case VHT_2SSMCS0_2SSMCS9: >>> - value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][7]; >>> - break; >>> - case VHT_3SSMCS0_3SSMCS9: >>> - value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][8]; >>> - break; >>> - case VHT_4SSMCS0_4SSMCS9: >>> - value = pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][9]; >>> - break; >>> default: >>> break; >>> } >>> @@ -91,18 +79,6 @@ phy_SetTxPowerByRateBase( >>> case HT_MCS24_MCS31: >>> pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][5] = Value; >>> break; >>> - case VHT_1SSMCS0_1SSMCS9: >>> - pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][6] = Value; >>> - break; >>> - case VHT_2SSMCS0_2SSMCS9: >>> - pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][7] = Value; >>> - break; >>> - case VHT_3SSMCS0_3SSMCS9: >>> - pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][8] = Value; >>> - break; >>> - case VHT_4SSMCS0_4SSMCS9: >>> - pHalData->TxPwrByRateBase2_4G[RfPath][TxNum][9] = Value; >>> - break; >>> default: >>> break; >>> } >>> @@ -131,14 +107,6 @@ struct adapter *padapter >>> base = PHY_GetTxPowerByRate(padapter, path, RF_3TX, MGN_MCS23); >>> phy_SetTxPowerByRateBase(padapter, path, HT_MCS16_MCS23, RF_3TX, base); >>> >>> - base = PHY_GetTxPowerByRate(padapter, path, RF_1TX, MGN_VHT1SS_MCS7); >>> - phy_SetTxPowerByRateBase(padapter, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base); >>> - >>> - base = PHY_GetTxPowerByRate(padapter, path, RF_2TX, MGN_VHT2SS_MCS7); >>> - phy_SetTxPowerByRateBase(padapter, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base); >>> - >>> - base = PHY_GetTxPowerByRate(padapter, path, RF_3TX, MGN_VHT3SS_MCS7); >>> - phy_SetTxPowerByRateBase(padapter, path, VHT_3SSMCS0_3SSMCS9, RF_3TX, base); >> >> You are removing a bunch of register writes from a block here, while keeping others, >> so this does not seem like it is just dead-code removal it feels like you are >> actually making a functional change. > > I looked deeply at what I deed, and I just removed some functions updating tables > in memory, no register write here. Tables are used to load Tx Power Limit. So > removing these function calls according with the removal of the VHT enum items > grants that wrong Power Limits will never be fetched. > > Moreover I have been quite conservative, for I left untouched HT indexes above > 7 which rtl8723bs doesn't support. > > So IMO I think this patch is fine as is... >> Perhaps this entire block can never be executed ? > > the block is executed but there's no register write happening. Just > updating of values which will never be fetched. Ack, my bad I was under the impression that phy_SetTxPowerByRateBase() would actually do a register write, but I checked and it just updates some unused table values, so dropping this code is fine and you can keep this patch for v2 of the patch set. Regards, Hans