From patchwork Wed Nov 13 22:57:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 3179951 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 126F8C045B for ; Wed, 13 Nov 2013 22:57:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4141220944 for ; Wed, 13 Nov 2013 22:57:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7477420942 for ; Wed, 13 Nov 2013 22:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751047Ab3KMW5i (ORCPT ); Wed, 13 Nov 2013 17:57:38 -0500 Received: from mail-wg0-f45.google.com ([74.125.82.45]:48919 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750843Ab3KMW5i (ORCPT ); Wed, 13 Nov 2013 17:57:38 -0500 Received: by mail-wg0-f45.google.com with SMTP id a1so1121166wgh.12 for ; Wed, 13 Nov 2013 14:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YEpMKv7WzUUa551BZh2gKW88lK00BHdiq5vHCz42A9Q=; b=CIZAZOhmjWhSGjE0BqGP6LD+h+IdeFwgXuhi5P8+TWV41NY95z7Gqg6fqzqxdkRaed VHKvJOoEmw7AmZjBEjm54DIOEWP0KN/lHKjK2PvwZcY6BB2YMqdRk2B6x6Mtrb1zmIxX Xrqty638mrB62Tq9rRpGtLMCtNWa3CEHA/qwOZIXstzKYCjkTP4IbqHPBg+XbwzTNqSQ TpJD6Kh6MjFLgtC1ivEMZhld/zWMQKsx1X/BcrvygNTqN6vOxGEgXq6Dp/RfWQa4ciJ0 p6C1T4CveB2is4CMjVBfsSYbJUUSPitvLZtrOF+G/6silpsA5B2wTIYTyZwAkVbQ3Uej Hj0g== X-Received: by 10.194.71.72 with SMTP id s8mr3388695wju.52.1384383456845; Wed, 13 Nov 2013 14:57:36 -0800 (PST) Received: from magnum.frso.rivierawaves.com (ppp-seco11pa2-46-193-143.43.wb.wifirst.net. [46.193.143.43]) by mx.google.com with ESMTPSA id e1sm59942819wij.6.2013.11.13.14.57.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2013 14:57:36 -0800 (PST) From: Karl Beldan To: Johannes Berg Cc: Felix Fietkau , linux-wireless , Karl Beldan Subject: [RFC] squash! mac80211: minstrel_ht: add basic support for VHT rates <= 80MHz Date: Wed, 13 Nov 2013 23:57:03 +0100 Message-Id: <1384383423-23888-1-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1384266625-22431-1-git-send-email-karl.beldan@gmail.com> References: <1384266625-22431-1-git-send-email-karl.beldan@gmail.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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 From: Karl Beldan For v2: - typo in vht mcs mask in minstrel_ht_set_rate Signed-off-by: Karl Beldan --- net/mac80211/rc80211_minstrel_ht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 520da45..8572b8f 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -745,7 +745,7 @@ minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, idx = mp->cck_rates[index % ARRAY_SIZE(mp->cck_rates)]; else if (flags & IEEE80211_TX_RC_VHT_MCS) idx = ((group->streams - 1) << 4) | - ((index % MCS_GROUP_RATES) & ~0xF); + ((index % MCS_GROUP_RATES) & 0xF); else idx = index % MCS_GROUP_RATES + (group->streams - 1) * 8;