diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-03-22 11:51:44 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-18 10:29:59 -0400 |
commit | 2152268ff9119c16447f6bf6e61b02df796960fd (patch) | |
tree | 60c90431506a2dd20060fc8a1473ccc7839d65f2 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |
parent | 68e8dfdadb424fd76ca81eeb399c3228adc5cea2 (diff) |
iwlwifi: op_mode holds its pointer to the config
Instead of using the shared area that we be killed.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index ab36344ee7c0..86a673306a58 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -312,21 +312,21 @@ void iwlagn_send_advance_bt_config(struct iwl_priv *priv) | |||
312 | BUILD_BUG_ON(sizeof(iwlagn_def_3w_lookup) != | 312 | BUILD_BUG_ON(sizeof(iwlagn_def_3w_lookup) != |
313 | sizeof(basic.bt3_lookup_table)); | 313 | sizeof(basic.bt3_lookup_table)); |
314 | 314 | ||
315 | if (cfg(priv)->bt_params) { | 315 | if (priv->cfg->bt_params) { |
316 | /* | 316 | /* |
317 | * newer generation of devices (2000 series and newer) | 317 | * newer generation of devices (2000 series and newer) |
318 | * use the version 2 of the bt command | 318 | * use the version 2 of the bt command |
319 | * we need to make sure sending the host command | 319 | * we need to make sure sending the host command |
320 | * with correct data structure to avoid uCode assert | 320 | * with correct data structure to avoid uCode assert |
321 | */ | 321 | */ |
322 | if (cfg(priv)->bt_params->bt_session_2) { | 322 | if (priv->cfg->bt_params->bt_session_2) { |
323 | bt_cmd_v2.prio_boost = cpu_to_le32( | 323 | bt_cmd_v2.prio_boost = cpu_to_le32( |
324 | cfg(priv)->bt_params->bt_prio_boost); | 324 | priv->cfg->bt_params->bt_prio_boost); |
325 | bt_cmd_v2.tx_prio_boost = 0; | 325 | bt_cmd_v2.tx_prio_boost = 0; |
326 | bt_cmd_v2.rx_prio_boost = 0; | 326 | bt_cmd_v2.rx_prio_boost = 0; |
327 | } else { | 327 | } else { |
328 | bt_cmd_v1.prio_boost = | 328 | bt_cmd_v1.prio_boost = |
329 | cfg(priv)->bt_params->bt_prio_boost; | 329 | priv->cfg->bt_params->bt_prio_boost; |
330 | bt_cmd_v1.tx_prio_boost = 0; | 330 | bt_cmd_v1.tx_prio_boost = 0; |
331 | bt_cmd_v1.rx_prio_boost = 0; | 331 | bt_cmd_v1.rx_prio_boost = 0; |
332 | } | 332 | } |
@@ -374,7 +374,7 @@ void iwlagn_send_advance_bt_config(struct iwl_priv *priv) | |||
374 | priv->bt_full_concurrent ? | 374 | priv->bt_full_concurrent ? |
375 | "full concurrency" : "3-wire"); | 375 | "full concurrency" : "3-wire"); |
376 | 376 | ||
377 | if (cfg(priv)->bt_params->bt_session_2) { | 377 | if (priv->cfg->bt_params->bt_session_2) { |
378 | memcpy(&bt_cmd_v2.basic, &basic, | 378 | memcpy(&bt_cmd_v2.basic, &basic, |
379 | sizeof(basic)); | 379 | sizeof(basic)); |
380 | ret = iwl_dvm_send_cmd_pdu(priv, REPLY_BT_CONFIG, | 380 | ret = iwl_dvm_send_cmd_pdu(priv, REPLY_BT_CONFIG, |
@@ -740,8 +740,8 @@ static bool is_single_rx_stream(struct iwl_priv *priv) | |||
740 | */ | 740 | */ |
741 | static int iwl_get_active_rx_chain_count(struct iwl_priv *priv) | 741 | static int iwl_get_active_rx_chain_count(struct iwl_priv *priv) |
742 | { | 742 | { |
743 | if (cfg(priv)->bt_params && | 743 | if (priv->cfg->bt_params && |
744 | cfg(priv)->bt_params->advanced_bt_coexist && | 744 | priv->cfg->bt_params->advanced_bt_coexist && |
745 | (priv->bt_full_concurrent || | 745 | (priv->bt_full_concurrent || |
746 | priv->bt_traffic_load >= IWL_BT_COEX_TRAFFIC_LOAD_HIGH)) { | 746 | priv->bt_traffic_load >= IWL_BT_COEX_TRAFFIC_LOAD_HIGH)) { |
747 | /* | 747 | /* |
@@ -812,8 +812,8 @@ void iwlagn_set_rxon_chain(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
812 | else | 812 | else |
813 | active_chains = priv->hw_params.valid_rx_ant; | 813 | active_chains = priv->hw_params.valid_rx_ant; |
814 | 814 | ||
815 | if (cfg(priv)->bt_params && | 815 | if (priv->cfg->bt_params && |
816 | cfg(priv)->bt_params->advanced_bt_coexist && | 816 | priv->cfg->bt_params->advanced_bt_coexist && |
817 | (priv->bt_full_concurrent || | 817 | (priv->bt_full_concurrent || |
818 | priv->bt_traffic_load >= IWL_BT_COEX_TRAFFIC_LOAD_HIGH)) { | 818 | priv->bt_traffic_load >= IWL_BT_COEX_TRAFFIC_LOAD_HIGH)) { |
819 | /* | 819 | /* |