• Thomas Huehn's avatar
    mac80211: extend minstrel's rate sampling to avoid unsampled rates · 1e9c27df
    Thomas Huehn authored
    Minstrel's decision which rate should be directly sampled within the
    1st mrr stage is limited to such rates faster than the current max
    throughput rate. All rates below the current max. throughput rate
    are indirectly sampled via the 2nd mrr stage.
    This approach leads to deprecated per rate statistics and therfore
    a deprecated mrr chain setup.
    
    This patch uses the sampling approach from minstrel_ht. A counter is
    added to sum all indirect sample attempts per rate. After 20 indirect
    sampling attempts the rate is directly sampled within the 1st mrr stage.
    Therefore more up-to-date statistics for all rates are maintained and
    used to setup the mrr chain.
    Acked-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarThomas Huehn <thomas@net.t-labs.tu-berlin.de>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    1e9c27df
rc80211_minstrel.h 2.75 KB