public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@codeaurora•org>
To: Geert Uytterhoeven <geert@linux-m68k•org>
Cc: David Miller <davem@davemloft•net>,
	Linus Torvalds <torvalds@linux-foundation•org>,
	linux-wireless <linux-wireless@vger•kernel.org>,
	"netdev\@vger.kernel.org" <netdev@vger•kernel.org>,
	"linux-kernel\@vger.kernel.org" <linux-kernel@vger•kernel.org>,
	Larry.Finger@lwfinger•net
Subject: Re: pull-request: wireless-drivers 2016-02-18
Date: Fri, 04 Mar 2016 17:29:25 +0200	[thread overview]
Message-ID: <87y49yw9be.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <CAMuHMdWVJ+rC1w_-mHdWhDJ_q++W_hp-Fg4JTjSSSseS1aDd5Q@mail.gmail.com> (Geert Uytterhoeven's message of "Mon, 29 Feb 2016 09:35:21 +0100")

(Adding Larry)

Geert Uytterhoeven <geert@linux-m68k•org> writes:

> On Thu, Feb 18, 2016 at 4:28 PM, Kalle Valo <kvalo@codeaurora•org> wrote:
>
>> rtlwifi
>>
>> * fix broken VHT (802.11ac) support, reported by Linus
>
> That's commit d76d65fd26951498144029c24852c4d54ee512d9
>
> drivers/net/wireless/realtek/rtlwifi/rc.c: In function
> ‘_rtl_rc_rate_set_series’:
> drivers/net/wireless/realtek/rtlwifi/rc.c:144: warning: comparison is
> always false due to limited range of data type
>
>                 if (sta && sta->vht_cap.vht_supported &&
>                     (wireless_mode == WIRELESS_MODE_AC_5G ||
>                      wireless_mode == WIRELESS_MODE_AC_24G ||
>                      wireless_mode == WIRELESS_MODE_AC_ONLY))
>                         rate->flags |= IEEE80211_TX_RC_VHT_MCS;
>
> u8 wireless_mode = 0;
>
> enum wireless_mode {
>         ...
>         WIRELESS_MODE_AC_ONLY = 0x100,
>
> How is that supposed to work?

I have no idea what could be the difference, for example, between AC_5G
and AC_ONLY. Maybe AC_ONLY mode is not really used in normal setups and
that's why the bug doesn't break anything? Larry, do you know?

Anyway, Larry has a patch for this but I'm planning to send it to 4.6 as
I didn't think it as that urgent:

rtlwifi: Fix size of wireless mode variable

https://patchwork.kernel.org/patch/8425191/

-- 
Kalle Valo

  reply	other threads:[~2016-03-04 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 15:28 pull-request: wireless-drivers 2016-02-18 Kalle Valo
2016-02-19 20:51 ` David Miller
     [not found] ` <87mvqyqbqp.fsf-HodKDYzPHsUD5k0oWYwrnHL1okKdlPRT@public.gmane.org>
2016-02-29  8:35   ` Geert Uytterhoeven
2016-03-04 15:29     ` Kalle Valo [this message]
2016-03-04 17:14       ` Larry Finger

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=87y49yw9be.fsf@kamboji.qca.qualcomm.com \
    --to=kvalo@codeaurora$(echo .)org \
    --cc=Larry.Finger@lwfinger$(echo .)net \
    --cc=davem@davemloft$(echo .)net \
    --cc=geert@linux-m68k$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-wireless@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=torvalds@linux-foundation$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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