Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5692939pxv; Wed, 21 Jul 2021 11:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeoIyJZ++oiupS/Jb6vPYshmWHZC22TrSYOSQ3hN66I1Q3IINJXaIToEzlmQ5QFhRf8kvf X-Received: by 2002:a6b:e504:: with SMTP id y4mr23199322ioc.102.1626892082712; Wed, 21 Jul 2021 11:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626892082; cv=none; d=google.com; s=arc-20160816; b=oYToR8NRvrqYnPcZmAHZbWlZEj9p8u0C4OaYaXqZdR05U84Dq7hTWeCASYiF5oiHo9 gXMUJGJQKzKxXlCY6gu3JbrM81CEHA4ZewkHxIZq0h09LDT2qvk4wrFiau/q6klxi270 pk1l1ZrpfKujBtBIXa53C3/NEticPNCI2J5AbB7/Nni5NZfhB9VY9zJ7EkW34mtaQLbQ l3SlmXQgAqEe0epZxwR5VJhDo5iY0vbG6gcuJvLNvdMuICwHKpBg00VvrHklik0krcAD 50TNQ3owEVSQAq8XwD140mbufdDyNa62DhaC1SlSTS/irWv+JdhSj5NytHI2k4d6759O vCCA== 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=9aHB5wDXtjVablMoi0Fk0IO6LvsBphTljb6rirl7ru4=; b=Mv/TLGN5PI71wFkS4IGvi3R9KEJJa+T4x8mjioT8R1mOz9+e3cuJEu3B4OxuiFJBRh v6W86iuUcXxljtcHiojv8JWxa0uOHWVVpZ59WJqhrzjIEp6hhn/Lg8OMcTkGvx1e6eWu GkWqL2O6zT2Zk4OEo8VKG+VOVf8+IbudofUS5lKU1SxXUy2dtix5QJkLQr32lAWYIOOV BHXBK2C6PuzUFGNG8RV/68FAAYVTHALKSieXg3/i/XoiPmVG+0PgeG9aPkm7vnpoL8tr JcmAaMzQHG9XPGQMV5HlA4GUNbbUPXpSv3sY/jSaRw09JO6WYd9TY1/u3CyXEaMTKWGU A91g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=miDF4q5p; 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 w4si31967341iov.14.2021.07.21.11.27.50; Wed, 21 Jul 2021 11:28:02 -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=miDF4q5p; 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 S238283AbhGUM7S (ORCPT + 99 others); Wed, 21 Jul 2021 08:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238223AbhGUM5I (ORCPT ); Wed, 21 Jul 2021 08:57:08 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5589CC0613DC for ; Wed, 21 Jul 2021 06:37:34 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id qb4so3252936ejc.11 for ; Wed, 21 Jul 2021 06:37:34 -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=9aHB5wDXtjVablMoi0Fk0IO6LvsBphTljb6rirl7ru4=; b=miDF4q5pO5yqJYFUy7KW/hYf2j46LKY4eJG+iW20XQtv+ic5b06tEf7bWj9HEyHjZv paxjXSfEXhRlC6sld4XzhKs8KsTxEjqqRfR2/t+ssD1mmzLvLnQ8KE8nrevPUJeJF7Xk QPRTcpnVa37+QagxiudqhiIBWO17P927MW8EWKn3ul3QAXElzIUKU8ly4U+8o3VEpi58 IA9rHxmQiUBc/FNmZ/yOKYxRM+8QWLwj/b8Xx+eSYEorBRz2rGkSM1MiqR5vVQhQelaf ejMl69fRBJ4XnaS44zdh+Poa3MZT87jEppnn8Qn3rsoZmOIjrdUoJ952t7SzKdYR4cg9 6HQw== 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=9aHB5wDXtjVablMoi0Fk0IO6LvsBphTljb6rirl7ru4=; b=E0eG+wG7uS/6P/JHJQSyOWcYUlCqlppH9fdMqPoH+546kWDM6ozsnPKOG/+swXtMKk 3cuNCCRYb9/UX8ramq56NurmrhNaowGuN8sKcFXsmSiKukUXUtdyvdRosrIwO2CN6ySr k3oTjUhR4wyrfI4tHzQT2FWhF9vSfhWXulvrafS3zbIlhoBILTfiti8fhIcVSdzSZE3i LGZnPSlGNTjLyRlS///tCLqO57st90guEp2en75ZNUDd6H4+vFEluxiERcfSS2hgE28u 2fqcjMw3788ZSLrC1sPPk9L3UPg/+EM5w9xggaKr+e5PUKVZ57j6MHWiau9n1O8GT5tS OyDQ== X-Gm-Message-State: AOAM5315hTC82x02vuB4P2YYcUdViLHM5wKRrHz6zNnDP+Cow/f2Z1Q6 mPt+Pz8O2/J5fe9oEFUeH+GO9vnLSLw= X-Received: by 2002:a17:906:e088:: with SMTP id gh8mr38698680ejb.125.1626874652827; Wed, 21 Jul 2021 06:37:32 -0700 (PDT) Received: from agape ([5.171.73.45]) by smtp.gmail.com with ESMTPSA id g8sm11113099eds.25.2021.07.21.06.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 06:37:32 -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 05/16] staging: rtl8723bs: remove 5Ghz code blocks Date: Wed, 21 Jul 2021 15:37:12 +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 remove 5 Ghz code blocks, related to networks working over channel numbers above 14. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 7 ++----- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 20 +++---------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index af7d133bce94..2df8ed649519 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -3708,7 +3708,7 @@ static void issue_action_BSSCoexistPacket(struct adapter *padapter) p = rtw_get_ie(pbss_network->IEs + _FIXED_IE_LENGTH_, WLAN_EID_HT_CAPABILITY, &len, pbss_network->IELength - _FIXED_IE_LENGTH_); if ((p == NULL) || (len == 0)) {/* non-HT */ - if ((pbss_network->Configuration.DSConfig <= 0) || (pbss_network->Configuration.DSConfig > 14)) + if (pbss_network->Configuration.DSConfig <= 0) continue; ICS[0][pbss_network->Configuration.DSConfig] = 1; @@ -5428,10 +5428,7 @@ u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf) { struct HT_info_element *pht_info = (struct HT_info_element *)(pIE->data); - if (pnetwork->Configuration.DSConfig > 14) { - if ((pregpriv->bw_mode >> 4) > CHANNEL_WIDTH_20) - cbw40_enable = 1; - } else { + if (pnetwork->Configuration.DSConfig <= 14) { if ((pregpriv->bw_mode & 0x0f) > CHANNEL_WIDTH_20) cbw40_enable = 1; } diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 965558516cbd..8af81c4ff8db 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -129,14 +129,7 @@ static char *translate_scan(struct adapter *padapter, else snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11bg"); } else { - if (pnetwork->network.Configuration.DSConfig > 14) { - if (vht_cap) - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11AC"); - else if (ht_cap) - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11an"); - else - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11a"); - } else { + if (pnetwork->network.Configuration.DSConfig <= 14) { if (ht_cap) snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11gn"); else @@ -683,7 +676,7 @@ static int rtw_wx_get_name(struct net_device *dev, struct adapter *padapter = rtw_netdev_priv(dev); u32 ht_ielen = 0; char *p; - u8 ht_cap = false, vht_cap = false; + u8 ht_cap = false; struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; NDIS_802_11_RATES_EX *prates = NULL; @@ -707,14 +700,7 @@ static int rtw_wx_get_name(struct net_device *dev, else snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11bg"); } else { - if (pcur_bss->Configuration.DSConfig > 14) { - if (vht_cap) - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11AC"); - else if (ht_cap) - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11an"); - else - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11a"); - } else { + if (pcur_bss->Configuration.DSConfig <= 14) { if (ht_cap) snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11gn"); else -- 2.20.1