Return-path: 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) 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> (sfid-20130418_142907_149835_F0D27568) 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 List-ID: 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: -- 1.8.2