diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 7 |
6 files changed, 3 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 8c5a829c4119..cf1449df4f0b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -138,7 +138,6 @@ static int iwl1000_hw_set_hw_params(struct iwl_priv *priv) | |||
138 | 138 | ||
139 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 139 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
140 | BIT(IEEE80211_BAND_5GHZ); | 140 | BIT(IEEE80211_BAND_5GHZ); |
141 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | ||
142 | 141 | ||
143 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 142 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
144 | if (priv->cfg->rx_with_siso_diversity) | 143 | if (priv->cfg->rx_with_siso_diversity) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 75d63e6ee7f4..a401113c065a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -136,7 +136,6 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv) | |||
136 | 136 | ||
137 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 137 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
138 | BIT(IEEE80211_BAND_5GHZ); | 138 | BIT(IEEE80211_BAND_5GHZ); |
139 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | ||
140 | 139 | ||
141 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 140 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
142 | if (priv->cfg->rx_with_siso_diversity) | 141 | if (priv->cfg->rx_with_siso_diversity) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 5ebf5d225b89..c55cec853f50 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -169,7 +169,6 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv) | |||
169 | 169 | ||
170 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 170 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
171 | BIT(IEEE80211_BAND_5GHZ); | 171 | BIT(IEEE80211_BAND_5GHZ); |
172 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | ||
173 | 172 | ||
174 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 173 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
175 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); | 174 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
@@ -214,7 +213,6 @@ static int iwl5150_hw_set_hw_params(struct iwl_priv *priv) | |||
214 | 213 | ||
215 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 214 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
216 | BIT(IEEE80211_BAND_5GHZ); | 215 | BIT(IEEE80211_BAND_5GHZ); |
217 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | ||
218 | 216 | ||
219 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 217 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
220 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); | 218 | priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 94ad57cf3ea6..965d010794b4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -157,7 +157,6 @@ static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | |||
157 | 157 | ||
158 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 158 | priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
159 | BIT(IEEE80211_BAND_5GHZ); | 159 | BIT(IEEE80211_BAND_5GHZ); |
160 | priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR; | ||
161 | 160 | ||
162 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); | 161 | priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant); |
163 | if (priv->cfg->rx_with_siso_diversity) | 162 | if (priv->cfg->rx_with_siso_diversity) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 4d17619dd29b..f4501f836155 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -665,7 +665,6 @@ struct iwl_hw_params { | |||
665 | u16 max_rxq_size; | 665 | u16 max_rxq_size; |
666 | u16 max_rxq_log; | 666 | u16 max_rxq_log; |
667 | u32 rx_page_order; | 667 | u32 rx_page_order; |
668 | u32 rx_wrt_ptr_reg; | ||
669 | u8 max_stations; | 668 | u8 max_stations; |
670 | u8 ht40_channel; | 669 | u8 ht40_channel; |
671 | u8 max_beacon_itrvl; /* in 1024 ms */ | 670 | u8 max_beacon_itrvl; /* in 1024 ms */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 065d2c02655f..87148bb3f628 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -134,7 +134,6 @@ int iwl_rx_queue_space(const struct iwl_rx_queue *q) | |||
134 | void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, struct iwl_rx_queue *q) | 134 | void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, struct iwl_rx_queue *q) |
135 | { | 135 | { |
136 | unsigned long flags; | 136 | unsigned long flags; |
137 | u32 rx_wrt_ptr_reg = priv->hw_params.rx_wrt_ptr_reg; | ||
138 | u32 reg; | 137 | u32 reg; |
139 | 138 | ||
140 | spin_lock_irqsave(&q->lock, flags); | 139 | spin_lock_irqsave(&q->lock, flags); |
@@ -146,7 +145,7 @@ void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, struct iwl_rx_queue *q | |||
146 | /* shadow register enabled */ | 145 | /* shadow register enabled */ |
147 | /* Device expects a multiple of 8 */ | 146 | /* Device expects a multiple of 8 */ |
148 | q->write_actual = (q->write & ~0x7); | 147 | q->write_actual = (q->write & ~0x7); |
149 | iwl_write32(priv, rx_wrt_ptr_reg, q->write_actual); | 148 | iwl_write32(priv, FH_RSCSR_CHNL0_WPTR, q->write_actual); |
150 | } else { | 149 | } else { |
151 | /* If power-saving is in use, make sure device is awake */ | 150 | /* If power-saving is in use, make sure device is awake */ |
152 | if (test_bit(STATUS_POWER_PMI, &priv->status)) { | 151 | if (test_bit(STATUS_POWER_PMI, &priv->status)) { |
@@ -162,14 +161,14 @@ void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, struct iwl_rx_queue *q | |||
162 | } | 161 | } |
163 | 162 | ||
164 | q->write_actual = (q->write & ~0x7); | 163 | q->write_actual = (q->write & ~0x7); |
165 | iwl_write_direct32(priv, rx_wrt_ptr_reg, | 164 | iwl_write_direct32(priv, FH_RSCSR_CHNL0_WPTR, |
166 | q->write_actual); | 165 | q->write_actual); |
167 | 166 | ||
168 | /* Else device is assumed to be awake */ | 167 | /* Else device is assumed to be awake */ |
169 | } else { | 168 | } else { |
170 | /* Device expects a multiple of 8 */ | 169 | /* Device expects a multiple of 8 */ |
171 | q->write_actual = (q->write & ~0x7); | 170 | q->write_actual = (q->write & ~0x7); |
172 | iwl_write_direct32(priv, rx_wrt_ptr_reg, | 171 | iwl_write_direct32(priv, FH_RSCSR_CHNL0_WPTR, |
173 | q->write_actual); | 172 | q->write_actual); |
174 | } | 173 | } |
175 | } | 174 | } |