mac80211: add some small fixes for minstrel_ht CCK support
authorFelix Fietkau <nbd@openwrt.org>
Wed, 13 Feb 2013 09:53:28 +0000 (09:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 13 Feb 2013 09:53:28 +0000 (09:53 +0000)
SVN-Revision: 35576

package/mac80211/patches/300-pending_work.patch

index a0ddf42ad2c876a57cc0f33729ee2b30a1f3e947..3cba6e42ae702d4020382a264116ac49f0bd9564 100644 (file)
 +      CCK_ACK_DURATION(55, _short),                   \
 +      CCK_ACK_DURATION(110, _short)
 +
-+#define CCK_GROUP                                     \
-+      {                                               \
-+              .streams = 0,                           \
-+              .duration = {                           \
-+                      CCK_DURATION_LIST(false),       \
-+                      CCK_DURATION_LIST(true)         \
-+              }                                       \
++#define CCK_GROUP                                             \
++      [MINSTREL_MAX_STREAMS * MINSTREL_STREAM_GROUPS] = {     \
++              .streams = 0,                                   \
++              .duration = {                                   \
++                      CCK_DURATION_LIST(false),               \
++                      CCK_DURATION_LIST(true)                 \
++              }                                               \
 +      }
 +
  /*
 +      } else {
 +              group = MINSTREL_CCK_GROUP;
 +
-+              for (idx = 0; idx <= ARRAY_SIZE(mp->cck_rates); idx++)
++              for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++)
 +                      if (rate->idx == mp->cck_rates[idx])
 +                              break;
 +
                return false;
  
 -      return !!(rate->flags & IEEE80211_TX_RC_MCS);
-+      if (rate->flags & IEEE80211_TX_RC_MCS);
++      if (rate->flags & IEEE80211_TX_RC_MCS)
 +              return true;
 +
 +      return rate->idx == mp->cck_rates[0] ||