Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2242100pxv; Sat, 17 Jul 2021 07:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvdkya/fJtMYTn1tF2bXqsabrBhvEmBd3lHu7Q0uE7dinwp2LWVh5mTH8hOy3kfn+UBCh3 X-Received: by 2002:a17:906:844d:: with SMTP id e13mr17804252ejy.503.1626533952903; Sat, 17 Jul 2021 07:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626533952; cv=none; d=google.com; s=arc-20160816; b=IXszB2eRHhBZyerEk4f4+vNmf6lX4MR2QsalhY1CEmufSmn2QlvffnHx2N5u4FPlB0 3k7WX/RZFgvXTrd2tfKW292G7NPjDSFjbwhggjeiK/JAeBiB20QuzshnTC0D1zTGmBY/ bVrVxHTDpTHRMEktTpvlBEk0Q5/JLkvfC/nj50J+ZnKb1WjPwGraX7rxJh5+cKaGCkMR 048oN15HHwLlonWsRlw/GKTupQuz96kdpmu+4Q1ZwepjiWyoAjqejWB3oWadA3J/syWt IkPAbu+yHtxiKSC6a71WH/Xhw6t85dsy7cbdEXO8h29tZrmUFrckmgfh1/zL/eUY14yI mGNQ== 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=ErRRPMiU/cdiVnjTQlqsH1Ke5jCRomBxj7f+q6KInH4=; b=vAsUiPlI3AfjxFlVmp1idXb1u8Yrrj2Eu2Y29SHK4pdUYA8yotWhB5TNHQVRJCyMRu 6dQFt3yfHV0AE/dw/JSsM8XOiep+7iduZ16lcdrDeKaKhIWEfDMesBldC1T/VMKwFhZX +x/MC/6yqFFzRQ3aVT7X+++3vA6OmBR6NwwygmJHSdDendPZjUS+fHheroC+9kIYj/Df +poc8tZCx/C3HVegktzeu2vLPr8KVUzJJp51+Fb8JBjF+7M/X0ewak9z+P1jcvK53bgk +FpgYvGYdW7mgWiATnIQdfPm/S6riKk+Rik2lo2s98UI2AxVSP2Qm1vXrGjxOk5vpqnf kZtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pt5bGuBE; 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 b13si14998137ede.452.2021.07.17.07.58.34; Sat, 17 Jul 2021 07:59:12 -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=pt5bGuBE; 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 S234466AbhGQPAU (ORCPT + 99 others); Sat, 17 Jul 2021 11:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234391AbhGQO7y (ORCPT ); Sat, 17 Jul 2021 10:59:54 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E02CFC06175F for ; Sat, 17 Jul 2021 07:56:57 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id u1so15572640wrs.1 for ; Sat, 17 Jul 2021 07:56:57 -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=ErRRPMiU/cdiVnjTQlqsH1Ke5jCRomBxj7f+q6KInH4=; b=pt5bGuBEQk1S6yvuuK/I0rK4AlvJT1Nfm5wGELrSPdjWPmQkm4GBmghk7uBKKnmGzI e5KozmO5XeyT2Q+M7t2PxgMWQ63pJD/EMNIF0WlCHuwcIJ3gYX8th2ESm8p9OhjXFFBv ukUpvzv8lF33Ok1oZCShY8vxuVGPFtpUlr6M8BUJjqZwd1NTHUVUKJDjEwAvemf3r85u EJmJtSUSBDsAdnaZnb1dboXnwGdpKWIoqGmzHyruxGHPISk1uE/12gtXTJ46QhZlZiNk xdjZS6o2D/AA4LnsTxBaqvr3Iwnek9Kkym4XKkf09WNZT7SGASPBQtegf0bguwcQ60GN 632g== 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=ErRRPMiU/cdiVnjTQlqsH1Ke5jCRomBxj7f+q6KInH4=; b=iSy02s0fq6qqvyXo0JgujpcbQBPGIsHtbRsd51+/xMi6H8YM8QT3uYHh0ojcSC32jO K78tAHnc3X2OcYtS1mzaZnfLNc2dQcPyk6EqBF9k2o/H3r8s3TtL1/uiPmN44b6X2b1u ZT7MXT6DZ6PWSihEPWyMYCzxMnp8bp97Jx0rJqcNtD+pzHz73zc9Y28dl/Y3zPXaB0IY SyGl5GPWAgbdzZaHHqbvNiiBuLXTz7D9TN9tGdAfaeFZzCfoOS9iBx2IZ1TEcge+icUt nXYkZw2XATzZAeXwI4ZW7Eox4DjgDCI41ATWwJKsqv60WykW1Ea6MI5qqRf1QovKa4Pj dpZw== X-Gm-Message-State: AOAM533sRApbrX/lpRnDGsal1sKR7IlzzrzkTO3DrAZZx4JOtJlD6KN+ x2uCk9ERZpDNfC0hc/2Koiq7+Vf51V4= X-Received: by 2002:a5d:4402:: with SMTP id z2mr18699594wrq.44.1626533816393; Sat, 17 Jul 2021 07:56:56 -0700 (PDT) Received: from agape ([5.171.72.101]) by smtp.gmail.com with ESMTPSA id f82sm14257228wmf.25.2021.07.17.07.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jul 2021 07:56:56 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/10] staging: rtl8723bs: convert IsSupportedHT to snake_case Date: Sat, 17 Jul 2021 16:56:43 +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 convert IsSupportedHT to snake case is_supported_ht. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 2 +- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- drivers/staging/rtl8723bs/include/ieee80211.h | 2 +- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c index bd5056507f53..fcbbdbe5448b 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c @@ -554,7 +554,7 @@ u16 rtw_get_cur_max_rate(struct adapter *adapter) short_GI = query_ra_short_GI(psta); - if (IsSupportedHT(psta->wireless_mode)) { + if (is_supported_ht(psta->wireless_mode)) { rtw_hal_get_hwreg(adapter, HW_VAR_RF_TYPE, (u8 *)(&rf_type)); max_rate = rtw_mcs_rate(rf_type, diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c index c06b74f6569a..56c5cb318fdf 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -55,7 +55,7 @@ u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta) if (cur_rf_type == RF_1T1R) { rf_type = RF_1T1R; - } else if (IsSupportedHT(psta->wireless_mode)) { + } else if (is_supported_ht(psta->wireless_mode)) { if (psta->ra_mask & 0xfff00000) rf_type = RF_2T2R; } diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h index 378c21595e05..8eb0557a077a 100644 --- a/drivers/staging/rtl8723bs/include/ieee80211.h +++ b/drivers/staging/rtl8723bs/include/ieee80211.h @@ -167,7 +167,7 @@ enum network_type { #define IsSupportedTxCCK(NetType) (((NetType) & (WIRELESS_11B)) ? true : false) #define IsSupportedTxOFDM(NetType) (((NetType) & (WIRELESS_11G) ? true : false) -#define IsSupportedHT(NetType) (((NetType) & (WIRELESS_11_24N)) ? true : false) +#define is_supported_ht(NetType) (((NetType) & (WIRELESS_11_24N)) ? true : false) struct ieee_param { u32 cmd; diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index d198d10ec272..368e575c24af 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -2106,7 +2106,7 @@ static u8 rtw_get_chan_type(struct adapter *adapter) switch (mlme_ext->cur_bwmode) { case CHANNEL_WIDTH_20: - if (IsSupportedHT(adapter->registrypriv.wireless_mode)) + if (is_supported_ht(adapter->registrypriv.wireless_mode)) return NL80211_CHAN_HT20; else return NL80211_CHAN_NO_HT; -- 2.20.1