From patchwork Fri Jul 8 12:59:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 9220823 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9CD3E6044F for ; Fri, 8 Jul 2016 12:59:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B4072878F for ; Fri, 8 Jul 2016 12:59:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FE9E28791; Fri, 8 Jul 2016 12:59:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D7F2878F for ; Fri, 8 Jul 2016 12:59:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755251AbcGHM7u (ORCPT ); Fri, 8 Jul 2016 08:59:50 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:62165 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754903AbcGHM7e convert rfc822-to-8bit (ORCPT ); Fri, 8 Jul 2016 08:59:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1467982774; x=1499518774; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yX5U9uKilXKwthQwJA7o80n6tD2suf4Lv9PSDXgfGwY=; b=Hcdn1Xw7KRHbkJ3vg+dCezZ7YaRjSvy/yY3I6foMAelhkq8kr7AHYK49 VTM0fnOKH6csQUZ/p0CgDsDZZIa3rCqmsM3X1dH7FWxJoQQ9hlh9oDTEN li1mjTfBq/RGX/HfLUqz1wIiSd2px8xOFTURurQVWLJmUMyHQRch1Cxiw U=; X-IronPort-AV: E=Sophos;i="5.28,329,1464678000"; d="scan'208";a="301962438" Received: from unknown (HELO ironmsg02-R.qualcomm.com) ([10.53.140.106]) by wolverine02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Jul 2016 05:59:33 -0700 X-IronPort-AV: E=McAfee;i="5700,7163,8219"; a="766647837" Received: from nasanexm01g.na.qualcomm.com ([10.85.0.33]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 08 Jul 2016 05:59:33 -0700 Received: from aphydexm01a.ap.qualcomm.com (10.252.127.10) by NASANEXM01G.na.qualcomm.com (10.85.0.33) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 8 Jul 2016 05:59:32 -0700 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by aphydexm01a.ap.qualcomm.com (10.252.127.10) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 8 Jul 2016 18:29:27 +0530 Received: from aphydexm01b.ap.qualcomm.com ([10.252.127.11]) by aphydexm01b.ap.qualcomm.com ([10.252.127.11]) with mapi id 15.00.1178.000; Fri, 8 Jul 2016 18:29:27 +0530 From: "Manoharan, Rajkumar" To: Krishna Chaitanya CC: linux-wireless , ath10k Subject: Re: ath10k + iw set bitrates is causing FW crash Thread-Topic: ath10k + iw set bitrates is causing FW crash Thread-Index: AQHR2G+T1eIkIme5UE+r3U2t7k/kPqAM760AgAFgbAP//8JJgIAAbFIJ Date: Fri, 8 Jul 2016 12:59:26 +0000 Message-ID: <1467982766213.21223@qti.qualcomm.com> References: <1467972560885.99812@qti.qualcomm.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [199.106.107.6] MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I think security failures are due to peer unmap & map upon reassoc. Can you please try below change? -Rajkumar diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 5e1cc8f4c43c..f7f04bb46fc8 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -5745,8 +5745,9 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk) sta->addr, smps, err); } - if (changed & IEEE80211_RC_SUPP_RATES_CHANGED || - changed & IEEE80211_RC_NSS_CHANGED) { + if ((changed & IEEE80211_RC_SUPP_RATES_CHANGED || + changed & IEEE80211_RC_NSS_CHANGED) && + (arvif->vif->type == NL80211_IFTYPE_ADHOC)) { ath10k_dbg(ar, ATH10K_DBG_MAC, "mac update sta %pM supp rates/nss\n", sta->addr);