From patchwork Thu Apr 18 12:26:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 2460411 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D8A73DF2E5 for ; Thu, 18 Apr 2013 12:30:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755213Ab3DRMar (ORCPT ); Thu, 18 Apr 2013 08:30:47 -0400 Received: from mail-ea0-f182.google.com ([209.85.215.182]:41469 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500Ab3DRMaq (ORCPT ); Thu, 18 Apr 2013 08:30:46 -0400 Received: by mail-ea0-f182.google.com with SMTP id q15so1209237ead.27 for ; Thu, 18 Apr 2013 05:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=fmUbgCrOpqtrKRYdT9ZWgn0lz6jqhvBElB/CF5/Z1Ds=; b=lCuUvvKcXeG3yoy2MiJVp2s6av3v5j1lvRzt5xefhcZD99Tc5wdIPDa0ZPcdOLULKF 2zzYKrpsyV7f+ArEZ77r5iVHcvAkmq4JJfTuFYXDli879YDj6g7Ur7iySFL2O9bOiocR x5uXD3pxba+L/Co1ji96l6GNiJX3RYvAvZVxfkkqsoEr7bvP9vErWmBIMeCNlQ5N0nxh PPfVHvJ51LiH9Nex28GdZynGngZrnlY7rSrjyATFH9q4L6FWfglvOKkRkIAGJgHtudYy h7ox5LHW0lhEzwJf7H7s5VXuvW+tjP2aQLjfe7/buFNhvbgjTga0hvBmreFzhgNj/J4C l2ug== X-Received: by 10.14.89.69 with SMTP id b45mr29738936eef.10.1366288245172; Thu, 18 Apr 2013 05:30:45 -0700 (PDT) Received: from magnum.frso.rivierawaves.com (vpn.rivierawaves.com. [91.151.119.162]) by mx.google.com with ESMTPS id bj2sm15540499eeb.1.2013.04.18.05.30.43 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 05:30:44 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan , Felix Fietkau Subject: [PATCH v2 2/2] mac80211: minstrel_ht: initialize rates selection Date: Thu, 18 Apr 2013 14:26:21 +0200 Message-Id: <1366287981-24134-2-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1366287981-24134-1-git-send-email-karl.beldan@gmail.com> References: <1366287981-24134-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 From: Karl Beldan Initialize {mp,mi}->{max_tp_rate,max_tp_rate2,max_prob_rate} in minstrel_ht's rate_init and rate_update. Signed-off-by: Karl Beldan --- net/mac80211/rc80211_minstrel_ht.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index eb6dc3f..5768cc0 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -907,6 +907,9 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, if (!n_supported) goto use_legacy; + /* init {mi,mi->groups[*]}->{max_tp_rate,max_tp_rate2,max_prob_rate} */ + minstrel_ht_update_stats(mp, mi); + return; use_legacy: