package/button-hotplug: handle KEY_RESTART and KEY_WPS_BUTTON codes as well
[openwrt.git] / package / mac80211 / patches / 530-minstrel_ht.patch
index c1af998..6b59529 100644 (file)
@@ -68,7 +68,7 @@
  
 --- /dev/null
 +++ b/net/mac80211/rc80211_minstrel_ht.c
-@@ -0,0 +1,815 @@
+@@ -0,0 +1,822 @@
 +/*
 + * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org>
 + *
 +      mi->ampdu_len += info->status.ampdu_len;
 +
 +      if (!mi->sample_wait && !mi->sample_tries && mi->sample_count > 0) {
-+              mi->sample_wait = 4 + MINSTREL_TRUNC(mi->avg_ampdu_len);
++              mi->sample_wait = 4 + 2 * MINSTREL_TRUNC(mi->avg_ampdu_len);
 +              mi->sample_tries = 3;
 +              mi->sample_count--;
 +      }
 +      if (!msp->is_ht)
 +              return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc);
 +
++      info->flags |= mi->tx_flags;
 +      sample_idx = minstrel_get_sample_rate(mp, mi);
 +      if (sample_idx >= 0) {
 +              minstrel_ht_set_rate(mp, mi, &ar[0], sample_idx,
 +      }
 +      mi->sample_tries = 4;
 +
++      if (sta_cap & IEEE80211_HT_CAP_TX_STBC)
++              mi->tx_flags |= IEEE80211_TX_CTL_STBC;
++
++      if (sta_cap & IEEE80211_HT_CAP_LDPC_CODING)
++              mi->tx_flags |= IEEE80211_TX_CTL_LDPC;
++
 +      if (oper_chan_type != NL80211_CHAN_HT40MINUS &&
 +          oper_chan_type != NL80211_CHAN_HT40PLUS)
 +              sta_cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
 +}
 --- /dev/null
 +++ b/net/mac80211/rc80211_minstrel_ht.h
-@@ -0,0 +1,125 @@
+@@ -0,0 +1,128 @@
 +/*
 + * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org>
 + *
 +#define __RC_MINSTREL_HT_H
 +
 +/*
-+ * maximum number of spatial streams to make use of
-+ * set this value to 3 once we have drivers that support it
++ * The number of streams can be changed to 2 to reduce code
++ * size and memory footprint.
 + */
-+#define MINSTREL_MAX_STREAMS  2
++#define MINSTREL_MAX_STREAMS  3
 +#define MINSTREL_STREAM_GROUPS        4
 +
 +/* scaled fraction values */
 +      unsigned int total_packets;
 +      unsigned int sample_packets;
 +
++      /* tx flags to add for frames for this sta */
++      u32 tx_flags;
++
 +      u8 sample_wait;
 +      u8 sample_tries;
 +      u8 sample_count;
This page took 0.025437 seconds and 4 git commands to generate.