From patchwork Thu Apr 18 12:24:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 2460391 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 CF005DF2E5 for ; Thu, 18 Apr 2013 12:29:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754675Ab3DRM3E (ORCPT ); Thu, 18 Apr 2013 08:29:04 -0400 Received: from mail-ea0-f180.google.com ([209.85.215.180]:59031 "EHLO mail-ea0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754500Ab3DRM3C (ORCPT ); Thu, 18 Apr 2013 08:29:02 -0400 Received: by mail-ea0-f180.google.com with SMTP id d10so1212592eaj.39 for ; Thu, 18 Apr 2013 05:29:00 -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=MDn1Jcv/mfxVOJtFX9ecrmRB+wrO657CVN3EOhsGNkuuo/CR05aFNVA1+JcswaDHtd BbzFQ6R5mvyr5dQFYo7iz6mOQ5vTzeUt3UWYoOSLxdTK9mf0Kfayv0W8XcZYmJ8TEpkd S4DhexVp1j7fS+RW5yUR8DLFW4KULdxvFr8VdipVJz9U6emIceTBROuFbKQKZAlXT2PV dP1oY1yeoIqeHmg8Rjd2mKd5TyJnt8bVk+WTVsKUMp2Xxaio32Gpiv99XWy1yRESM4zy tzSCsq9RMtNoHgaZh3p2zlb2Pmzwr+f/JefmfuLFBK1pFpWUynPHb7lvHe6DhOXt/eiS LdCg== X-Received: by 10.15.94.200 with SMTP id bb48mr29956291eeb.21.1366288140609; Thu, 18 Apr 2013 05:29:00 -0700 (PDT) Received: from magnum.frso.rivierawaves.com (vpn.rivierawaves.com. [91.151.119.162]) by mx.google.com with ESMTPS id u44sm15495974eel.7.2013.04.18.05.28.59 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 05:29:00 -0700 (PDT) From: Karl Beldan To: Johannes Berg Cc: linux-wireless , Karl Beldan , Karl Beldan , Felix Fietkau Subject: [PATCH 2/2] mac80211: minstrel_ht: initialize rates selection Date: Thu, 18 Apr 2013 14:24:43 +0200 Message-Id: <1366287883-24054-2-git-send-email-karl.beldan@gmail.com> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1366287883-24054-1-git-send-email-karl.beldan@gmail.com> References: <1366287883-24054-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: