aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:10:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:25:31 -0400
commit63013ae30159c90d2a873e20e680e7810fa533fa (patch)
tree7bb7dcaf655df21297cf75ddeb8d350a68386a38 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c
parent74e28e44095e30ffd2d0258e4fe91826a15247e7 (diff)
iwlagn: priv->status 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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index 355a81cca18b..7c3e3eace955 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -387,7 +387,7 @@ void iwl_check_abort_status(struct iwl_priv *priv,
387{ 387{
388 if (frame_count == 1 && status == TX_STATUS_FAIL_RFKILL_FLUSH) { 388 if (frame_count == 1 && status == TX_STATUS_FAIL_RFKILL_FLUSH) {
389 IWL_ERR(priv, "Tx flush command to flush out all frames\n"); 389 IWL_ERR(priv, "Tx flush command to flush out all frames\n");
390 if (!test_bit(STATUS_EXIT_PENDING, &priv->status)) 390 if (!test_bit(STATUS_EXIT_PENDING, &priv->shrd->status))
391 queue_work(priv->shrd->workqueue, &priv->tx_flush); 391 queue_work(priv->shrd->workqueue, &priv->tx_flush);
392 } 392 }
393} 393}
@@ -496,7 +496,7 @@ int iwlagn_send_tx_power(struct iwl_priv *priv)
496 struct iwlagn_tx_power_dbm_cmd tx_power_cmd; 496 struct iwlagn_tx_power_dbm_cmd tx_power_cmd;
497 u8 tx_ant_cfg_cmd; 497 u8 tx_ant_cfg_cmd;
498 498
499 if (WARN_ONCE(test_bit(STATUS_SCAN_HW, &priv->status), 499 if (WARN_ONCE(test_bit(STATUS_SCAN_HW, &priv->shrd->status),
500 "TX Power requested while scanning!\n")) 500 "TX Power requested while scanning!\n"))
501 return -EAGAIN; 501 return -EAGAIN;
502 502
@@ -945,7 +945,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
945 scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags); 945 scan->tx_cmd.rate_n_flags = iwl_hw_set_rate_n_flags(rate, rate_flags);
946 946
947 /* In power save mode use one chain, otherwise use all chains */ 947 /* In power save mode use one chain, otherwise use all chains */
948 if (test_bit(STATUS_POWER_PMI, &priv->status)) { 948 if (test_bit(STATUS_POWER_PMI, &priv->shrd->status)) {
949 /* rx_ant has been set to all valid chains previously */ 949 /* rx_ant has been set to all valid chains previously */
950 active_chains = rx_ant & 950 active_chains = rx_ant &
951 ((u8)(priv->chain_noise_data.active_chains)); 951 ((u8)(priv->chain_noise_data.active_chains));
@@ -1048,7 +1048,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1048 scan->len = cpu_to_le16(cmd.len[0]); 1048 scan->len = cpu_to_le16(cmd.len[0]);
1049 1049
1050 /* set scan bit here for PAN params */ 1050 /* set scan bit here for PAN params */
1051 set_bit(STATUS_SCAN_HW, &priv->status); 1051 set_bit(STATUS_SCAN_HW, &priv->shrd->status);
1052 1052
1053 ret = iwlagn_set_pan_params(priv); 1053 ret = iwlagn_set_pan_params(priv);
1054 if (ret) 1054 if (ret)
@@ -1056,7 +1056,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
1056 1056
1057 ret = trans_send_cmd(&priv->trans, &cmd); 1057 ret = trans_send_cmd(&priv->trans, &cmd);
1058 if (ret) { 1058 if (ret) {
1059 clear_bit(STATUS_SCAN_HW, &priv->status); 1059 clear_bit(STATUS_SCAN_HW, &priv->shrd->status);
1060 iwlagn_set_pan_params(priv); 1060 iwlagn_set_pan_params(priv);
1061 } 1061 }
1062 1062
@@ -1494,7 +1494,7 @@ static void iwlagn_bt_traffic_change_work(struct work_struct *work)
1494 * STATUS_SCANNING to avoid race when queue_work two times from 1494 * STATUS_SCANNING to avoid race when queue_work two times from
1495 * different notifications, but quit and not perform any work at all. 1495 * different notifications, but quit and not perform any work at all.
1496 */ 1496 */
1497 if (test_bit(STATUS_SCAN_HW, &priv->status)) 1497 if (test_bit(STATUS_SCAN_HW, &priv->shrd->status))
1498 goto out; 1498 goto out;
1499 1499
1500 iwl_update_chain_flags(priv); 1500 iwl_update_chain_flags(priv);
@@ -1775,7 +1775,7 @@ static u8 iwl_count_chain_bitmap(u32 chain_bitmap)
1775void iwlagn_set_rxon_chain(struct iwl_priv *priv, struct iwl_rxon_context *ctx) 1775void iwlagn_set_rxon_chain(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
1776{ 1776{
1777 bool is_single = is_single_rx_stream(priv); 1777 bool is_single = is_single_rx_stream(priv);
1778 bool is_cam = !test_bit(STATUS_POWER_PMI, &priv->status); 1778 bool is_cam = !test_bit(STATUS_POWER_PMI, &priv->shrd->status);
1779 u8 idle_rx_cnt, active_rx_cnt, valid_rx_cnt; 1779 u8 idle_rx_cnt, active_rx_cnt, valid_rx_cnt;
1780 u32 active_chains; 1780 u32 active_chains;
1781 u16 rx_chain; 1781 u16 rx_chain;