Return-path: Received: from mail-qk0-f180.google.com ([209.85.220.180]:32986 "EHLO mail-qk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbcLNFnQ (ORCPT ); Wed, 14 Dec 2016 00:43:16 -0500 Received: by mail-qk0-f180.google.com with SMTP id x190so9130135qkb.0 for ; Tue, 13 Dec 2016 21:43:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <583DD564.8040704@cococorp.com> <20161201070908.GB11953@atheros-ThinkPad-T61> <58421FA2.2020004@cococorp.com> <20161203124358.GB31861@atheros-ThinkPad-T61> <20161203124600.GC31861@atheros-ThinkPad-T61> <5845B325.6060002@cococorp.com> <58472E7B.7090603@cococorp.com> <58504113.2080702@cococorp.com> <5850831D.7020206@cococorp.com> From: Alexis Green Date: Tue, 13 Dec 2016 21:36:46 -0800 Message-ID: (sfid-20161214_064343_612322_7E5D6948) Subject: Re: ath10k firmware crashes in mesh mode on QCA9880 To: "Manoharan, Rajkumar" Cc: Benjamin Morgan , "Nagarajan, Ashok Raj" , Mohammed Shafi Shajakhan , "lede-dev@lists.infradead.org" , "linux-wireless@vger.kernel.org" , "ath10k@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Thank you for your help Rajkumar, We've traced the problem down to a peering issue. Looks like there was a missing compile flag that caused some kind of incongruence. My best guest is that beacons are generated by firmware and advertise support for AC mode, whereas wpa_supplicant, when not compiled with CONFIG_IEEE80211AC=y, sends mesh peering messages and creates peers without AC support, causing firmware to get confused. After recompiling supplicant with the correct flag, no more crashes were observed in casual testing. I submitted a pull request to LEDE to, hopefully, fix it in upstream. Best regards, Alexis On Tue, Dec 13, 2016 at 3:51 PM, Manoharan, Rajkumar wrote: >> Tested the 10.2.4.70.59-2 firmware and wpa_supplicant running WITHOUT >> encryption and it still crashes. I suspect this means wpa_supplicant is setting up >> the interface incorrectly and/or transmitting a malformed packet that is causing >> the driver to crash. >> > Ben, > > IIRC mesh support was validated in qca988x in VHT mode while ago. Either it could > be regression in driver/fw or lede mac80211 package. > > 1) Could you please try plain backports in lede w/o applying ath10k patches. > I do see 160MHz support in LEDE. > 2) There are some peer stats dump from your earlier log. Disable peer stats > by "peer_stats" debugfs. > 3) Please confirm the behavior with older firmware revisions. > 4) use iw to bring up open mesh to rule out wpa_s config > > -Rajkumar >