Skip to content

Commit

Permalink
rtl8192ee_xmit.c: buildfix for Linux 5.18
Browse files Browse the repository at this point in the history
rtl8192ee_xmit.c: buildfix for Linux 5.18
  • Loading branch information
kelebek333 committed Apr 24, 2022
1 parent 40834f5 commit 276ca4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hal/rtl8192e/pci/rtl8192ee_xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ void update_txdesc_buf(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz)
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);


#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
mapping = dma_map_single(&pdvobjpriv->ppcidev->dev, pxmitframe->buf_addr , sz + TX_WIFI_INFO_SIZE, DMA_TO_DEVICE);
#else
mapping = pci_map_single(pdvobjpriv->ppcidev, pxmitframe->buf_addr , sz + TX_WIFI_INFO_SIZE, PCI_DMA_TODEVICE);
#endif

/* Calculate page size. Total buffer length including TX_WIFI_INFO and PacketLen */
if (tx_page_size_reg > 0) {
Expand Down

0 comments on commit 276ca4a

Please sign in to comment.