diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/main.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/main.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c index 30e761d31e98..e3a07c916812 100644 --- a/drivers/net/wireless/iwlwifi/dvm/main.c +++ b/drivers/net/wireless/iwlwifi/dvm/main.c | |||
@@ -511,7 +511,7 @@ static void iwl_bg_tx_flush(struct work_struct *work) | |||
511 | return; | 511 | return; |
512 | 512 | ||
513 | IWL_DEBUG_INFO(priv, "device request: flush all tx frames\n"); | 513 | IWL_DEBUG_INFO(priv, "device request: flush all tx frames\n"); |
514 | iwlagn_dev_txfifo_flush(priv, IWL_DROP_ALL); | 514 | iwlagn_dev_txfifo_flush(priv); |
515 | } | 515 | } |
516 | 516 | ||
517 | /* | 517 | /* |
@@ -1191,8 +1191,6 @@ static void iwl_option_config(struct iwl_priv *priv) | |||
1191 | 1191 | ||
1192 | static int iwl_eeprom_init_hw_params(struct iwl_priv *priv) | 1192 | static int iwl_eeprom_init_hw_params(struct iwl_priv *priv) |
1193 | { | 1193 | { |
1194 | priv->eeprom_data->sku = priv->eeprom_data->sku; | ||
1195 | |||
1196 | if (priv->eeprom_data->sku & EEPROM_SKU_CAP_11N_ENABLE && | 1194 | if (priv->eeprom_data->sku & EEPROM_SKU_CAP_11N_ENABLE && |
1197 | !priv->cfg->ht_params) { | 1195 | !priv->cfg->ht_params) { |
1198 | IWL_ERR(priv, "Invalid 11n configuration\n"); | 1196 | IWL_ERR(priv, "Invalid 11n configuration\n"); |
@@ -1204,7 +1202,7 @@ static int iwl_eeprom_init_hw_params(struct iwl_priv *priv) | |||
1204 | return -EINVAL; | 1202 | return -EINVAL; |
1205 | } | 1203 | } |
1206 | 1204 | ||
1207 | IWL_INFO(priv, "Device SKU: 0x%X\n", priv->eeprom_data->sku); | 1205 | IWL_DEBUG_INFO(priv, "Device SKU: 0x%X\n", priv->eeprom_data->sku); |
1208 | 1206 | ||
1209 | priv->hw_params.tx_chains_num = | 1207 | priv->hw_params.tx_chains_num = |
1210 | num_of_ant(priv->eeprom_data->valid_tx_ant); | 1208 | num_of_ant(priv->eeprom_data->valid_tx_ant); |
@@ -1214,9 +1212,9 @@ static int iwl_eeprom_init_hw_params(struct iwl_priv *priv) | |||
1214 | priv->hw_params.rx_chains_num = | 1212 | priv->hw_params.rx_chains_num = |
1215 | num_of_ant(priv->eeprom_data->valid_rx_ant); | 1213 | num_of_ant(priv->eeprom_data->valid_rx_ant); |
1216 | 1214 | ||
1217 | IWL_INFO(priv, "Valid Tx ant: 0x%X, Valid Rx ant: 0x%X\n", | 1215 | IWL_DEBUG_INFO(priv, "Valid Tx ant: 0x%X, Valid Rx ant: 0x%X\n", |
1218 | priv->eeprom_data->valid_tx_ant, | 1216 | priv->eeprom_data->valid_tx_ant, |
1219 | priv->eeprom_data->valid_rx_ant); | 1217 | priv->eeprom_data->valid_rx_ant); |
1220 | 1218 | ||
1221 | return 0; | 1219 | return 0; |
1222 | } | 1220 | } |
@@ -1231,7 +1229,7 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1231 | struct iwl_op_mode *op_mode; | 1229 | struct iwl_op_mode *op_mode; |
1232 | u16 num_mac; | 1230 | u16 num_mac; |
1233 | u32 ucode_flags; | 1231 | u32 ucode_flags; |
1234 | struct iwl_trans_config trans_cfg; | 1232 | struct iwl_trans_config trans_cfg = {}; |
1235 | static const u8 no_reclaim_cmds[] = { | 1233 | static const u8 no_reclaim_cmds[] = { |
1236 | REPLY_RX_PHY_CMD, | 1234 | REPLY_RX_PHY_CMD, |
1237 | REPLY_RX_MPDU_CMD, | 1235 | REPLY_RX_MPDU_CMD, |
@@ -1507,10 +1505,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode) | |||
1507 | 1505 | ||
1508 | iwl_tt_exit(priv); | 1506 | iwl_tt_exit(priv); |
1509 | 1507 | ||
1510 | /*This will stop the queues, move the device to low power state */ | ||
1511 | priv->ucode_loaded = false; | ||
1512 | iwl_trans_stop_device(priv->trans); | ||
1513 | |||
1514 | kfree(priv->eeprom_blob); | 1508 | kfree(priv->eeprom_blob); |
1515 | iwl_free_eeprom_data(priv->eeprom_data); | 1509 | iwl_free_eeprom_data(priv->eeprom_data); |
1516 | 1510 | ||
@@ -1926,8 +1920,6 @@ static void iwlagn_fw_error(struct iwl_priv *priv, bool ondemand) | |||
1926 | * commands by clearing the ready bit */ | 1920 | * commands by clearing the ready bit */ |
1927 | clear_bit(STATUS_READY, &priv->status); | 1921 | clear_bit(STATUS_READY, &priv->status); |
1928 | 1922 | ||
1929 | wake_up(&priv->trans->wait_command_queue); | ||
1930 | |||
1931 | if (!ondemand) { | 1923 | if (!ondemand) { |
1932 | /* | 1924 | /* |
1933 | * If firmware keep reloading, then it indicate something | 1925 | * If firmware keep reloading, then it indicate something |