diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index e2581229d8b2..9838de5f4369 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -399,7 +399,7 @@ static void iwl4965_nic_config(struct iwl_priv *priv) | |||
399 | unsigned long flags; | 399 | unsigned long flags; |
400 | u32 val; | 400 | u32 val; |
401 | u16 radio_cfg; | 401 | u16 radio_cfg; |
402 | u8 val_link; | 402 | u16 link; |
403 | 403 | ||
404 | spin_lock_irqsave(&priv->lock, flags); | 404 | spin_lock_irqsave(&priv->lock, flags); |
405 | 405 | ||
@@ -410,10 +410,10 @@ static void iwl4965_nic_config(struct iwl_priv *priv) | |||
410 | val & ~(1 << 11)); | 410 | val & ~(1 << 11)); |
411 | } | 411 | } |
412 | 412 | ||
413 | pci_read_config_byte(priv->pci_dev, PCI_LINK_CTRL, &val_link); | 413 | pci_read_config_word(priv->pci_dev, PCI_CFG_LINK_CTRL, &link); |
414 | 414 | ||
415 | /* L1 is enabled by BIOS */ | 415 | /* L1 is enabled by BIOS */ |
416 | if ((val_link & PCI_LINK_VAL_L1_EN) == PCI_LINK_VAL_L1_EN) | 416 | if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN) |
417 | /* diable L0S disabled L1A enabled */ | 417 | /* diable L0S disabled L1A enabled */ |
418 | iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); | 418 | iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); |
419 | else | 419 | else |
@@ -474,8 +474,8 @@ static void iwl4965_apm_stop(struct iwl_priv *priv) | |||
474 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET); | 474 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET); |
475 | 475 | ||
476 | udelay(10); | 476 | udelay(10); |
477 | 477 | /* clear "init complete" move adapter D0A* --> D0U state */ | |
478 | iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); | 478 | iwl_clear_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE); |
479 | spin_unlock_irqrestore(&priv->lock, flags); | 479 | spin_unlock_irqrestore(&priv->lock, flags); |
480 | } | 480 | } |
481 | 481 | ||
@@ -1607,8 +1607,8 @@ static int iwl4965_send_rxon_assoc(struct iwl_priv *priv) | |||
1607 | return ret; | 1607 | return ret; |
1608 | } | 1608 | } |
1609 | 1609 | ||
1610 | 1610 | #ifdef IEEE80211_CONF_CHANNEL_SWITCH | |
1611 | int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel) | 1611 | static int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel) |
1612 | { | 1612 | { |
1613 | int rc; | 1613 | int rc; |
1614 | u8 band = 0; | 1614 | u8 band = 0; |
@@ -1648,6 +1648,7 @@ int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel) | |||
1648 | rc = iwl_send_cmd_pdu(priv, REPLY_CHANNEL_SWITCH, sizeof(cmd), &cmd); | 1648 | rc = iwl_send_cmd_pdu(priv, REPLY_CHANNEL_SWITCH, sizeof(cmd), &cmd); |
1649 | return rc; | 1649 | return rc; |
1650 | } | 1650 | } |
1651 | #endif | ||
1651 | 1652 | ||
1652 | static int iwl4965_shared_mem_rx_idx(struct iwl_priv *priv) | 1653 | static int iwl4965_shared_mem_rx_idx(struct iwl_priv *priv) |
1653 | { | 1654 | { |