From patchwork Tue Jan 5 10:35:34 2016 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: 7953641 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C19BDBEEE5 for ; Tue, 5 Jan 2016 10:36:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDB8620389 for ; Tue, 5 Jan 2016 10:36:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F07820357 for ; Tue, 5 Jan 2016 10:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbcAEKgD (ORCPT ); Tue, 5 Jan 2016 05:36:03 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:34864 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbcAEKf6 (ORCPT ); Tue, 5 Jan 2016 05:35:58 -0500 Received: by mail-lb0-f180.google.com with SMTP id bc4so172036476lbc.2 for ; Tue, 05 Jan 2016 02:35:57 -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=S2tmHIrvPi6IcjegLULREzH9HbQBNJFG1z3L8+MGkj0=; b=3FjreeP+qUM3OXzZSi7O7oKGViLXtQ27CKKtClp4o/VJXEQ/6qXELWFgWy/JTRwIWd 8UVmapm7f/E15eNgSBSr9HO0sYKXmF69ZP4cvyKyCrQw0KXtyAfqahA4d+R5g9ftl8+s +gisORzqEHxvO0lNK5xzNPIrjLWVpN9Di/Mlk= 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=S2tmHIrvPi6IcjegLULREzH9HbQBNJFG1z3L8+MGkj0=; b=L/No15UyTvs5SCT+eS1MXnt7e3y9aotql3DnkHX6Y0+P9PekoZ/+TP1bcJBHfNktpG dIs3zvemgtDqNASEZoTrPMCPwVI/edd939GFCC/aUEgS8mAc7IRf6E7cjtVapb1HyHmH lnOzwpYtt+/5rMQVzHbG7hGFCPx84oyTMJ/OwFDlhWSkTwsQYNYiGdLIiI61XtoHABk6 XejvYPFfY08DdRaOYLzieaYaDPQTOscymBjzGgwL3dhzBzlmBGGqs2muT9FobkRIQ+oD I7QqOrFh6vt6s6tAfBr3zdoRowN/Yw+dSh4Zcb62TG/oLplaSYsSxQPEZDIAPwNTz/H8 HiFw== X-Gm-Message-State: ALoCoQm9JmtJuQX4ZKT+x9SKaJz8G65DGtaAhp1J3PbrIgNdg282ZNfdhDZqx5UP8prWyQwTwj4dFqNJB7j7+fC79YN64iuvCH70UR2NAwwdNa0CPyKTTIywmm9ZAdT5dZKHQAvo4TriLPLTOqLmTez53Qgq0Z9IpV6FgDzoJv6eMg/4vvwdig0Ix99UNTyKA3kyhaHYGLG9Ewvyx0/0+xtsQufaZG9a9Q== X-Received: by 10.112.138.135 with SMTP id qq7mr33035249lbb.21.1451990156576; Tue, 05 Jan 2016 02:35:56 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id bm8sm16295355lbb.35.2016.01.05.02.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jan 2016 02:35:55 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, j@w1.fi, Janusz Dziedzic Subject: [PATCH v2 2/2] ath9k: use min rate when MCC and nullfunc Date: Tue, 5 Jan 2016 11:35:34 +0100 Message-Id: <1451990134-15183-2-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1451990134-15183-1-git-send-email-janusz.dziedzic@tieto.com> References: <1451990134-15183-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,RP_MATCHES_RCVD,T_DKIM_INVALID,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 In case of nullfunc and MCC case use lowest possible rates. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index b81f65c..988c859 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -1155,6 +1155,7 @@ ath_chanctx_send_vif_ps_frame(struct ath_softc *sc, struct ath_vif *avp, skb->priority = 7; skb_set_queue_mapping(skb, IEEE80211_AC_VO); + IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_USE_MINRATE; if (!ieee80211_tx_prepare_skb(sc->hw, vif, skb, band, &sta)) { dev_kfree_skb_any(skb); return false;