Return-path: Received: from mail-ig0-f171.google.com ([209.85.213.171]:35051 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900AbcA2ETu (ORCPT ); Thu, 28 Jan 2016 23:19:50 -0500 MIME-Version: 1.0 In-Reply-To: <56AAC66C.1080800@lwfinger.net> References: <1453983185.2217.12.camel@sipsolutions.net> <1454013625.2332.9.camel@sipsolutions.net> <1454019155.2332.15.camel@sipsolutions.net> <56AAC66C.1080800@lwfinger.net> Date: Thu, 28 Jan 2016 20:19:49 -0800 Message-ID: (sfid-20160129_051958_309757_95B8C443) Subject: Re: WARNING at net/mac80211/rate.c:513 ieee80211_get_tx_rates [mac80211] From: Linus Torvalds To: Larry Finger Cc: Johannes Berg , Chaoming Li , Kalle Valo , David Miller , Linux Wireless List , Network Development Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Jan 28, 2016 at 5:54 PM, Larry Finger wrote: > > I have been running an RTL8821AE since kernel 3.18 without hitting this > problem using a TRENDnet AC1750 dual-band AP. The UniFi may be doing > something that the driver is not expecting. I've had issues with unifi ap's before, but to be honest, I've had issues with lots of hotel and airport wifi too. I don't think the Unifi APs are outside of the normal spectrum.. > Attached is a minimal patch that comments out the "vht_cap->vht_supported = > true;" statement for both RTL8821AE and RTL8812AE in > _rtl_init_hw_vht_capab(). Does that allow your system to work? That works too, yes. > The patch > also logs some information regarding the channelplan and the country code. > Please let me know the values for those. rtlwifi: **** channelplan 127 rtlwifi: **** country code 13 > I apparently missed a previous complaint about this issue. If you still have > the reference, please send it to me. So googling for similar issues, I found https://bugzilla.redhat.com/show_bug.cgi?id=1168467 https://bugzilla.redhat.com/show_bug.cgi?id=1293136 where that second one in particular looks very like my issue ("Association succeeds, and ARP/DHCP work, but no IP frames can be transmitted"). In both cases you have to go into the dmesg attachment to see that its rtlwifi in both cases). And there's an ubuntuforum thread http://ubuntuforums.org/showthread.php?t=2226009&page=2 where it you follow the thing, it's an rtl chip on a PCI card, and it has very similar "connected but no internet" behavior, along with the "net/mac80211/rate.c:526" warning (different line numbers, different kernel version, but it smells similar). Or this one: http://forums.debian.net/viewtopic.php?f=5&t=111781 which is also rtl-wifi, and also has the "associated, connected, got an IP, but no data, not even a ping" behavior. It also has the warning, but it looks different in other ways (2.4GHz only and actually says it's not doing HT/VHT). So I don't know. The warning in net/mac80211/rate.c:does seem to be associated with the realtek driver. Linus