diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/rs.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/rs.c b/drivers/net/wireless/iwlwifi/dvm/rs.c index a82f46c10f5e..f3dd0da60d8a 100644 --- a/drivers/net/wireless/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/iwlwifi/dvm/rs.c | |||
@@ -820,7 +820,7 @@ static u32 rs_get_lower_rate(struct iwl_lq_sta *lq_sta, | |||
820 | 820 | ||
821 | if (num_of_ant(tbl->ant_type) > 1) | 821 | if (num_of_ant(tbl->ant_type) > 1) |
822 | tbl->ant_type = | 822 | tbl->ant_type = |
823 | first_antenna(priv->eeprom_data->valid_tx_ant); | 823 | first_antenna(priv->nvm_data->valid_tx_ant); |
824 | 824 | ||
825 | tbl->is_ht40 = 0; | 825 | tbl->is_ht40 = 0; |
826 | tbl->is_SGI = 0; | 826 | tbl->is_SGI = 0; |
@@ -1448,7 +1448,7 @@ static int rs_move_legacy_other(struct iwl_priv *priv, | |||
1448 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - | 1448 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - |
1449 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); | 1449 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); |
1450 | u8 start_action; | 1450 | u8 start_action; |
1451 | u8 valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 1451 | u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; |
1452 | u8 tx_chains_num = priv->hw_params.tx_chains_num; | 1452 | u8 tx_chains_num = priv->hw_params.tx_chains_num; |
1453 | int ret = 0; | 1453 | int ret = 0; |
1454 | u8 update_search_tbl_counter = 0; | 1454 | u8 update_search_tbl_counter = 0; |
@@ -1466,7 +1466,7 @@ static int rs_move_legacy_other(struct iwl_priv *priv, | |||
1466 | case IWL_BT_COEX_TRAFFIC_LOAD_CONTINUOUS: | 1466 | case IWL_BT_COEX_TRAFFIC_LOAD_CONTINUOUS: |
1467 | /* avoid antenna B and MIMO */ | 1467 | /* avoid antenna B and MIMO */ |
1468 | valid_tx_ant = | 1468 | valid_tx_ant = |
1469 | first_antenna(priv->eeprom_data->valid_tx_ant); | 1469 | first_antenna(priv->nvm_data->valid_tx_ant); |
1470 | if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2 && | 1470 | if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2 && |
1471 | tbl->action != IWL_LEGACY_SWITCH_SISO) | 1471 | tbl->action != IWL_LEGACY_SWITCH_SISO) |
1472 | tbl->action = IWL_LEGACY_SWITCH_SISO; | 1472 | tbl->action = IWL_LEGACY_SWITCH_SISO; |
@@ -1490,7 +1490,7 @@ static int rs_move_legacy_other(struct iwl_priv *priv, | |||
1490 | else if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2) | 1490 | else if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2) |
1491 | tbl->action = IWL_LEGACY_SWITCH_SISO; | 1491 | tbl->action = IWL_LEGACY_SWITCH_SISO; |
1492 | valid_tx_ant = | 1492 | valid_tx_ant = |
1493 | first_antenna(priv->eeprom_data->valid_tx_ant); | 1493 | first_antenna(priv->nvm_data->valid_tx_ant); |
1494 | } | 1494 | } |
1495 | 1495 | ||
1496 | start_action = tbl->action; | 1496 | start_action = tbl->action; |
@@ -1624,7 +1624,7 @@ static int rs_move_siso_to_other(struct iwl_priv *priv, | |||
1624 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - | 1624 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - |
1625 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); | 1625 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); |
1626 | u8 start_action; | 1626 | u8 start_action; |
1627 | u8 valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 1627 | u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; |
1628 | u8 tx_chains_num = priv->hw_params.tx_chains_num; | 1628 | u8 tx_chains_num = priv->hw_params.tx_chains_num; |
1629 | u8 update_search_tbl_counter = 0; | 1629 | u8 update_search_tbl_counter = 0; |
1630 | int ret; | 1630 | int ret; |
@@ -1642,7 +1642,7 @@ static int rs_move_siso_to_other(struct iwl_priv *priv, | |||
1642 | case IWL_BT_COEX_TRAFFIC_LOAD_CONTINUOUS: | 1642 | case IWL_BT_COEX_TRAFFIC_LOAD_CONTINUOUS: |
1643 | /* avoid antenna B and MIMO */ | 1643 | /* avoid antenna B and MIMO */ |
1644 | valid_tx_ant = | 1644 | valid_tx_ant = |
1645 | first_antenna(priv->eeprom_data->valid_tx_ant); | 1645 | first_antenna(priv->nvm_data->valid_tx_ant); |
1646 | if (tbl->action != IWL_SISO_SWITCH_ANTENNA1) | 1646 | if (tbl->action != IWL_SISO_SWITCH_ANTENNA1) |
1647 | tbl->action = IWL_SISO_SWITCH_ANTENNA1; | 1647 | tbl->action = IWL_SISO_SWITCH_ANTENNA1; |
1648 | break; | 1648 | break; |
@@ -1660,7 +1660,7 @@ static int rs_move_siso_to_other(struct iwl_priv *priv, | |||
1660 | /* configure as 1x1 if bt full concurrency */ | 1660 | /* configure as 1x1 if bt full concurrency */ |
1661 | if (priv->bt_full_concurrent) { | 1661 | if (priv->bt_full_concurrent) { |
1662 | valid_tx_ant = | 1662 | valid_tx_ant = |
1663 | first_antenna(priv->eeprom_data->valid_tx_ant); | 1663 | first_antenna(priv->nvm_data->valid_tx_ant); |
1664 | if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2) | 1664 | if (tbl->action >= IWL_LEGACY_SWITCH_ANTENNA2) |
1665 | tbl->action = IWL_SISO_SWITCH_ANTENNA1; | 1665 | tbl->action = IWL_SISO_SWITCH_ANTENNA1; |
1666 | } | 1666 | } |
@@ -1796,7 +1796,7 @@ static int rs_move_mimo2_to_other(struct iwl_priv *priv, | |||
1796 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - | 1796 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - |
1797 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); | 1797 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); |
1798 | u8 start_action; | 1798 | u8 start_action; |
1799 | u8 valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 1799 | u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; |
1800 | u8 tx_chains_num = priv->hw_params.tx_chains_num; | 1800 | u8 tx_chains_num = priv->hw_params.tx_chains_num; |
1801 | u8 update_search_tbl_counter = 0; | 1801 | u8 update_search_tbl_counter = 0; |
1802 | int ret; | 1802 | int ret; |
@@ -1966,7 +1966,7 @@ static int rs_move_mimo3_to_other(struct iwl_priv *priv, | |||
1966 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - | 1966 | u32 sz = (sizeof(struct iwl_scale_tbl_info) - |
1967 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); | 1967 | (sizeof(struct iwl_rate_scale_data) * IWL_RATE_COUNT)); |
1968 | u8 start_action; | 1968 | u8 start_action; |
1969 | u8 valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 1969 | u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; |
1970 | u8 tx_chains_num = priv->hw_params.tx_chains_num; | 1970 | u8 tx_chains_num = priv->hw_params.tx_chains_num; |
1971 | int ret; | 1971 | int ret; |
1972 | u8 update_search_tbl_counter = 0; | 1972 | u8 update_search_tbl_counter = 0; |
@@ -2700,7 +2700,7 @@ static void rs_initialize_lq(struct iwl_priv *priv, | |||
2700 | 2700 | ||
2701 | i = lq_sta->last_txrate_idx; | 2701 | i = lq_sta->last_txrate_idx; |
2702 | 2702 | ||
2703 | valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 2703 | valid_tx_ant = priv->nvm_data->valid_tx_ant; |
2704 | 2704 | ||
2705 | if (!lq_sta->search_better_tbl) | 2705 | if (!lq_sta->search_better_tbl) |
2706 | active_tbl = lq_sta->active_tbl; | 2706 | active_tbl = lq_sta->active_tbl; |
@@ -2894,15 +2894,15 @@ void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 sta_i | |||
2894 | 2894 | ||
2895 | /* These values will be overridden later */ | 2895 | /* These values will be overridden later */ |
2896 | lq_sta->lq.general_params.single_stream_ant_msk = | 2896 | lq_sta->lq.general_params.single_stream_ant_msk = |
2897 | first_antenna(priv->eeprom_data->valid_tx_ant); | 2897 | first_antenna(priv->nvm_data->valid_tx_ant); |
2898 | lq_sta->lq.general_params.dual_stream_ant_msk = | 2898 | lq_sta->lq.general_params.dual_stream_ant_msk = |
2899 | priv->eeprom_data->valid_tx_ant & | 2899 | priv->nvm_data->valid_tx_ant & |
2900 | ~first_antenna(priv->eeprom_data->valid_tx_ant); | 2900 | ~first_antenna(priv->nvm_data->valid_tx_ant); |
2901 | if (!lq_sta->lq.general_params.dual_stream_ant_msk) { | 2901 | if (!lq_sta->lq.general_params.dual_stream_ant_msk) { |
2902 | lq_sta->lq.general_params.dual_stream_ant_msk = ANT_AB; | 2902 | lq_sta->lq.general_params.dual_stream_ant_msk = ANT_AB; |
2903 | } else if (num_of_ant(priv->eeprom_data->valid_tx_ant) == 2) { | 2903 | } else if (num_of_ant(priv->nvm_data->valid_tx_ant) == 2) { |
2904 | lq_sta->lq.general_params.dual_stream_ant_msk = | 2904 | lq_sta->lq.general_params.dual_stream_ant_msk = |
2905 | priv->eeprom_data->valid_tx_ant; | 2905 | priv->nvm_data->valid_tx_ant; |
2906 | } | 2906 | } |
2907 | 2907 | ||
2908 | /* as default allow aggregation for all tids */ | 2908 | /* as default allow aggregation for all tids */ |
@@ -2948,7 +2948,7 @@ static void rs_fill_link_cmd(struct iwl_priv *priv, | |||
2948 | if (priv && priv->bt_full_concurrent) { | 2948 | if (priv && priv->bt_full_concurrent) { |
2949 | /* 1x1 only */ | 2949 | /* 1x1 only */ |
2950 | tbl_type.ant_type = | 2950 | tbl_type.ant_type = |
2951 | first_antenna(priv->eeprom_data->valid_tx_ant); | 2951 | first_antenna(priv->nvm_data->valid_tx_ant); |
2952 | } | 2952 | } |
2953 | 2953 | ||
2954 | /* How many times should we repeat the initial rate? */ | 2954 | /* How many times should we repeat the initial rate? */ |
@@ -2980,7 +2980,7 @@ static void rs_fill_link_cmd(struct iwl_priv *priv, | |||
2980 | if (priv->bt_full_concurrent) | 2980 | if (priv->bt_full_concurrent) |
2981 | valid_tx_ant = ANT_A; | 2981 | valid_tx_ant = ANT_A; |
2982 | else | 2982 | else |
2983 | valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 2983 | valid_tx_ant = priv->nvm_data->valid_tx_ant; |
2984 | } | 2984 | } |
2985 | 2985 | ||
2986 | /* Fill rest of rate table */ | 2986 | /* Fill rest of rate table */ |
@@ -3014,7 +3014,7 @@ static void rs_fill_link_cmd(struct iwl_priv *priv, | |||
3014 | if (priv && priv->bt_full_concurrent) { | 3014 | if (priv && priv->bt_full_concurrent) { |
3015 | /* 1x1 only */ | 3015 | /* 1x1 only */ |
3016 | tbl_type.ant_type = | 3016 | tbl_type.ant_type = |
3017 | first_antenna(priv->eeprom_data->valid_tx_ant); | 3017 | first_antenna(priv->nvm_data->valid_tx_ant); |
3018 | } | 3018 | } |
3019 | 3019 | ||
3020 | /* Indicate to uCode which entries might be MIMO. | 3020 | /* Indicate to uCode which entries might be MIMO. |
@@ -3101,7 +3101,7 @@ static void rs_dbgfs_set_mcs(struct iwl_lq_sta *lq_sta, | |||
3101 | u8 ant_sel_tx; | 3101 | u8 ant_sel_tx; |
3102 | 3102 | ||
3103 | priv = lq_sta->drv; | 3103 | priv = lq_sta->drv; |
3104 | valid_tx_ant = priv->eeprom_data->valid_tx_ant; | 3104 | valid_tx_ant = priv->nvm_data->valid_tx_ant; |
3105 | if (lq_sta->dbg_fixed_rate) { | 3105 | if (lq_sta->dbg_fixed_rate) { |
3106 | ant_sel_tx = | 3106 | ant_sel_tx = |
3107 | ((lq_sta->dbg_fixed_rate & RATE_MCS_ANT_ABC_MSK) | 3107 | ((lq_sta->dbg_fixed_rate & RATE_MCS_ANT_ABC_MSK) |
@@ -3172,9 +3172,9 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
3172 | desc += sprintf(buff+desc, "fixed rate 0x%X\n", | 3172 | desc += sprintf(buff+desc, "fixed rate 0x%X\n", |
3173 | lq_sta->dbg_fixed_rate); | 3173 | lq_sta->dbg_fixed_rate); |
3174 | desc += sprintf(buff+desc, "valid_tx_ant %s%s%s\n", | 3174 | desc += sprintf(buff+desc, "valid_tx_ant %s%s%s\n", |
3175 | (priv->eeprom_data->valid_tx_ant & ANT_A) ? "ANT_A," : "", | 3175 | (priv->nvm_data->valid_tx_ant & ANT_A) ? "ANT_A," : "", |
3176 | (priv->eeprom_data->valid_tx_ant & ANT_B) ? "ANT_B," : "", | 3176 | (priv->nvm_data->valid_tx_ant & ANT_B) ? "ANT_B," : "", |
3177 | (priv->eeprom_data->valid_tx_ant & ANT_C) ? "ANT_C" : ""); | 3177 | (priv->nvm_data->valid_tx_ant & ANT_C) ? "ANT_C" : ""); |
3178 | desc += sprintf(buff+desc, "lq type %s\n", | 3178 | desc += sprintf(buff+desc, "lq type %s\n", |
3179 | (is_legacy(tbl->lq_type)) ? "legacy" : "HT"); | 3179 | (is_legacy(tbl->lq_type)) ? "legacy" : "HT"); |
3180 | if (is_Ht(tbl->lq_type)) { | 3180 | if (is_Ht(tbl->lq_type)) { |