Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4696738pxj; Tue, 22 Jun 2021 06:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGImawf5rzWQ9AMSBoWWzdmDSIvHO+x0DFiGFCtdy8ON4lNp7Fu+C3NIxmsATQiFupe/Jy X-Received: by 2002:a05:6e02:20c2:: with SMTP id 2mr2614053ilq.222.1624367495497; Tue, 22 Jun 2021 06:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624367495; cv=none; d=google.com; s=arc-20160816; b=txB7RXnhk/Hl6Fc7r5nDrxVBNzBou+iOxCbPe5fDFVfaZ79xNXwG6OLMWRC/tbUZme I9ZAMSmEQ/c0IXNAPQKcYn4LmxwIRco7yefWRNb+20vTNTYdH1pncPYDAQ1M5K+riFZR 1cozDL8X97lyUyusteloSGVRTuZuLD05MdE/8zeDexccjG9mp0dkq3M/3uxjEfWT3bn5 NrYCG0UJolqVqiFdplNESXm9MRpR1MzHp9CGE/vaCefI1QxjUP3KrocOw2ft/88fBhBZ 0YxiiERL80LIn7n5Qc/Xc1w5U8MPao9G7uS5Fb3QZd1qSgXdxsOGZ6JlNgx8gBas7Sn2 E/qQ== 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=bE0/IBysZYE/ZXL1p5rQU1Kbefc1vevyehuv3S/iCqk=; b=bkPq3Sh9pSpSTHPElfEU3l23+MujAERlqbMIhSeuNggpaqi+1+EoFnj/zpC2CoJhFj 5LidtpS4XGQpq2Tjo5IvY0AdjNpSBjVe3q/HRQM5TsDXy0+QuWBhy8GrcsoLCH48Pz4Y NMvvS5qb/A608R5qM2N+N2yqQg9Ld3ygKFYeRK9YVbLSZE8MgAk7Z1691UNmGBS0TsPd npWLWyok0GczhyrXYj8i8+6EAXwcVd7eXEWuBX0b2hf6VMCHm9w9uLplTgZ1o0zB7jxt q0JoBID7dM73RXWE5J7D7RIEzAcMAP5IRN5DF1OmmUh6CzVDK1i4YX34WN05WhhuQEnw 8Cag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oo9lKeSU; 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 z5si17017610ils.125.2021.06.22.06.11.22; Tue, 22 Jun 2021 06:11:35 -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=20161025 header.b=oo9lKeSU; 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 S231180AbhFVNMh (ORCPT + 99 others); Tue, 22 Jun 2021 09:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbhFVNM1 (ORCPT ); Tue, 22 Jun 2021 09:12:27 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F655C061766 for ; Tue, 22 Jun 2021 06:10:11 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id e22so20047651wrc.1 for ; Tue, 22 Jun 2021 06:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bE0/IBysZYE/ZXL1p5rQU1Kbefc1vevyehuv3S/iCqk=; b=oo9lKeSUVhzeBIPGsND2eC8dOSh830K09wN2TXSzxjvAxJjpOzbKOvnDnRhXd+h5Gq +5Sv2KlehOIHRbaUPc9AE0bdXtUt04KEV5F1JINzsnM79Wk2ijuKh80vBGB0m0m2y6Oo JGAKpG4cj6EWXbn+pfmvZre0xIzck2c7DHRmVSGX4V5Ql5NlxJDlyuDp3e1xOU/nEjMm 9fMGMKVMk8mPrU2pK55z/c2Hy9p1Gt38H0qIuR1IAzgk7y1PRQ7r3j1ai6YihsR2Owh5 /Gq0u8rtKwqeO5mkNgk1tMTehMeuF3nN/CAT6vEHmpJV1VjxGwJMsmdl5PHPHdSsBsx7 VKBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bE0/IBysZYE/ZXL1p5rQU1Kbefc1vevyehuv3S/iCqk=; b=reksDZGLgD49gn2H202J5tPZK8fTVSskkqGvaWjoYTFJfPaIsn6eHu0zzb8HjCiEne JBGgVqy99fDAAuFEB4Wh8Ruwqv6UKvwMf+uaST5uh0umDMoaMZnQI4LhB3vMm5/2oi3h j4z8lF9JKKEfk+x3zbxbrM7eZEdKkqw9V7WwkZiUKXCl7XYwqswXVLJB7GTunknoPn7p oBzfn6va3AWL1X+b2B72AutKG6jLDeqGsQ8eOQaY5I8oyx21tWfDlRGXM/120Bet0XuS 6SRPsq7C/4nNWTsFkmZAvgIscNjZuaWI59w23VCKjFpiHrgvchchWd5IaS7vz400i/zG bFhA== X-Gm-Message-State: AOAM532e62B5UnFNuiHvTDyCesnQVrRhCKVPB+CCcMc3nTh+0qvOCd5C 6DMcanZDBennEfZwLHsnBS+cnEbiF5Yqxg== X-Received: by 2002:a05:6000:1365:: with SMTP id q5mr4780375wrz.53.1624367409543; Tue, 22 Jun 2021 06:10:09 -0700 (PDT) Received: from agape ([5.171.73.108]) by smtp.gmail.com with ESMTPSA id 197sm2683862wmb.20.2021.06.22.06.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 06:10:09 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 04/17] staging: rtl8723bs: rename enum items related to channel bonding Date: Tue, 22 Jun 2021 15:09:48 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org since rtl8723bs card allows only 20Mhz and 40Mhz channels, rename enum items related to channel bonding accordingly to the only composite channel bandwidth allowed in 2.4Ghz (i.e. 40Mhz) in a HT context (since VHT isn't supported) Example: VHT_DATA_SC_20_LOWER_OF_80MHZ -> HT_DATA_SC_LOWER_OF_40MHZ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 10 +++++----- drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 4 ++-- drivers/staging/rtl8723bs/include/rtw_rf.h | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 3ecd034342ec..059d3050acc6 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -2530,18 +2530,18 @@ u8 SCMapping_8723B(struct adapter *Adapter, struct pkt_attrib *pattrib) if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_40) { if (pattrib->bwmode == CHANNEL_WIDTH_40) { - SCSettingOfDesc = VHT_DATA_SC_DONOT_CARE; + SCSettingOfDesc = HT_DATA_SC_DONOT_CARE; } else if (pattrib->bwmode == CHANNEL_WIDTH_20) { if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_UPPER) { - SCSettingOfDesc = VHT_DATA_SC_20_UPPER_OF_80MHZ; + SCSettingOfDesc = HT_DATA_SC_20_UPPER_OF_40MHZ; } else if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_LOWER) { - SCSettingOfDesc = VHT_DATA_SC_20_LOWER_OF_80MHZ; + SCSettingOfDesc = HT_DATA_SC_20_LOWER_OF_40MHZ; } else { - SCSettingOfDesc = VHT_DATA_SC_DONOT_CARE; + SCSettingOfDesc = HT_DATA_SC_DONOT_CARE; } } } else { - SCSettingOfDesc = VHT_DATA_SC_DONOT_CARE; + SCSettingOfDesc = HT_DATA_SC_DONOT_CARE; } return SCSettingOfDesc; diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c index 275460865719..23435dcc5537 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c @@ -621,9 +621,9 @@ static u8 phy_GetSecondaryChnl_8723B(struct adapter *Adapter) if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_40) { if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_UPPER) - SCSettingOf20 = VHT_DATA_SC_20_UPPER_OF_80MHZ; + SCSettingOf20 = HT_DATA_SC_20_UPPER_OF_40MHZ; else if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_LOWER) - SCSettingOf20 = VHT_DATA_SC_20_LOWER_OF_80MHZ; + SCSettingOf20 = HT_DATA_SC_20_LOWER_OF_40MHZ; } return (SCSettingOf40 << 4) | SCSettingOf20; diff --git a/drivers/staging/rtl8723bs/include/rtw_rf.h b/drivers/staging/rtl8723bs/include/rtw_rf.h index 550471637315..48ff15a38bb0 100644 --- a/drivers/staging/rtl8723bs/include/rtw_rf.h +++ b/drivers/staging/rtl8723bs/include/rtw_rf.h @@ -95,9 +95,9 @@ enum extchnl_offset { }; enum { - VHT_DATA_SC_DONOT_CARE = 0, - VHT_DATA_SC_20_UPPER_OF_80MHZ = 1, - VHT_DATA_SC_20_LOWER_OF_80MHZ = 2, + HT_DATA_SC_DONOT_CARE = 0, + HT_DATA_SC_20_UPPER_OF_40MHZ = 1, + HT_DATA_SC_20_LOWER_OF_40MHZ = 2, }; /* 2007/11/15 MH Define different RF type. */ -- 2.20.1