diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-08-26 02:11:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:25:35 -0400 |
commit | 845a9c0d8acea87dede740bc5feb9ec2d00505d9 (patch) | |
tree | e158e899b61d5e5b92c50e905a258d857015c764 /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | effcea16e554b4d7497bbcfc80b9baca8e017691 (diff) |
iwlagn: move all iwl_is_XXX helpers to iwl-shared.h
Logic move after all priv->status moved to struct iwl_shared
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 347cbec935b9..cfc23c25e979 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1051,7 +1051,7 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force) | |||
1051 | return -EINVAL; | 1051 | return -EINVAL; |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | if (!iwl_is_ready_rf(priv)) | 1054 | if (!iwl_is_ready_rf(priv->shrd)) |
1055 | return -EIO; | 1055 | return -EIO; |
1056 | 1056 | ||
1057 | /* scan complete and commit_rxon use tx_power_next value, | 1057 | /* scan complete and commit_rxon use tx_power_next value, |
@@ -1131,7 +1131,7 @@ int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
1131 | 1131 | ||
1132 | IWL_DEBUG_MAC80211(priv, "enter\n"); | 1132 | IWL_DEBUG_MAC80211(priv, "enter\n"); |
1133 | 1133 | ||
1134 | if (!iwl_is_ready_rf(priv)) { | 1134 | if (!iwl_is_ready_rf(priv->shrd)) { |
1135 | IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n"); | 1135 | IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n"); |
1136 | return -EIO; | 1136 | return -EIO; |
1137 | } | 1137 | } |
@@ -1237,7 +1237,7 @@ int iwl_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) | |||
1237 | 1237 | ||
1238 | iwlagn_disable_roc(priv); | 1238 | iwlagn_disable_roc(priv); |
1239 | 1239 | ||
1240 | if (!iwl_is_ready_rf(priv)) { | 1240 | if (!iwl_is_ready_rf(priv->shrd)) { |
1241 | IWL_WARN(priv, "Try to add interface when device not ready\n"); | 1241 | IWL_WARN(priv, "Try to add interface when device not ready\n"); |
1242 | err = -EINVAL; | 1242 | err = -EINVAL; |
1243 | goto out; | 1243 | goto out; |
@@ -1657,7 +1657,7 @@ int iwl_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
1657 | 1657 | ||
1658 | mutex_lock(&priv->shrd->mutex); | 1658 | mutex_lock(&priv->shrd->mutex); |
1659 | 1659 | ||
1660 | if (!ctx->vif || !iwl_is_ready_rf(priv)) { | 1660 | if (!ctx->vif || !iwl_is_ready_rf(priv->shrd)) { |
1661 | /* | 1661 | /* |
1662 | * Huh? But wait ... this can maybe happen when | 1662 | * Huh? But wait ... this can maybe happen when |
1663 | * we're in the middle of a firmware restart! | 1663 | * we're in the middle of a firmware restart! |