diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-08-26 02:10:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-29 15:25:30 -0400 |
commit | d618912417fbce4f6514fe1cbef7df2e73bdb6c2 (patch) | |
tree | e14bf2a7a09d898431cd0bac6d8b38318cb6dc48 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |
parent | 8f470ce31de1a9dfe6b53e0967eaa7e72b741714 (diff) |
iwlagn: hw_params moves to iwl_shared
Since it is used by all the layers, it needs to move to iwl_shared.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index dd95f47854d4..048ccbae82f0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -770,12 +770,12 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
770 | u16 rx_chain = 0; | 770 | u16 rx_chain = 0; |
771 | enum ieee80211_band band; | 771 | enum ieee80211_band band; |
772 | u8 n_probes = 0; | 772 | u8 n_probes = 0; |
773 | u8 rx_ant = priv->hw_params.valid_rx_ant; | 773 | u8 rx_ant = hw_params(priv).valid_rx_ant; |
774 | u8 rate; | 774 | u8 rate; |
775 | bool is_active = false; | 775 | bool is_active = false; |
776 | int chan_mod; | 776 | int chan_mod; |
777 | u8 active_chains; | 777 | u8 active_chains; |
778 | u8 scan_tx_antennas = priv->hw_params.valid_tx_ant; | 778 | u8 scan_tx_antennas = hw_params(priv).valid_tx_ant; |
779 | int ret; | 779 | int ret; |
780 | 780 | ||
781 | lockdep_assert_held(&priv->mutex); | 781 | lockdep_assert_held(&priv->mutex); |
@@ -965,7 +965,8 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) | |||
965 | } | 965 | } |
966 | 966 | ||
967 | /* MIMO is not used here, but value is required */ | 967 | /* MIMO is not used here, but value is required */ |
968 | rx_chain |= priv->hw_params.valid_rx_ant << RXON_RX_CHAIN_VALID_POS; | 968 | rx_chain |= |
969 | hw_params(priv).valid_rx_ant << RXON_RX_CHAIN_VALID_POS; | ||
969 | rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_MIMO_SEL_POS; | 970 | rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_MIMO_SEL_POS; |
970 | rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_SEL_POS; | 971 | rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_SEL_POS; |
971 | rx_chain |= 0x1 << RXON_RX_CHAIN_DRIVER_FORCE_POS; | 972 | rx_chain |= 0x1 << RXON_RX_CHAIN_DRIVER_FORCE_POS; |
@@ -1101,7 +1102,7 @@ int iwlagn_wait_tx_queue_empty(struct iwl_priv *priv) | |||
1101 | int ret = 0; | 1102 | int ret = 0; |
1102 | 1103 | ||
1103 | /* waiting for all the tx frames complete might take a while */ | 1104 | /* waiting for all the tx frames complete might take a while */ |
1104 | for (cnt = 0; cnt < priv->hw_params.max_txq_num; cnt++) { | 1105 | for (cnt = 0; cnt < hw_params(priv).max_txq_num; cnt++) { |
1105 | if (cnt == priv->cmd_queue) | 1106 | if (cnt == priv->cmd_queue) |
1106 | continue; | 1107 | continue; |
1107 | txq = &priv->txq[cnt]; | 1108 | txq = &priv->txq[cnt]; |
@@ -1786,7 +1787,7 @@ void iwlagn_set_rxon_chain(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
1786 | if (priv->chain_noise_data.active_chains) | 1787 | if (priv->chain_noise_data.active_chains) |
1787 | active_chains = priv->chain_noise_data.active_chains; | 1788 | active_chains = priv->chain_noise_data.active_chains; |
1788 | else | 1789 | else |
1789 | active_chains = priv->hw_params.valid_rx_ant; | 1790 | active_chains = hw_params(priv).valid_rx_ant; |
1790 | 1791 | ||
1791 | if (priv->cfg->bt_params && | 1792 | if (priv->cfg->bt_params && |
1792 | priv->cfg->bt_params->advanced_bt_coexist && | 1793 | priv->cfg->bt_params->advanced_bt_coexist && |