From patchwork Mon May 11 09:39:53 2015 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: 6375051 X-Patchwork-Delegate: johannes@sipsolutions.net 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C54D39F3E9 for ; Mon, 11 May 2015 09:40:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC2E22035B for ; Mon, 11 May 2015 09:40:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 234FB20320 for ; Mon, 11 May 2015 09:40:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752583AbbEKJkB (ORCPT ); Mon, 11 May 2015 05:40:01 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:33791 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752722AbbEKJj7 (ORCPT ); Mon, 11 May 2015 05:39:59 -0400 Received: by layy10 with SMTP id y10so89166247lay.0 for ; Mon, 11 May 2015 02:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=IIAKFAfE3I+tctu5LuzbF5Bemdcf7xQirAsqjwDHIUE=; b=WCkQkE4WLPe9fLvQdglFMpJ6ELVruNYu1w6K4S/jhkKzhmtUEe//qVXTtreHuTQIwW teNTHyIa7deo7GlBhUgWixTwSUVpYbxeIaY2vf3xEuSo24ifGCJvkXSm81Yl6I3wDEgZ Gh9hOxU1bTvCVN5saIS8QSATLXiaNcfsawy7Q= 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; bh=IIAKFAfE3I+tctu5LuzbF5Bemdcf7xQirAsqjwDHIUE=; b=nEMuX2alU3jHVDayS26Fj02qvh0qzVZzOCD4JpUt1aMsmi1/rWIooyEOwBlGn4vVOv ftTQuxxyycCG47YmNB9XILhu2Uha8u/2K8GSncsTtRW/MJXWxheeIRsd4Tn6RGidMjlg feJeJp5HBwLw9PmQWSUo+B6uM1KY/Y5M8ndm8HdCCotvEB/5bsbvKfIeXufw4D1OxRu0 gFat9NYO6uZx0a8Mg8eJmoO9vjBib3jmZ7WOPqnhnjw4rikyMB2zOz6AlTI6zH2TXeiQ k3eDVMhSRdJ+9QjUOqZ9p4KofgowWW98VSSvy/NH1DAkeDSCvDeKWbJ+ee4wEw8wwA9p zL7w== X-Gm-Message-State: ALoCoQk7oXx6kresg+KeWSkxMn4h+rJe8v5T18kF5wUhEQYChJxe9G+mb4i8lkUoV2CVWMkWe2YHOoxYImQ0FJNpMVm8PMf+2y4hSgPMPaMpAB1Wi+R+7DxUTrF6tDQVKvZ3YWZTtHZZviUkU+JpG5AjAdp9ccDh7kXSKDVgJBbmbe82giwdTCMFFlH91H/P2sCKaqBkQnN3 X-Received: by 10.112.163.168 with SMTP id yj8mr7419225lbb.36.1431337197186; Mon, 11 May 2015 02:39:57 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id j1sm2932147lbc.15.2015.05.11.02.39.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 02:39:56 -0700 (PDT) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Janusz Dziedzic Subject: [PATCH] mac80211: IBSS, clear fast_sta when update rates Date: Mon, 11 May 2015 11:39:53 +0200 Message-Id: <1431337193-17472-1-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 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 This is required to handle sta.wme correctly after update rates (eg. when using HT/VHT) when driver using IEEE80211_HW_SUPPORT_FAST_XMIT. In other case fast tx path will not add QOS data and in case of ath10k driver (rate control in the HW) only legacy rates will be used. Signed-off-by: Janusz Dziedzic --- net/mac80211/ibss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index bfef1b2..f76414e 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -1087,6 +1087,7 @@ static void ieee80211_update_sta_info(struct ieee80211_sub_if_data *sdata, if (sta->sta.rx_nss != rx_nss) changed |= IEEE80211_RC_NSS_CHANGED; + ieee80211_clear_fast_xmit(sta); drv_sta_rc_update(local, sdata, &sta->sta, changed); }