Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2137423pxb; Mon, 23 Aug 2021 12:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwisCPKt1uASUAHaO49kd+RT6iyXofec09eHRtrdGMgPJ0ghDJ31yUZeRqi5RvOoU/Wiqe/ X-Received: by 2002:a17:906:4149:: with SMTP id l9mr5887799ejk.388.1629748444295; Mon, 23 Aug 2021 12:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629748444; cv=none; d=google.com; s=arc-20160816; b=SnqGqa8Bv2AMral+oqy7wQONrQqKIfPV9JZObHZeqE5NZi+9130qrLYiiRzaBVty3X z8KCK8yAp5HlyX3MccUbzWYqfp8PBBIYEJsfsI8tdr7UAiCa78Luj9yzRE2Rn2AEY1G3 qdElKBemlE8NnXjccNQDQSQyQKnU+qC3wMHVQ8cT5VTpdj4otZyfnEBgAXq/D0OdhuZx PGAkMFJyxDxQLMOy8zmNKG9MQg80/BpA2Vc39Ps5MsXFzfl7wfonuq6tIFS+e8sfhHFJ H0txjKExkI8oY/zdlYsqbmlnmUMbFCKOmAUm2TV94A3ujMljECaBr2iNmFQjeAkLZYCT U9qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nvyLOfqoP4bPnL3Z4fZnxTvEqFhev5d3qGnOwonUrqA=; b=QKqKPBPuL2bbr3/wDSvizdFENtM+fGoanf8ddoWnRzp3GG33dovwOhlg3shemKrPMS WDEYizhh6/jsvKHinRc4O/8AjdVddvHO+yzXjJgqz0tlyczqyM5vAHLYm96XykEBtULH 4AuJGbGUClqJ3XVBoP+V1w4dPEGWUuYAEzEKjePsDPHh7GbJyVUpq4q8HHPv7SxvE/xb CrSUf+Rt1bc3MEATYA9UTOtVqXhcI/88EsgIy6APkF7FI3onnm3fyXstku7gb6TIpxbH b/32SDu8J4+yezKEQlMV4jRZEXWPajj26nyKH7POrHO/mo+gP/18DC39kCdLb2QTrKt+ a82A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si243462edz.334.2021.08.23.12.53.41; Mon, 23 Aug 2021 12:54:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232216AbhHWTvj (ORCPT + 99 others); Mon, 23 Aug 2021 15:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232152AbhHWTvf (ORCPT ); Mon, 23 Aug 2021 15:51:35 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A95FC061575 for ; Mon, 23 Aug 2021 12:50:52 -0700 (PDT) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1mIFy3-0006Ia-8C; Mon, 23 Aug 2021 21:50:47 +0200 Date: Mon, 23 Aug 2021 21:50:47 +0200 From: Martin Kaiser To: Michael Straube Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: r8188eu: remove 5 GHz code Message-ID: <20210823195047.xn4brfgrec726oew@viti.kaiser.cx> References: <20210823193028.12391-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210823193028.12391-1-straube.linux@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: Martin Kaiser Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thus wrote Michael Straube (straube.linux@gmail.com): > The driver is for chips that do not operate in the 5 GHz band. > Remove some 5 GHz related code. > Signed-off-by: Michael Straube > --- > drivers/staging/r8188eu/os_dep/ioctl_linux.c | 30 ++++++-------------- > 1 file changed, 8 insertions(+), 22 deletions(-) > diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c > index ab4a9200f079..81d4255d1785 100644 > --- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c > +++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c > @@ -208,17 +208,10 @@ static char *translate_scan(struct adapter *padapter, > else > snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11bg"); > } else { > - if (pnetwork->network.Configuration.DSConfig > 14) { > - if (ht_cap) > - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11an"); > - else > - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11a"); > - } else { > - if (ht_cap) > - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11gn"); > - else > - snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11g"); > - } > + if (ht_cap) > + snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11gn"); > + else > + snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11g"); > } > start = iwe_stream_add_event(info, start, stop, &iwe, IW_EV_CHAR_LEN); > @@ -737,17 +730,10 @@ 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 (ht_cap) > - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11an"); > - else > - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11a"); > - } else { > - if (ht_cap) > - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11gn"); > - else > - snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11g"); > - } > + if (ht_cap) > + snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11gn"); > + else > + snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11g"); > } > } else { > snprintf(wrqu->name, IFNAMSIZ, "unassociated"); > -- > 2.32.0 Hi Michael and all, looks good. Acked-by: Martin Kaiser Two comments unrelated to your patch: I guess that DSConfig is the channel number, those two drivers have a misleading comment: 3 F m DSConfig drivers/staging/r8188eu/include/wlan_bssdef.h struct:ndis_802_11_config u32 DSConfig; /* Frequency, units are kHz */ 4 F m DSConfig drivers/staging/rtl8712/wlan_bssdef.h struct:NDIS_802_11_CONFIGURATION u32 DSConfig; /* Frequency, units are kHz */ The rtw_wx_get_name function has a similar check if (pcur_bss->Configuration.DSConfig > 14). But when Larry adds cfg80211 support, I guess all IW_HANDLER()s will become obsolete... Best regards, Martin