[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+55aFz2QbPdFP1u5OWQgs=VkD1N1VcE7RUoeAoA9UAkvpVT4Q@mail.gmail.com>
Date: Fri, 29 Jan 2016 12:04:03 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Larry Finger <Larry.Finger@...inger.net>
Cc: Johannes Berg <johannes@...solutions.net>,
Chaoming Li <chaoming_li@...lsil.com.cn>,
Kalle Valo <kvalo@...eaurora.org>,
David Miller <davem@...emloft.net>,
Linux Wireless List <linux-wireless@...r.kernel.org>,
Network Development <netdev@...r.kernel.org>
Subject: Re: WARNING at net/mac80211/rate.c:513 ieee80211_get_tx_rates [mac80211]
On Fri, Jan 29, 2016 at 11:42 AM, Larry Finger
<Larry.Finger@...inger.net> wrote:
>
> Thanks for testing.
>
> Upon reflection, it really should check the other WIRELESS_MODE_AC_x bits.
> Johannes' patch was indeed correct.
I just retested with this incremental (and whitespace-damaged) patch:
@@ -139,7 +139,9 @@ static void _rtl_rc_rate_set_series(struct
rtl_priv *rtlpriv,
(wireless_mode == WIRELESS_MODE_N_24G)))
rate->flags |= IEEE80211_TX_RC_MCS;
if (sta && sta->vht_cap.vht_supported &&
- (wireless_mode == WIRELESS_MODE_AC_5G))
+ ((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;
}
}
which brings it in line with Johannes' patch, and it does indeed still work.
I think marking it for stable is also the right thing to do - the
driver clearly doesn't work well in a wide-channel AC environment
otherwise, and I assume it's going to be more and more common..
Linus
Powered by blists - more mailing lists