From: Phillip Potter <phil@philpotter.co.uk>
To: Michael Straube <straube.linux@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Larry Finger <Larry.Finger@lwfinger.net>,
Martin Kaiser <martin@kaiser.cx>,
"Fabio M. De Francesco" <fmdefrancesco@gmail.com>,
"open list:STAGING SUBSYSTEM" <linux-staging@lists.linux.dev>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: r8188eu: remove 5 GHz code
Date: Mon, 23 Aug 2021 22:30:09 +0100 [thread overview]
Message-ID: <CAA=Fs0ks04VYJ56znpX2BjZX_7GCa=hkK+8TwifB_LwCry+y7g@mail.gmail.com> (raw)
In-Reply-To: <20210823193028.12391-1-straube.linux@gmail.com>
On Mon, 23 Aug 2021 at 20:31, Michael Straube <straube.linux@gmail.com> wrote:
>
> 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 <straube.linux@gmail.com>
> ---
> 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
>
Dear Michael,
Looks good to me. Thanks.
Acked-by: Phillip Potter <phil@philpotter.co.uk>
Regards,
Phil
prev parent reply other threads:[~2021-08-23 21:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-23 19:30 [PATCH] staging: r8188eu: remove 5 GHz code Michael Straube
2021-08-23 19:50 ` Martin Kaiser
2021-08-23 21:30 ` Phillip Potter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA=Fs0ks04VYJ56znpX2BjZX_7GCa=hkK+8TwifB_LwCry+y7g@mail.gmail.com' \
--to=phil@philpotter.co.uk \
--cc=Larry.Finger@lwfinger.net \
--cc=fmdefrancesco@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=martin@kaiser.cx \
--cc=straube.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).