From patchwork Tue Oct 7 13:53:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 5046191 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8B1EFC11AB for ; Tue, 7 Oct 2014 13:54:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B416A201F7 for ; Tue, 7 Oct 2014 13:54:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB410201F5 for ; Tue, 7 Oct 2014 13:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753471AbaJGNyA (ORCPT ); Tue, 7 Oct 2014 09:54:00 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:57473 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbaJGNx7 (ORCPT ); Tue, 7 Oct 2014 09:53:59 -0400 Received: by mail-wi0-f174.google.com with SMTP id cc10so7923645wib.7 for ; Tue, 07 Oct 2014 06:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=CVeYBg3H0hUIbw1OneWN7gj8Vm/yEbj0sRjGet/omKU=; b=DEcNh2yU4A7WvHpTWlfBHmJG6lOKscRfLuXTtvi2nJHesFq87qlLJU4SxesutGpxgi WE8Uk87En4SmOPr+RaPHyfwn0AyE6CXxLFtP1uiOmQAnodUqF83qAA2zecmtZJ39ior+ 2hqpzxisnp1q8i7L0Eb4fPcRNmtqCTPssgWJDXBmvoreuklJMBvNx6CgHMRfZa5MYHm3 BoG3oE75FCxh8ztCMT6tjRklC7471yQfHuEvpsz82WnX0e+n+HM0kfoxta5KrnCjDQy/ G1fWjX7DPe/09D0aPwqiyd+4Yqf7c8JMcY+ffOtMK9TtD4TCumcbycja5zFlQLlhNgut kE1g== X-Received: by 10.180.102.7 with SMTP id fk7mr4749439wib.77.1412690038118; Tue, 07 Oct 2014 06:53:58 -0700 (PDT) Received: from magnum.frso.rivierawaves.com (vpn.rivierawaves.com. [91.151.119.162]) by mx.google.com with ESMTPSA id k2sm8227104wiz.18.2014.10.07.06.53.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Oct 2014 06:53:57 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan Subject: [PATCH] mac80211/trivial: fix typo in starting baserate for rts_cts_rate_idx Date: Tue, 7 Oct 2014 15:53:38 +0200 Message-Id: <1412690018-18429-1-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 2.0.1 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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 From: Karl Beldan Fixes: 5253ffb8 ("mac80211: always pick a basic rate to tx RTS/CTS for pre-HT rates") Signed-off-by: Karl Beldan --- net/mac80211/rate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index 8fdadfd..6081329 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c @@ -448,7 +448,7 @@ static void rate_fixup_ratelist(struct ieee80211_vif *vif, */ if (!(rates[0].flags & IEEE80211_TX_RC_MCS)) { u32 basic_rates = vif->bss_conf.basic_rates; - s8 baserate = basic_rates ? ffs(basic_rates - 1) : 0; + s8 baserate = basic_rates ? ffs(basic_rates) - 1 : 0; rate = &sband->bitrates[rates[0].idx];