]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
iwlagn: dbg_fixed_rate only used when CONFIG_MAC80211_DEBUGFS enabled
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 20 May 2011 18:56:18 +0000 (11:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 May 2011 19:39:30 +0000 (15:39 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c

index fec0df016d68b1f3ef66d276c850752c87148465..592b0cfcf717a7a9f76af9515ae77481dfda47bb 100644 (file)
@@ -335,7 +335,7 @@ static u8 rs_tl_add_packet(struct iwl_lq_sta *lq_data,
        return tid;
 }
 
-#if defined(CONFIG_MAC80211_DEBUGFS) || defined(CONFIG_IWLWIFI_DEVICE_SVTOOL)
+#ifdef CONFIG_MAC80211_DEBUGFS
 static void rs_program_fix_rate(struct iwl_priv *priv,
                                struct iwl_lq_sta *lq_sta)
 {
@@ -1072,7 +1072,7 @@ done:
        /* See if there's a better rate or modulation mode to try. */
        if (sta && sta->supp_rates[sband->band])
                rs_rate_scale_perform(priv, skb, sta, lq_sta);
-#ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL
+#ifdef CONFIG_MAC80211_DEBUGFS
        if (priv->dbg_fixed_rate != lq_sta->dbg_fixed_rate)
                rs_program_fix_rate(priv, lq_sta);
 #endif