Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2473830pxj; Sat, 19 Jun 2021 13:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2wJsZgfFIIJul3/xgF31I+VkF6adyTj/L3lAJXpXCeKemWSG8vuZdmjp40VxJQVJhgWZp X-Received: by 2002:aa7:c9d8:: with SMTP id i24mr12523301edt.79.1624134540570; Sat, 19 Jun 2021 13:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134540; cv=none; d=google.com; s=arc-20160816; b=Qmp7kpvAe6mZ57A7I/4wJQJPRZefWpQYNBp114xOGVsWqrS5kB8f0eK6EJ7tXNaO4b i7Icd26GxVWkzuVsxTarf6HoGvoiPvae6IJC5CN/zEnr/R82Nvd02FqVd85O3Ta6p/TN uA8FCvPfQe5VffI7yK7NE7uPfxg1G7yIibAjkOk/M05cX0cdRC9E50YUi5gqprp3GJd4 unp5YtchpOSAz5fsEvXDQz/JK3+/XMMbmsaFyFU39b83PvM59B0E7OtUj1nLsBp2/CGC QLXKnGcjIy2Ft+BYMTAV4kYgUThlv274vv0oWsNTJWLIombJa5PlmoVYbSKxGZF8Uf31 6snQ== 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=SYQRtLHLVNpKIFIDawommsf0y4pbnnkq6xRCrkJy7nVIa23gW5lqGPwqPgYCFoEkE4 LqzaVC7wlUKGM1lB5PRqtl0Gw7QI3aXC1ggu//DA/YVo31zTOQuzbzvHvbSengutpJn8 uFl3EP49+v3Z8TPvXWc6q+yUrZ8gvbumleBcFz2KD9kTbDRSt+2U7J43yzKv/cS79iw5 ei7w9E/rcD759H0Z3v+7FJV4UC6zEVr/PFy6QOjpB6Sg2tDLa4gzjpQMlxWf2NhVezrT 55T+PZjDYD9OOghkp8QejR9SaVrGKsqJEJ3jjIlrzC9FtLeaCbG9Oa/4/X73H6YaycSY 9oag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ARfMJNYp; 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 bl4si7229190ejb.689.2021.06.19.13.28.38; Sat, 19 Jun 2021 13:29:00 -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=ARfMJNYp; 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 S232746AbhFSKt4 (ORCPT + 99 others); Sat, 19 Jun 2021 06:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbhFSKtm (ORCPT ); Sat, 19 Jun 2021 06:49:42 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F44FC061574 for ; Sat, 19 Jun 2021 03:47:30 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso10298069wmh.4 for ; Sat, 19 Jun 2021 03:47:30 -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=ARfMJNYpueqovvBvEAbLTsJH+v8edhLspra0FOcpNbC7jqyJaC16/stxx5l/cuj7BK X1tvJLVCzH9/ZyoUneCAM46KrI3EE8qJ19Y7OBzNoGOhsejcp0Lk80vBXsPfYoVi/RAH YLYfc4/nQk380ZHJaf16Y0kbwMowLAISj53/sfcbNwvH6Y2SRl0QDRbOWUu9DjEf7f3a zulpxMFwYY2/+9mUJl2gH6nSwmTcfomGqGUpfWU6kMoQsuLqdFfRYpCzNmt85gAQpe/m m64iQfI6MRwloSrFG0cLbQ5s56+XkV+nTf2YnCJEem21Kt+WGjN1rr64YUiNa0ULZIKZ BxcA== 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=VDPL7ahbfuQs2n0XhjAGKzIPx+nq5Xb+7yxSGNvyrL3BWNnWWnkbnO81OI0EQEwmcR VtAXyk5jVZyS7g4Dk+bmLa9ktwJCuHcQ3royOGIrx0ZbuiQkGmNcQLZRguxiJgepfaeV wbDuoQOYRG/UgzAYPKrzClCowFbkeHeMka4c678cg/AuNm2XKrmVSZ3RNgQPOz4UwRAe /AVrf6LOoAUjzTydlZO2iU+qLmL2FJdEZzyVDVJkrwDQN7G7DVPz3whlC2t13lgIGXll jwAH5EwiRi6ineXb8j/KiOZlekGoYuE57Hh9WYBHtdaqOaV63qgYiRDJeB5LOTPPzS7Y ld0Q== X-Gm-Message-State: AOAM5338mnzOx0raQ0Uaflf90/FhjjcrCv+6ykuS/CMTupLMAarJClMu rHpC4gnSpYdX/w1OHq+W2ENKv8Bi8aOFbg== X-Received: by 2002:a1c:7901:: with SMTP id l1mr15174735wme.95.1624099648793; Sat, 19 Jun 2021 03:47:28 -0700 (PDT) Received: from agape ([5.171.81.81]) by smtp.gmail.com with ESMTPSA id 62sm11991719wrm.1.2021.06.19.03.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 03:47:28 -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 04/18] staging: rtl8723bs: rename enum items related to channel bonding Date: Sat, 19 Jun 2021 12:47:07 +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