Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134029
b: refs/heads/master
c: 854682e
h: refs/heads/master
i:
  134027: def31f9
v: v3
  • Loading branch information
Kolekar, Abhijeet authored and John W. Linville committed Jan 29, 2009
1 parent ef3f516 commit 56d07c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01ec616d8ccbfac41c87dafc0fc0aa4abe13b8f8
refs/heads/master: 854682ed2892836d7cff77931a79183c1fc59fef
10 changes: 7 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, u16 tx_rate, u8 flags)
return sta_id;
}

static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max)
static int iwl3945_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src)
{
int rc;
unsigned long flags;
Expand All @@ -931,7 +931,7 @@ static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max)
return rc;
}

if (!pwr_max) {
if (src == IWL_PWR_SRC_VAUX) {
u32 val;

rc = pci_read_config_dword(priv->pci_dev,
Expand Down Expand Up @@ -1195,7 +1195,10 @@ int iwl3945_hw_nic_init(struct iwl_priv *priv)
return rc;
IWL_DEBUG_INFO("HW Revision ID = 0x%X\n", rev_id);

iwl3945_nic_set_pwr_src(priv, 1);
rc = priv->cfg->ops->lib->apm_ops.set_pwr_src(priv, IWL_PWR_SRC_VMAIN);
if(rc)
return rc;

priv->cfg->ops->lib->apm_ops.config(priv);

/* Allocate the RX queue, or reset if it is already allocated */
Expand Down Expand Up @@ -2694,6 +2697,7 @@ static struct iwl_lib_ops iwl3945_lib = {
.reset = iwl3945_apm_reset,
.stop = iwl3945_apm_stop,
.config = iwl3945_nic_config,
.set_pwr_src = iwl3945_set_pwr_src,
},
};

Expand Down

0 comments on commit 56d07c8

Please sign in to comment.