]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/iwlwifi/dvm/tx.c
iwlwifi: remove testmode
[~andy/linux] / drivers / net / wireless / iwlwifi / dvm / tx.c
index 353a053b4eb1b475cf823280b40677421bc84372..5ee983faa679d21d09ba1700821172d84501ea4d 100644 (file)
@@ -162,18 +162,6 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv,
        if (ieee80211_is_data(fc)) {
                tx_cmd->initial_rate_index = 0;
                tx_cmd->tx_flags |= TX_CMD_FLG_STA_RATE_MSK;
-#ifdef CONFIG_IWLWIFI_DEVICE_TESTMODE
-               if (priv->tm_fixed_rate) {
-                       /*
-                        * rate overwrite by testmode
-                        * we not only send lq command to change rate
-                        * we also re-enforce per data pkt base.
-                        */
-                       tx_cmd->tx_flags &= ~TX_CMD_FLG_STA_RATE_MSK;
-                       memcpy(&tx_cmd->rate_n_flags, &priv->tm_fixed_rate,
-                              sizeof(tx_cmd->rate_n_flags));
-               }
-#endif
                return;
        } else if (ieee80211_is_back_req(fc))
                tx_cmd->tx_flags |= TX_CMD_FLG_STA_RATE_MSK;