提交 76232ebf 编写于 作者: J John W. Linville

iwlwifi: fix build error for CONFIG_IWLAGN=n

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: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 14b44974
...@@ -621,6 +621,7 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv, ...@@ -621,6 +621,7 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv,
#define BA_TIMEOUT_CNT (5) #define BA_TIMEOUT_CNT (5)
#define BA_TIMEOUT_MAX (16) #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. * 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, ...@@ -670,6 +671,7 @@ bool iwl_good_ack_health(struct iwl_priv *priv,
return rc; return rc;
} }
EXPORT_SYMBOL(iwl_good_ack_health); EXPORT_SYMBOL(iwl_good_ack_health);
#endif
/** /**
* iwl_good_plcp_health - checks for plcp error. * iwl_good_plcp_health - checks for plcp error.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册