iwlwifi: fix build error for CONFIG_IWLAGN=n
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Mar 2010 21:21:08 +0000 (17:21 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Mar 2010 21:21:08 +0000 (17:21 -0400)
drivers/net/wireless/iwlwifi/iwl-rx.c: In function 'iwl_good_ack_health':
drivers/net/wireless/iwlwifi/iwl-rx.c:647: error: 'struct iwl_priv' has no member named '_agn'

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-rx.c

index b6a64d83718ac20ac1c2c87b4e94691199e53d69..2fa30dfb7c59fbfc294330a89b95ec530398e3de 100644 (file)
@@ -621,6 +621,7 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv,
 #define BA_TIMEOUT_CNT (5)
 #define BA_TIMEOUT_MAX (16)
 
+#if defined(CONFIG_IWLAGN) || defined(CONFIG_IWLAGN_MODULE)
 /**
  * iwl_good_ack_health - checks for ACK count ratios, BA timeout retries.
  *
@@ -670,6 +671,7 @@ bool iwl_good_ack_health(struct iwl_priv *priv,
        return rc;
 }
 EXPORT_SYMBOL(iwl_good_ack_health);
+#endif
 
 /**
  * iwl_good_plcp_health - checks for plcp error.