From 8c6132a401e25be88a37198710b3b6c6b8f00117 Mon Sep 17 00:00:00 2001 From: astsam Date: Fri, 23 Jun 2017 22:26:06 +0300 Subject: [PATCH] Disable float point code for modern kernels --- core/rtw_mp.c | 4 ++-- include/rtw_mp.h | 2 +- os_dep/linux/ioctl_mp.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/rtw_mp.c b/core/rtw_mp.c index eb9ce72..2f0d12b 100644 --- a/core/rtw_mp.c +++ b/core/rtw_mp.c @@ -2772,7 +2772,7 @@ void CRC16_generator( } -#if !defined(__arm__) +#if !defined(__arm__) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)) /*======================================== SFD SIGNAL SERVICE LENGTH CRC 16 bit 8 bit 8 bit 16 bit 16 bit @@ -2925,7 +2925,7 @@ void PMAC_Get_Pkt_Param( pPMacTxInfo->m_STBC = 1; } -#if !defined(__arm__) +#if !defined(__arm__) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)) UINT LDPC_parameter_generator( UINT N_pld_int, UINT N_CBPSS, diff --git a/include/rtw_mp.h b/include/rtw_mp.h index 0d144ed..acce492 100644 --- a/include/rtw_mp.h +++ b/include/rtw_mp.h @@ -781,7 +781,7 @@ PMAC_Get_Pkt_Param( PRT_PMAC_TX_INFO pPMacTxInfo, PRT_PMAC_PKT_INFO pPMacPktInfo ); -#if !defined(__arm__) +#if !defined(__arm__) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)) void CCK_generator( PRT_PMAC_TX_INFO pPMacTxInfo, diff --git a/os_dep/linux/ioctl_mp.c b/os_dep/linux/ioctl_mp.c index e6fc0b7..e2d34f5 100644 --- a/os_dep/linux/ioctl_mp.c +++ b/os_dep/linux/ioctl_mp.c @@ -1597,7 +1597,7 @@ int rtw_mp_tx(struct net_device *dev, _rtw_memset(pMptCtx->PMacTxInfo.MacAddress, 0xFF, ETH_ALEN); PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); -#if !defined(__arm__) +#if !defined(__arm__) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)) if (MPT_IS_CCK_RATE(pMptCtx->PMacTxInfo.TX_RATE)) CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);