diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-02-04 13:46:41 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-02-06 12:31:00 -0500 |
commit | 80b38fffab9a2d86c252addce5a520dcf8f2fc66 (patch) | |
tree | c046ac22be25935f7d5167cad234963b72bffca2 /drivers/net/wireless/iwlwifi | |
parent | 2f115cf24ea3f5010f7361d2098545edf7a07add (diff) |
iwlwifi: fix compiling error with different configuration
When .config has different configuration, it might fail to compile
iwlwifi. fix it
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index a5daf6447178..096f8ad0f1b1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3771,7 +3771,7 @@ static void iwlagn_disable_roc(struct iwl_priv *priv) | |||
3771 | 3771 | ||
3772 | priv->_agn.hw_roc_channel = NULL; | 3772 | priv->_agn.hw_roc_channel = NULL; |
3773 | 3773 | ||
3774 | iwlagn_commit_rxon(priv, ctx); | 3774 | iwlcore_commit_rxon(priv, ctx); |
3775 | 3775 | ||
3776 | ctx->is_active = false; | 3776 | ctx->is_active = false; |
3777 | } | 3777 | } |
@@ -3787,6 +3787,7 @@ static void iwlagn_bg_roc_done(struct work_struct *work) | |||
3787 | mutex_unlock(&priv->mutex); | 3787 | mutex_unlock(&priv->mutex); |
3788 | } | 3788 | } |
3789 | 3789 | ||
3790 | #ifdef CONFIG_IWL5000 | ||
3790 | static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, | 3791 | static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, |
3791 | struct ieee80211_channel *channel, | 3792 | struct ieee80211_channel *channel, |
3792 | enum nl80211_channel_type channel_type, | 3793 | enum nl80211_channel_type channel_type, |
@@ -3814,7 +3815,7 @@ static int iwl_mac_remain_on_channel(struct ieee80211_hw *hw, | |||
3814 | priv->_agn.hw_roc_channel = channel; | 3815 | priv->_agn.hw_roc_channel = channel; |
3815 | priv->_agn.hw_roc_chantype = channel_type; | 3816 | priv->_agn.hw_roc_chantype = channel_type; |
3816 | priv->_agn.hw_roc_duration = DIV_ROUND_UP(duration * 1000, 1024); | 3817 | priv->_agn.hw_roc_duration = DIV_ROUND_UP(duration * 1000, 1024); |
3817 | iwlagn_commit_rxon(priv, &priv->contexts[IWL_RXON_CTX_PAN]); | 3818 | iwlcore_commit_rxon(priv, &priv->contexts[IWL_RXON_CTX_PAN]); |
3818 | queue_delayed_work(priv->workqueue, &priv->_agn.hw_roc_work, | 3819 | queue_delayed_work(priv->workqueue, &priv->_agn.hw_roc_work, |
3819 | msecs_to_jiffies(duration + 20)); | 3820 | msecs_to_jiffies(duration + 20)); |
3820 | 3821 | ||
@@ -3842,6 +3843,7 @@ static int iwl_mac_cancel_remain_on_channel(struct ieee80211_hw *hw) | |||
3842 | 3843 | ||
3843 | return 0; | 3844 | return 0; |
3844 | } | 3845 | } |
3846 | #endif | ||
3845 | 3847 | ||
3846 | /***************************************************************************** | 3848 | /***************************************************************************** |
3847 | * | 3849 | * |