aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/pcie.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2014-02-27 22:35:13 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 14:33:40 -0500
commit828cf2222f05a22e51cdde4fb959d256bf31613b (patch)
tree8f58a029ce9e8af2d4b3a650d61c0ec2ae6cae35 /drivers/net/wireless/mwifiex/pcie.c
parentfa0ecbb9905d985a77e76801ba1153394ba593e8 (diff)
mwifiex: change transmit buffer size for 8897
Currently default Tx buffer size configured to firmware is 2K for all chipsets. This patch changes it to 4K for SD/PCIe/USB 8897 chipsets as per firmware requirements. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/pcie.c')
-rw-r--r--drivers/net/wireless/mwifiex/pcie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c
index d11d4acf0890..92c31b5c269c 100644
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -190,6 +190,7 @@ static int mwifiex_pcie_probe(struct pci_dev *pdev,
190 card->pcie.firmware = data->firmware; 190 card->pcie.firmware = data->firmware;
191 card->pcie.reg = data->reg; 191 card->pcie.reg = data->reg;
192 card->pcie.blksz_fw_dl = data->blksz_fw_dl; 192 card->pcie.blksz_fw_dl = data->blksz_fw_dl;
193 card->pcie.tx_buf_size = data->tx_buf_size;
193 } 194 }
194 195
195 if (mwifiex_add_card(card, &add_remove_card_sem, &pcie_ops, 196 if (mwifiex_add_card(card, &add_remove_card_sem, &pcie_ops,
@@ -2320,6 +2321,7 @@ static int mwifiex_register_dev(struct mwifiex_adapter *adapter)
2320 } 2321 }
2321 2322
2322 adapter->dev = &pdev->dev; 2323 adapter->dev = &pdev->dev;
2324 adapter->tx_buf_size = card->pcie.tx_buf_size;
2323 strcpy(adapter->fw_name, card->pcie.firmware); 2325 strcpy(adapter->fw_name, card->pcie.firmware);
2324 2326
2325 return 0; 2327 return 0;