Changeset 37078


Ignore:
Timestamp:
2013-06-28T21:14:54+02:00 (5 years ago)
Author:
nbd
Message:

mac80211: fix cck rate sampling in minstrel_ht

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/patches/300-pending_work.patch

    r37013 r37078  
    333333  
    334334                mutex_unlock(&priv->htc_pm_lock); 
     335--- a/net/mac80211/rc80211_minstrel_ht.c 
     336+++ b/net/mac80211/rc80211_minstrel_ht.c 
     337@@ -804,10 +804,18 @@ minstrel_ht_get_rate(void *priv, struct  
     338  
     339        sample_group = &minstrel_mcs_groups[sample_idx / MCS_GROUP_RATES]; 
     340        info->flags |= IEEE80211_TX_CTL_RATE_CTRL_PROBE; 
     341+       rate->count = 1; 
     342+ 
     343+       if (sample_idx / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) { 
     344+               int idx = sample_idx % ARRAY_SIZE(mp->cck_rates); 
     345+               rate->idx = mp->cck_rates[idx]; 
     346+               rate->flags = 0; 
     347+               return; 
     348+       } 
     349+ 
     350        rate->idx = sample_idx % MCS_GROUP_RATES + 
     351                    (sample_group->streams - 1) * MCS_GROUP_RATES; 
     352        rate->flags = IEEE80211_TX_RC_MCS | sample_group->flags; 
     353-       rate->count = 1; 
     354 } 
     355  
     356 static void 
Note: See TracChangeset for help on using the changeset viewer.