|
@@ -384,31 +384,6 @@ void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags,
|
|
|
control->tx_rate_idx = rate_index;
|
|
|
}
|
|
|
|
|
|
-int iwl4965_hw_rxq_stop(struct iwl_priv *priv)
|
|
|
-{
|
|
|
- int rc;
|
|
|
- unsigned long flags;
|
|
|
-
|
|
|
- spin_lock_irqsave(&priv->lock, flags);
|
|
|
- rc = iwl_grab_nic_access(priv);
|
|
|
- if (rc) {
|
|
|
- spin_unlock_irqrestore(&priv->lock, flags);
|
|
|
- return rc;
|
|
|
- }
|
|
|
-
|
|
|
- /* stop Rx DMA */
|
|
|
- iwl_write_direct32(priv, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0);
|
|
|
- rc = iwl_poll_direct_bit(priv, FH_MEM_RSSR_RX_STATUS_REG,
|
|
|
- (1 << 24), 1000);
|
|
|
- if (rc < 0)
|
|
|
- IWL_ERROR("Can't stop Rx DMA.\n");
|
|
|
-
|
|
|
- iwl_release_nic_access(priv);
|
|
|
- spin_unlock_irqrestore(&priv->lock, flags);
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* EEPROM handlers
|
|
|
*/
|