diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-20 14:56:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-24 15:39:30 -0400 |
commit | 54a430c0a4991951805df92efb8c42bdb1277ffd (patch) | |
tree | 70f2bc3193faf754dcd05fe3df93a71adfddcd96 /drivers/net/wireless/iwlwifi | |
parent | c6e38c06cb51bee42ff80a36a0f7c67b485c4541 (diff) |
iwlagn: dbg_fixed_rate only used when CONFIG_MAC80211_DEBUGFS enabled
Fix compiling error when CONFIG_MAC80211_DEBUGFS is not enabled
drivers/net/wireless/iwlwifi/iwl-agn-rs.c:351: error: 'struct iwl_lq_sta' has no member named 'dbg_fixed_rate'
drivers/net/wireless/iwlwifi/iwl-agn-rs.c:1076: error: 'struct iwl_lq_sta' has no member named 'dbg_fixed_rate'
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index fec0df016d68..592b0cfcf717 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -335,7 +335,7 @@ static u8 rs_tl_add_packet(struct iwl_lq_sta *lq_data, | |||
335 | return tid; | 335 | return tid; |
336 | } | 336 | } |
337 | 337 | ||
338 | #if defined(CONFIG_MAC80211_DEBUGFS) || defined(CONFIG_IWLWIFI_DEVICE_SVTOOL) | 338 | #ifdef CONFIG_MAC80211_DEBUGFS |
339 | static void rs_program_fix_rate(struct iwl_priv *priv, | 339 | static void rs_program_fix_rate(struct iwl_priv *priv, |
340 | struct iwl_lq_sta *lq_sta) | 340 | struct iwl_lq_sta *lq_sta) |
341 | { | 341 | { |
@@ -1072,7 +1072,7 @@ done: | |||
1072 | /* See if there's a better rate or modulation mode to try. */ | 1072 | /* See if there's a better rate or modulation mode to try. */ |
1073 | if (sta && sta->supp_rates[sband->band]) | 1073 | if (sta && sta->supp_rates[sband->band]) |
1074 | rs_rate_scale_perform(priv, skb, sta, lq_sta); | 1074 | rs_rate_scale_perform(priv, skb, sta, lq_sta); |
1075 | #ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL | 1075 | #ifdef CONFIG_MAC80211_DEBUGFS |
1076 | if (priv->dbg_fixed_rate != lq_sta->dbg_fixed_rate) | 1076 | if (priv->dbg_fixed_rate != lq_sta->dbg_fixed_rate) |
1077 | rs_program_fix_rate(priv, lq_sta); | 1077 | rs_program_fix_rate(priv, lq_sta); |
1078 | #endif | 1078 | #endif |