diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-07-13 14:13:46 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-07-21 10:30:36 -0400 |
commit | c10e2c102ff180998bf91404c2d76ca66ced46a0 (patch) | |
tree | 74b6ad47ddc4429ad99e4c1c197cdc017632713c /drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |
parent | b09b296dddde0998e2019d2f355212642056253f (diff) |
iwlagn: testmode fixed rate available for testmode only
Move tm_fixed_rate inside CONFIG_IWLWIFI_DEVICE_SVTOOL and only
available when the option is enable.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c index a5295c15d70d..53bb59ee719d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |||
@@ -217,6 +217,7 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv, | |||
217 | if (ieee80211_is_data(fc)) { | 217 | if (ieee80211_is_data(fc)) { |
218 | tx_cmd->initial_rate_index = 0; | 218 | tx_cmd->initial_rate_index = 0; |
219 | tx_cmd->tx_flags |= TX_CMD_FLG_STA_RATE_MSK; | 219 | tx_cmd->tx_flags |= TX_CMD_FLG_STA_RATE_MSK; |
220 | #ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL | ||
220 | if (priv->tm_fixed_rate) { | 221 | if (priv->tm_fixed_rate) { |
221 | /* | 222 | /* |
222 | * rate overwrite by testmode | 223 | * rate overwrite by testmode |
@@ -227,6 +228,7 @@ static void iwlagn_tx_cmd_build_rate(struct iwl_priv *priv, | |||
227 | memcpy(&tx_cmd->rate_n_flags, &priv->tm_fixed_rate, | 228 | memcpy(&tx_cmd->rate_n_flags, &priv->tm_fixed_rate, |
228 | sizeof(tx_cmd->rate_n_flags)); | 229 | sizeof(tx_cmd->rate_n_flags)); |
229 | } | 230 | } |
231 | #endif | ||
230 | return; | 232 | return; |
231 | } | 233 | } |
232 | 234 | ||