diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 5c1ea0b2c6a2..8684f2639716 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3891,6 +3891,24 @@ static void iwl_hw_detect(struct iwl_priv *priv) | |||
3891 | IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", priv->rev_id); | 3891 | IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", priv->rev_id); |
3892 | } | 3892 | } |
3893 | 3893 | ||
3894 | static int iwl_set_hw_params(struct iwl_priv *priv) | ||
3895 | { | ||
3896 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; | ||
3897 | priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; | ||
3898 | if (priv->cfg->mod_params->amsdu_size_8K) | ||
3899 | priv->hw_params.rx_page_order = get_order(IWL_RX_BUF_SIZE_8K); | ||
3900 | else | ||
3901 | priv->hw_params.rx_page_order = get_order(IWL_RX_BUF_SIZE_4K); | ||
3902 | |||
3903 | priv->hw_params.max_beacon_itrvl = IWL_MAX_UCODE_BEACON_INTERVAL; | ||
3904 | |||
3905 | if (priv->cfg->mod_params->disable_11n) | ||
3906 | priv->cfg->sku &= ~IWL_SKU_N; | ||
3907 | |||
3908 | /* Device-specific setup */ | ||
3909 | return priv->cfg->ops->lib->set_hw_params(priv); | ||
3910 | } | ||
3911 | |||
3894 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 3912 | static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
3895 | { | 3913 | { |
3896 | int err = 0; | 3914 | int err = 0; |