aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b3b1e84c9311..d700860434a5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1700,6 +1700,11 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)
1700 } else 1700 } else
1701 priv->sta_key_max_num = STA_KEY_MAX_NUM; 1701 priv->sta_key_max_num = STA_KEY_MAX_NUM;
1702 1702
1703 if (priv->valid_contexts != BIT(IWL_RXON_CTX_BSS))
1704 priv->cmd_queue = IWL_IPAN_CMD_QUEUE_NUM;
1705 else
1706 priv->cmd_queue = IWL_DEFAULT_CMD_QUEUE_NUM;
1707
1703 if (ucode_capa.flags & IWL_UCODE_TLV_FLAGS_BTSTATS || 1708 if (ucode_capa.flags & IWL_UCODE_TLV_FLAGS_BTSTATS ||
1704 (priv->cfg->bt_params && priv->cfg->bt_params->bt_statistics)) 1709 (priv->cfg->bt_params && priv->cfg->bt_params->bt_statistics))
1705 priv->bt_statistics = true; 1710 priv->bt_statistics = true;
@@ -2518,12 +2523,6 @@ static int __iwl_up(struct iwl_priv *priv)
2518 2523
2519 iwl_write32(priv, CSR_INT, 0xFFFFFFFF); 2524 iwl_write32(priv, CSR_INT, 0xFFFFFFFF);
2520 2525
2521 /* must be initialised before iwl_hw_nic_init */
2522 if (priv->valid_contexts != BIT(IWL_RXON_CTX_BSS))
2523 priv->cmd_queue = IWL_IPAN_CMD_QUEUE_NUM;
2524 else
2525 priv->cmd_queue = IWL_DEFAULT_CMD_QUEUE_NUM;
2526
2527 ret = iwlagn_hw_nic_init(priv); 2526 ret = iwlagn_hw_nic_init(priv);
2528 if (ret) { 2527 if (ret) {
2529 IWL_ERR(priv, "Unable to init nic\n"); 2528 IWL_ERR(priv, "Unable to init nic\n");