1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

CONFIG_MP_VHT_HW_TX_MODE: Mark floating point regions

This commit is contained in:
Thijs Withaar 2018-09-04 17:26:45 +02:00
parent c0b49289d5
commit 181b199679
2 changed files with 16 additions and 9 deletions

View File

@ -110,7 +110,7 @@ CONFIG_AP_WOWLAN = n
######### Notify SDIO Host Keep Power During Syspend ##########
CONFIG_RTW_SDIO_PM_KEEP_POWER = y
###################### MP HW TX MODE FOR VHT #######################
CONFIG_MP_VHT_HW_TX_MODE = n
CONFIG_MP_VHT_HW_TX_MODE = y
###################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ARM_RPI = n
@ -1038,7 +1038,8 @@ ifeq ($(CONFIG_PLATFORM_I386_PC), y)
EXTRA_CFLAGS += -mhard-float
else
## For ARM ToolChain use Hardware FLOATING
EXTRA_CFLAGS += -mfloat-abi=hard
# Raspbian kernel is with soft-float, so can't do this here
#EXTRA_CFLAGS += -mfloat-abi=hard
endif
endif

View File

@ -14,6 +14,11 @@
*****************************************************************************/
#if defined(CONFIG_MP_INCLUDED)
#ifdef CONFIG_MP_VHT_HW_TX_MODE
#include <linux/kernel.h>
#include <asm/fpu/api.h>
#endif
#include <drv_types.h>
#include <rtw_mp.h>
#include <rtw_mp_ioctl.h>
@ -826,7 +831,7 @@ int rtw_mp_disable_bt_coexist(struct net_device *dev,
u32 bt_coexist;
_rtw_memset(input, 0, sizeof(input));
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
return -EFAULT;
@ -1617,14 +1622,16 @@ int rtw_mp_tx(struct net_device *dev,
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
kernel_fpu_begin();
if (MPT_IS_CCK_RATE(pMptCtx->PMacTxInfo.TX_RATE))
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
CCK_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
else {
PMAC_Nsym_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
PMAC_Nsym_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
/* 24 BIT*/
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
L_SIG_generator(pMptCtx->PMacPktInfo.N_sym, &pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo); // Floating-Point!
}
kernel_fpu_end();
/* 48BIT*/
if (MPT_IS_HT_RATE(pMptCtx->PMacTxInfo.TX_RATE))
HT_SIG_generator(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
@ -1640,7 +1647,6 @@ int rtw_mp_tx(struct net_device *dev,
}
mpt_ProSetPMacTx(padapter);
} else if (strncmp(extra, "pmact,mode=", 11) == 0) {
int txmode = 0;
@ -2227,7 +2233,7 @@ int rtw_mp_SetBT(struct net_device *dev,
return -EFAULT;
*(extra + wrqu->data.length) = '\0';
if (strlen(extra) < 1)
return -EFAULT;