Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Feb 2010 21:54:45 +0000 (16:54 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 26 Feb 2010 21:54:45 +0000 (16:54 -0500)
Conflicts:
drivers/net/wireless/iwlwifi/iwl-core.h
net/mac80211/rate.c

1  2 
drivers/net/wireless/ath/ath9k/xmit.c
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-rx.c
drivers/net/wireless/iwlwifi/iwl-tx.c
drivers/net/wireless/iwmc3200wifi/rx.c
drivers/net/wireless/rtl818x/rtl8187_dev.c
net/mac80211/rate.c

Simple merge
index 3df79331039c2fb741e10fdb7c260a42b6472cb9,fe37d6a6bf972576c0cab2343af6a6044e944f47..4ef7739f9e8e614c99293b9904039ad7bfa965cc
@@@ -451,7 -445,9 +451,9 @@@ int iwl_tx_skb(struct iwl_priv *priv, s
  void iwl_hw_txq_ctx_free(struct iwl_priv *priv);
  int iwl_hw_tx_queue_init(struct iwl_priv *priv,
                         struct iwl_tx_queue *txq);
 -int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq);
+ void iwl_free_tfds_in_queue(struct iwl_priv *priv,
+                           int sta_id, int tid, int freed);
 +void iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq);
  int iwl_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq,
                      int slots_num, u32 txq_id);
  void iwl_tx_queue_free(struct iwl_priv *priv, int txq_id);
Simple merge
Simple merge
index 99ab24cc978364f5993fb5f5fe587796d2622ffa,12a2bff7dcdbc1959b2cb0792d4f0508f63a2fdc..0b299d236fa1a3bbd74256e7386ecc2d92e7e940
@@@ -303,31 -245,26 +303,34 @@@ void rate_control_get_rate(struct ieee8
                info->control.rates[i].count = 1;
        }
  
 -      if (sta && sdata->force_unicast_rateidx > -1) {
 -              info->control.rates[0].idx = sdata->force_unicast_rateidx;
 -      } else {
 -              ref->ops->get_rate(ref->priv, ista, priv_sta, txrc);
 -              info->flags |= IEEE80211_TX_INTFL_RCALGO;
 -      }
+       if (sdata->local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL)
+               return;
 +      ref->ops->get_rate(ref->priv, ista, priv_sta, txrc);
  
        /*
 -       * try to enforce the maximum rate the user wanted
 +       * Try to enforce the rateidx mask the user wanted. skip this if the
 +       * default mask (allow all rates) is used to save some processing for
 +       * the common case.
         */
 -      if (sdata->max_ratectrl_rateidx > -1)
 +      mask = sdata->rc_rateidx_mask[info->band];
 +      if (mask != (1 << txrc->sband->n_bitrates) - 1) {
 +              if (sta) {
 +                      /* Filter out rates that the STA does not support */
 +                      mask &= sta->sta.supp_rates[info->band];
 +              }
 +              /*
 +               * Make sure the rate index selected for each TX rate is
 +               * included in the configured mask and change the rate indexes
 +               * if needed.
 +               */
                for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {
 +                      /* Rate masking supports only legacy rates for now */
                        if (info->control.rates[i].flags & IEEE80211_TX_RC_MCS)
                                continue;
 -                      info->control.rates[i].idx =
 -                              min_t(s8, info->control.rates[i].idx,
 -                                    sdata->max_ratectrl_rateidx);
 +                      rate_idx_match_mask(&info->control.rates[i],
 +                                          txrc->sband->n_bitrates, mask);
 +              }
        }
  
        BUG_ON(info->control.rates[0].idx < 0);