diff options
| -rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/fw.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c index e6d51a9069c9..d3c067e670a8 100644 --- a/drivers/net/wireless/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/iwlwifi/mvm/fw.c | |||
| @@ -241,20 +241,6 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm, | |||
| 241 | 241 | ||
| 242 | return 0; | 242 | return 0; |
| 243 | } | 243 | } |
| 244 | #define IWL_HW_REV_ID_RAINBOW 0x2 | ||
| 245 | #define IWL_PROJ_TYPE_LHP 0x5 | ||
| 246 | |||
| 247 | static u32 iwl_mvm_build_phy_cfg(struct iwl_mvm *mvm) | ||
| 248 | { | ||
| 249 | struct iwl_nvm_data *data = mvm->nvm_data; | ||
| 250 | /* Temp calls to static definitions, will be changed to CSR calls */ | ||
| 251 | u8 hw_rev_id = IWL_HW_REV_ID_RAINBOW; | ||
| 252 | u8 project_type = IWL_PROJ_TYPE_LHP; | ||
| 253 | |||
| 254 | return data->radio_cfg_dash | (data->radio_cfg_step << 2) | | ||
| 255 | (hw_rev_id << 4) | ((project_type & 0x7f) << 6) | | ||
| 256 | (data->valid_tx_ant << 16) | (data->valid_rx_ant << 20); | ||
| 257 | } | ||
| 258 | 244 | ||
| 259 | static int iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm) | 245 | static int iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm) |
| 260 | { | 246 | { |
| @@ -262,7 +248,7 @@ static int iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm) | |||
| 262 | enum iwl_ucode_type ucode_type = mvm->cur_ucode; | 248 | enum iwl_ucode_type ucode_type = mvm->cur_ucode; |
| 263 | 249 | ||
| 264 | /* Set parameters */ | 250 | /* Set parameters */ |
| 265 | phy_cfg_cmd.phy_cfg = cpu_to_le32(iwl_mvm_build_phy_cfg(mvm)); | 251 | phy_cfg_cmd.phy_cfg = cpu_to_le32(mvm->fw->phy_config); |
| 266 | phy_cfg_cmd.calib_control.event_trigger = | 252 | phy_cfg_cmd.calib_control.event_trigger = |
| 267 | mvm->fw->default_calib[ucode_type].event_trigger; | 253 | mvm->fw->default_calib[ucode_type].event_trigger; |
| 268 | phy_cfg_cmd.calib_control.flow_trigger = | 254 | phy_cfg_cmd.calib_control.flow_trigger = |
