Changeset 20040


Ignore:
Timestamp:
2010-03-07T19:35:39+01:00 (8 years ago)
Author:
nbd
Message:

mac80211: fix a few more minstrel_ht bugs (thx to Christian Lamparter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/560-minstrel_ht.patch

    r20038 r20040  
    6969--- /dev/null 
    7070+++ b/net/mac80211/rc80211_minstrel_ht.c 
    71 @@ -0,0 +1,807 @@ 
     71@@ -0,0 +1,809 @@ 
    7272+/* 
    7373+ * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org> 
     
    480480+        */ 
    481481+       rate = minstrel_get_ratestats(mi, mi->max_tp_rate); 
    482 +       if (MINSTREL_FRAC(rate->success, rate->attempts) < 
    483 +           MINSTREL_FRAC(20, 100) && rate->attempts > 30) 
     482+       if (rate->attempts > 30 && 
     483+           MINSTREL_FRAC(rate->success, rate->attempts) < 
     484+           MINSTREL_FRAC(20, 100)) 
    484485+               minstrel_downgrade_rate(mi, &mi->max_tp_rate, true); 
    485486+ 
    486487+       rate2 = minstrel_get_ratestats(mi, mi->max_tp_rate2); 
    487 +       if (MINSTREL_FRAC(rate->success, rate->attempts) < 
    488 +           MINSTREL_FRAC(20, 100) && rate->attempts > 30) 
     488+       if (rate->attempts > 30 && 
     489+           MINSTREL_FRAC(rate->success, rate->attempts) < 
     490+           MINSTREL_FRAC(20, 100)) 
    489491+               minstrel_downgrade_rate(mi, &mi->max_tp_rate2, false); 
    490492+ 
     
    10631065+                       int idx = i * MCS_GROUP_RATES + j; 
    10641066+ 
    1065 +                       if (!mi->groups[i].supported & BIT(j)) 
     1067+                       if (!(mi->groups[i].supported & BIT(j))) 
    10661068+                               continue; 
    10671069+ 
Note: See TracChangeset for help on using the changeset viewer.