aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-mac80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-06 16:30:36 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-07 13:51:47 -0500
commite19918855dc4822a24787a6d0048205b011e5ecb (patch)
treec4c73413748f42dfb3fe6d451f1d12166b7965d7 /drivers/net/wireless/iwlwifi/iwl-mac80211.c
parent3d4f96997263d97cd4d60373f1ed8184ee6df31b (diff)
iwlwifi: move ucode loading to op_mode
uCode loading belongs to the op_mode, as it is dependent on various things there and the commands sent during it are specific to it. Move the prototypes to iwl-agn.h to indicate this. To make this possible, also move all the calibration handling (which is op_mode dependent after all). Signed-off-by: Johannes Berg <johannes.berg@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-mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-mac80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index 7f937151a8a..37330addce7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -278,13 +278,13 @@ static int __iwl_up(struct iwl_priv *priv)
278 } 278 }
279 } 279 }
280 280
281 ret = iwl_run_init_ucode(trans(priv)); 281 ret = iwl_run_init_ucode(priv);
282 if (ret) { 282 if (ret) {
283 IWL_ERR(priv, "Failed to run INIT ucode: %d\n", ret); 283 IWL_ERR(priv, "Failed to run INIT ucode: %d\n", ret);
284 goto error; 284 goto error;
285 } 285 }
286 286
287 ret = iwl_load_ucode_wait_alive(trans(priv), IWL_UCODE_REGULAR); 287 ret = iwl_load_ucode_wait_alive(priv, IWL_UCODE_REGULAR);
288 if (ret) { 288 if (ret) {
289 IWL_ERR(priv, "Failed to start RT ucode: %d\n", ret); 289 IWL_ERR(priv, "Failed to start RT ucode: %d\n", ret);
290 goto error; 290 goto error;