diff options
author | Don Fry <donald.h.fry@intel.com> | 2011-12-07 11:50:46 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-16 10:23:53 -0500 |
commit | 69a679b0dc79edaca521eba5b06edc5593455b76 (patch) | |
tree | 86351f516791c0b0a761883901e8edee15519227 /drivers/net/wireless/iwlwifi/iwl-testmode.c | |
parent | 09af14030d77d5f43229adabdd3c84c63f3499aa (diff) |
iwlwifi: remove most of the iwl_priv references from iwl-ucode.c
Remove all but the last few references to iwl_priv from the lower
level iwl-ucode.c, with resulting code changes.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-testmode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-testmode.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.c b/drivers/net/wireless/iwlwifi/iwl-testmode.c index 0fb962e0b461..db8a0d662dc0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-testmode.c +++ b/drivers/net/wireless/iwlwifi/iwl-testmode.c | |||
@@ -70,6 +70,7 @@ | |||
70 | #include <net/mac80211.h> | 70 | #include <net/mac80211.h> |
71 | #include <net/netlink.h> | 71 | #include <net/netlink.h> |
72 | 72 | ||
73 | #include "iwl-wifi.h" | ||
73 | #include "iwl-dev.h" | 74 | #include "iwl-dev.h" |
74 | #include "iwl-core.h" | 75 | #include "iwl-core.h" |
75 | #include "iwl-debug.h" | 76 | #include "iwl-debug.h" |
@@ -380,7 +381,7 @@ static int iwl_testmode_cfg_init_calib(struct iwl_priv *priv) | |||
380 | iwl_init_notification_wait(priv->shrd, &calib_wait, | 381 | iwl_init_notification_wait(priv->shrd, &calib_wait, |
381 | CALIBRATION_COMPLETE_NOTIFICATION, | 382 | CALIBRATION_COMPLETE_NOTIFICATION, |
382 | NULL, NULL); | 383 | NULL, NULL); |
383 | ret = iwlagn_init_alive_start(priv); | 384 | ret = iwl_init_alive_start(trans(priv)); |
384 | if (ret) { | 385 | if (ret) { |
385 | IWL_DEBUG_INFO(priv, | 386 | IWL_DEBUG_INFO(priv, |
386 | "Error configuring init calibration: %d\n", ret); | 387 | "Error configuring init calibration: %d\n", ret); |
@@ -417,6 +418,7 @@ cfg_init_calib_error: | |||
417 | static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | 418 | static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) |
418 | { | 419 | { |
419 | struct iwl_priv *priv = hw->priv; | 420 | struct iwl_priv *priv = hw->priv; |
421 | struct iwl_trans *trans = trans(priv); | ||
420 | struct sk_buff *skb; | 422 | struct sk_buff *skb; |
421 | unsigned char *rsp_data_ptr = NULL; | 423 | unsigned char *rsp_data_ptr = NULL; |
422 | int status = 0, rsp_data_len = 0; | 424 | int status = 0, rsp_data_len = 0; |
@@ -445,7 +447,7 @@ static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | |||
445 | break; | 447 | break; |
446 | 448 | ||
447 | case IWL_TM_CMD_APP2DEV_LOAD_INIT_FW: | 449 | case IWL_TM_CMD_APP2DEV_LOAD_INIT_FW: |
448 | status = iwlagn_load_ucode_wait_alive(priv, IWL_UCODE_INIT); | 450 | status = iwl_load_ucode_wait_alive(trans, IWL_UCODE_INIT); |
449 | if (status) | 451 | if (status) |
450 | IWL_DEBUG_INFO(priv, | 452 | IWL_DEBUG_INFO(priv, |
451 | "Error loading init ucode: %d\n", status); | 453 | "Error loading init ucode: %d\n", status); |
@@ -453,11 +455,11 @@ static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | |||
453 | 455 | ||
454 | case IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB: | 456 | case IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB: |
455 | iwl_testmode_cfg_init_calib(priv); | 457 | iwl_testmode_cfg_init_calib(priv); |
456 | iwl_trans_stop_device(trans(priv)); | 458 | iwl_trans_stop_device(trans); |
457 | break; | 459 | break; |
458 | 460 | ||
459 | case IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW: | 461 | case IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW: |
460 | status = iwlagn_load_ucode_wait_alive(priv, IWL_UCODE_REGULAR); | 462 | status = iwl_load_ucode_wait_alive(trans, IWL_UCODE_REGULAR); |
461 | if (status) { | 463 | if (status) { |
462 | IWL_DEBUG_INFO(priv, | 464 | IWL_DEBUG_INFO(priv, |
463 | "Error loading runtime ucode: %d\n", status); | 465 | "Error loading runtime ucode: %d\n", status); |
@@ -471,8 +473,8 @@ static int iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) | |||
471 | 473 | ||
472 | case IWL_TM_CMD_APP2DEV_LOAD_WOWLAN_FW: | 474 | case IWL_TM_CMD_APP2DEV_LOAD_WOWLAN_FW: |
473 | iwl_scan_cancel_timeout(priv, 200); | 475 | iwl_scan_cancel_timeout(priv, 200); |
474 | iwl_trans_stop_device(trans(priv)); | 476 | iwl_trans_stop_device(trans); |
475 | status = iwlagn_load_ucode_wait_alive(priv, IWL_UCODE_WOWLAN); | 477 | status = iwl_load_ucode_wait_alive(trans, IWL_UCODE_WOWLAN); |
476 | if (status) { | 478 | if (status) { |
477 | IWL_DEBUG_INFO(priv, | 479 | IWL_DEBUG_INFO(priv, |
478 | "Error loading WOWLAN ucode: %d\n", status); | 480 | "Error loading WOWLAN ucode: %d\n", status); |