diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 7f16d1203057..f91e306c2498 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -585,8 +585,7 @@ static void _iwl_set_rxon_ht(struct iwl_priv *priv, | |||
585 | rxon->flags |= RXON_FLG_CHANNEL_MODE_LEGACY; | 585 | rxon->flags |= RXON_FLG_CHANNEL_MODE_LEGACY; |
586 | } | 586 | } |
587 | 587 | ||
588 | if (priv->cfg->ops->hcmd->set_rxon_chain) | 588 | iwlagn_set_rxon_chain(priv, ctx); |
589 | priv->cfg->ops->hcmd->set_rxon_chain(priv, ctx); | ||
590 | 589 | ||
591 | IWL_DEBUG_ASSOC(priv, "rxon flags 0x%X operation mode :0x%X " | 590 | IWL_DEBUG_ASSOC(priv, "rxon flags 0x%X operation mode :0x%X " |
592 | "extension channel offset 0x%x\n", | 591 | "extension channel offset 0x%x\n", |
@@ -1216,8 +1215,7 @@ static int iwl_set_mode(struct iwl_priv *priv, struct iwl_rxon_context *ctx) | |||
1216 | { | 1215 | { |
1217 | iwl_connection_init_rx_config(priv, ctx); | 1216 | iwl_connection_init_rx_config(priv, ctx); |
1218 | 1217 | ||
1219 | if (priv->cfg->ops->hcmd->set_rxon_chain) | 1218 | iwlagn_set_rxon_chain(priv, ctx); |
1220 | priv->cfg->ops->hcmd->set_rxon_chain(priv, ctx); | ||
1221 | 1219 | ||
1222 | return iwlagn_commit_rxon(priv, ctx); | 1220 | return iwlagn_commit_rxon(priv, ctx); |
1223 | } | 1221 | } |
@@ -1372,20 +1370,6 @@ void iwl_mac_remove_interface(struct ieee80211_hw *hw, | |||
1372 | 1370 | ||
1373 | } | 1371 | } |
1374 | 1372 | ||
1375 | int iwl_alloc_txq_mem(struct iwl_priv *priv) | ||
1376 | { | ||
1377 | if (!priv->txq) | ||
1378 | priv->txq = kzalloc( | ||
1379 | sizeof(struct iwl_tx_queue) * | ||
1380 | priv->cfg->base_params->num_of_queues, | ||
1381 | GFP_KERNEL); | ||
1382 | if (!priv->txq) { | ||
1383 | IWL_ERR(priv, "Not enough memory for txq\n"); | ||
1384 | return -ENOMEM; | ||
1385 | } | ||
1386 | return 0; | ||
1387 | } | ||
1388 | |||
1389 | void iwl_free_txq_mem(struct iwl_priv *priv) | 1373 | void iwl_free_txq_mem(struct iwl_priv *priv) |
1390 | { | 1374 | { |
1391 | kfree(priv->txq); | 1375 | kfree(priv->txq); |
@@ -1853,7 +1837,7 @@ void iwl_setup_watchdog(struct iwl_priv *priv) | |||
1853 | { | 1837 | { |
1854 | unsigned int timeout = priv->cfg->base_params->wd_timeout; | 1838 | unsigned int timeout = priv->cfg->base_params->wd_timeout; |
1855 | 1839 | ||
1856 | if (timeout) | 1840 | if (timeout && !iwlagn_mod_params.wd_disable) |
1857 | mod_timer(&priv->watchdog, | 1841 | mod_timer(&priv->watchdog, |
1858 | jiffies + msecs_to_jiffies(IWL_WD_TICK(timeout))); | 1842 | jiffies + msecs_to_jiffies(IWL_WD_TICK(timeout))); |
1859 | else | 1843 | else |