|
@@ -498,8 +498,8 @@ static int mwifiex_init_rxq_ring(struct mwifiex_adapter *adapter)
|
|
|
|
|
|
for (i = 0; i < MWIFIEX_MAX_TXRX_BD; i++) {
|
|
|
/* Allocate skb here so that firmware can DMA data from it */
|
|
|
- skb = mwifiex_alloc_rx_buf(MWIFIEX_RX_DATA_BUF_SIZE,
|
|
|
- GFP_KERNEL | GFP_DMA);
|
|
|
+ skb = mwifiex_alloc_dma_align_buf(MWIFIEX_RX_DATA_BUF_SIZE,
|
|
|
+ GFP_KERNEL | GFP_DMA);
|
|
|
if (!skb) {
|
|
|
dev_err(adapter->dev,
|
|
|
"Unable to allocate skb for RX ring.\n");
|
|
@@ -1298,8 +1298,8 @@ static int mwifiex_pcie_process_recv_data(struct mwifiex_adapter *adapter)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- skb_tmp = mwifiex_alloc_rx_buf(MWIFIEX_RX_DATA_BUF_SIZE,
|
|
|
- GFP_KERNEL | GFP_DMA);
|
|
|
+ skb_tmp = mwifiex_alloc_dma_align_buf(MWIFIEX_RX_DATA_BUF_SIZE,
|
|
|
+ GFP_KERNEL | GFP_DMA);
|
|
|
if (!skb_tmp) {
|
|
|
dev_err(adapter->dev,
|
|
|
"Unable to allocate skb.\n");
|