Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3827469ybl; Tue, 20 Aug 2019 02:55:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmaWdhfcv9SsZkxuQUnJd2mq6Z0RiKW57ay3K22hVs6K7brPJBBALjoDb0vq/JiYWc+27Z X-Received: by 2002:a17:90a:b104:: with SMTP id z4mr25411910pjq.120.1566294945705; Tue, 20 Aug 2019 02:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566294945; cv=none; d=google.com; s=arc-20160816; b=nBueVNmpRvIv5YFVpWSrdkRyvW/lZ68b8xFyyFYGxrErci/6F1xr0kiV9z8aG9SM// M4+XxpKi4LHVwMWgyr3NRxwCebXep7azJH0XFWFd+oeUtoMVTb1G7hf9J/Wb83l0ZQ0i oPtqkdcr8BkY/wfgmY/ubDMOWWW2Tku/i8HaSGuxaueX72LxSIlmkJP7bGm9Ylh/IKXY AewVyYp2JWcyKMajLBNFwvJq2JxbWBXUz27H8vk0E/XBZO9J7CNFZqComubJ3I2AF/lx m++1999O1F/RM76POe9ubNyDGKJWpNgVd7TxiBFkUTLO7H+haPXz7XYryWSoFicSsGGP fyHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=tTp1fjksS0JpZH20cKYmebD4iIPFT82tIq/AMBeJzhQ=; b=qNk/OJgphGLWA9Zpe+MtQmSKsczRGU8rsIrXZSpcv6VMLzY/cbqhruZuWI/mLrVH5l kEq5s71QPYhhLmGoZbn2lWANowt28VZGcLmKH4/hIpbNB7+6FzEuRChSjb1XIPs3JLE7 f3gEnCgu/ax4W0S/wUawZJCFaYGLqOYZi1Fd237zveR0xXhnthlhaXWF/M6VJ5keqP9l RR2lDneMgmdA62n4eZIA5sgkflwXjWQF8SQr+jmIM+Fvi5aEamMLKKEiUvYa8h8RcQzN gXNth4ssWEAuQA99w5IVVdPysEoYLPB/lLNigGLih2ztHjDvk6932mPDHjPIN/BtSCVp 073w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=LRrmS6+b; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si10855431pjr.3.2019.08.20.02.55.31; Tue, 20 Aug 2019 02:55:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=LRrmS6+b; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729508AbfHTJyv (ORCPT + 99 others); Tue, 20 Aug 2019 05:54:51 -0400 Received: from nbd.name ([46.4.11.11]:35134 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbfHTJyv (ORCPT ); Tue, 20 Aug 2019 05:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tTp1fjksS0JpZH20cKYmebD4iIPFT82tIq/AMBeJzhQ=; b=LRrmS6+bVD1sXmNJBo7MIFHByt 25mvakMZJrnze/9fA1a+Okg2DR/Rqhc8zKGf6JFZR7jmEIgKOLFb71smCg8ewKqEX49YOSzf9CRpO B9fnVX6mi3mt+9zQtYq9R8WmQuhHOKNWxrayZF9gm9H+kgqXrA32Oh1FgeywhHeqegeY=; Received: from p54ae9443.dip0.t-ipconnect.de ([84.174.148.67] helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i00qn-0003nu-V9; Tue, 20 Aug 2019 11:54:50 +0200 Received: by maeck.local (Postfix, from userid 501) id 5788063E610C; Tue, 20 Aug 2019 11:54:49 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH 1/4] mac80211: minstrel_ht: fix per-group max throughput rate initialization Date: Tue, 20 Aug 2019 11:54:46 +0200 Message-Id: <20190820095449.45255-1-nbd@nbd.name> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The group number needs to be multiplied by the number of rates per group to get the full rate index Fixes: 5935839ad73583 ("mac80211: improve minstrel_ht rate sorting by throughput & probability") Signed-off-by: Felix Fietkau --- 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 5a882da82f0e..ba230b037257 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -575,7 +575,7 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) /* (re)Initialize group rate indexes */ for(j = 0; j < MAX_THR_RATES; j++) - tmp_group_tp_rate[j] = group; + tmp_group_tp_rate[j] = MCS_GROUP_RATES * group; for (i = 0; i < MCS_GROUP_RATES; i++) { if (!(mi->supported[group] & BIT(i))) -- 2.17.0