Return-path: Received: from mail-oi0-f68.google.com ([209.85.218.68]:32986 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756863AbcA2Tmz (ORCPT ); Fri, 29 Jan 2016 14:42:55 -0500 Subject: Re: WARNING at net/mac80211/rate.c:513 ieee80211_get_tx_rates [mac80211] To: Linus Torvalds References: <1453983185.2217.12.camel@sipsolutions.net> <1454013625.2332.9.camel@sipsolutions.net> <1454019155.2332.15.camel@sipsolutions.net> <56AAC66C.1080800@lwfinger.net> <1454056380.3369.2.camel@sipsolutions.net> <1454084146.2800.0.camel@sipsolutions.net> <56ABA73C.1060504@lwfinger.net> Cc: Johannes Berg , Chaoming Li , Kalle Valo , David Miller , Linux Wireless List , Network Development From: Larry Finger Message-ID: <56ABC0BC.9010202@lwfinger.net> (sfid-20160129_204259_634646_F6E902AC) Date: Fri, 29 Jan 2016 13:42:52 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 01/29/2016 12:39 PM, Linus Torvalds wrote: > On Fri, Jan 29, 2016 at 9:54 AM, Larry Finger wrote: >> >> The test patch that Johannes sent earlier was close. The section needed to >> add VHT rates is: > > Hmm. This looks pretty much exactly like what I already tried (I had > fixed Johannes' patch to use "vht_cap" already, since it didn't > compile otherwise). > > So the only difference is that it only checks WIRELESS_MODE_AC_5G. > > But it worked for me this time. I have no idea why. > > Maybe Johannes' patch actually always worked for me, but I just had a > transient problem that made me think it didn't. I think I only booted > it once, and went "oh, ok, no network, that didn't work". Thanks for testing. Upon reflection, it really should check the other WIRELESS_MODE_AC_x bits. Johannes' patch was indeed correct. With my AP setup changed, I get about 100 Mb/s RX using netperf. TX is still bad. @Johannes: OK if I make you the author of the final version of the patch? Larry