From patchwork Tue Dec 16 08:53:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 5499911 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 98C5F9F326 for ; Tue, 16 Dec 2014 08:54:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2CCB20A20 for ; Tue, 16 Dec 2014 08:54:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D15C520A1F for ; Tue, 16 Dec 2014 08:54:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbaLPIy0 (ORCPT ); Tue, 16 Dec 2014 03:54:26 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:43024 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751697AbaLPIyZ (ORCPT ); Tue, 16 Dec 2014 03:54:25 -0500 Received: by mail-wg0-f52.google.com with SMTP id x12so16663123wgg.11 for ; Tue, 16 Dec 2014 00:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rR53ZlwcHLy6dMpFOAsgSDRFfvhALEGHpxgZrOswTNI=; b=YR9GzQeM80i3Y2vJsNoPuXq7oi5jLC2GSo7lEKr0u1g6bXUMsFdCFXSZCU7mBWg/NK BYIrD4UFp8cxKAZJ+x27mEOQwCCZu8MbwKHNErUvOy7jHUebBlh7EuzTxeSSvk85FML+ 8aIMrQiYxSo9vgNsm/fXEMUNoOxInxeOt+MCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rR53ZlwcHLy6dMpFOAsgSDRFfvhALEGHpxgZrOswTNI=; b=iCyPYbJE+160PXgK/+Z98LU6U1aFSuvH8o/uV63UbhjJ6dB4h1ygHvmMIS1Lylzsn5 FrW8M4vfU1g3RaVIpj/offEmXVEnzFhJrXk9WYEDnYbx2zGm0go4S6k8sfcvTCpB6xF1 Rd8DGIeaabUU9v7+wdnjzNYQLgzBZxqQuWdC6r2z2d5q6ODQgpxbIC66RMU5/NkSMtTn fWdVAeMG8JQRSbH6z7nJf+1FcAVWptgPLzFc7PTvNM4OnwfVfBW5lHV+nhJ/21Mh4kqV 08c/DvDbCByO+Hd4DyNEQ6it4UFU9Uuob1CHh8eGr/AroKeeLdKUBeoEFr8OgVKrZwD4 O1vw== X-Gm-Message-State: ALoCoQkinznKLmyD/zEbt5qE8bSGaFLKcU8jHpgxO36/4O62osad1nBA9LiTDgepnkLXKv2PV69pTeDsx14OlkoUDbLqNqFsk2EFjylBE6RqPUwTdWrBYw4iKx5OD56tXu5kZLmjKm6k X-Received: by 10.194.6.7 with SMTP id w7mr58380371wjw.25.1418720063903; Tue, 16 Dec 2014 00:54:23 -0800 (PST) Received: from localhost.localdomain (apn-46-169-60-23.dynamic.gprs.plus.pl. [46.169.60.23]) by mx.google.com with ESMTPSA id wx3sm270972wjc.19.2014.12.16.00.54.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Dec 2014 00:54:22 -0800 (PST) From: Janusz Dziedzic To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Janusz Dziedzic Subject: [PATCH 2/2] ath10k: send (re)assoc peer command when NSS changed Date: Tue, 16 Dec 2014 09:53:00 +0100 Message-Id: <1418719980-19753-2-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418719980-19753-1-git-send-email-janusz.dziedzic@tieto.com> References: <1418719980-19753-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Assoc peer command contain information about NSS. When we will get IEEE80211_RC_NSS_CHANGED we should also send (re) assoc peer command to be sure firmware will know about it and RC will work correctly. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath10k/mac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index c9e7995..05fd620 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3592,8 +3592,9 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk) sta->addr, smps, err); } - if (changed & IEEE80211_RC_SUPP_RATES_CHANGED) { - ath10k_dbg(ar, ATH10K_DBG_MAC, "mac update sta %pM supp rates\n", + if (changed & IEEE80211_RC_SUPP_RATES_CHANGED || + changed & IEEE80211_RC_NSS_CHANGED) { + ath10k_dbg(ar, ATH10K_DBG_MAC, "mac update sta %pM supp rates/nss\n", sta->addr); err = ath10k_station_assoc(ar, arvif->vif, sta, true);