mac80211: Update to version 4.19.161-1
[librecmc/librecmc.git] / package / kernel / mac80211 / patches / subsys / 363-mac80211-minstrel_ht-replace-rate-stats-ewma-with-a-.patch
index 5e2a017865f18d4e2c4a92970e65103ab905d1b9..5fa6db0adbcbbbac2f5317cb9b9f5a6ef90eeeca 100644 (file)
@@ -64,9 +64,9 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  
                /* Sample less often below the 10% chance of success.
                 * Sample less often above the 95% chance of success. */
-@@ -295,7 +299,8 @@ minstrel_tx_status(void *priv, struct ie
-       if (mi->sample_deferred > 0)
-               mi->sample_deferred--;
+@@ -289,7 +293,8 @@ minstrel_tx_status(void *priv, struct ie
+                       mi->r[ndx].stats.success += success;
+       }
  
 -      if (time_after(jiffies, mi->last_stats_update + mp->update_interval))
 +      if (time_after(jiffies, mi->last_stats_update +
@@ -149,7 +149,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        /* statistis of packet delivery probability
         *  prob_ewma - exponential weighted moving average of prob
         *  prob_ewmsd - exp. weighted moving standard deviation of prob */
-@@ -114,6 +166,7 @@ struct minstrel_sta_info {
+@@ -113,6 +165,7 @@ struct minstrel_sta_info {
  struct minstrel_priv {
        struct ieee80211_hw *hw;
        bool has_mrr;
@@ -157,7 +157,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        u32 sample_switch;
        unsigned int cw_min;
        unsigned int cw_max;
-@@ -153,7 +206,8 @@ extern const struct rate_control_ops mac
+@@ -152,7 +205,8 @@ extern const struct rate_control_ops mac
  void minstrel_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir);
  
  /* Recalculate success probabilities and counters for a given rate using EWMA */